1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2025-05-10 22:46:02 +02:00

22 Commits

Author SHA1 Message Date
99f1a6725c Regenerate static assets
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-15 09:59:40 +03:00
898d91701a package-lock.json: Run npm update 2021-09-15 09:59:05 +03:00
40b3fb4979 .drone.yml: Build on Node.js 16
All checks were successful
continuous-integration/drone/push Build is passing
We want to build on LTS or "current" releases only.

See: https://nodejs.org/en/about/releases/
2021-08-19 16:09:05 +03:00
5797675dbd theme.toml: Add demo link
All checks were successful
continuous-integration/drone/push Build is passing
As of 2021-07-01 the Hugo Themes showcase is no longer building our
themes so we need to include a link to a demo.
2021-07-09 22:36:07 +03:00
8cdfeb297d package.json: Run webpack without npx
All checks were successful
continuous-integration/drone/push Build is passing
This only affects the CI, but the inability to run webpack seems
to have been due to using an older version of npm (v6.14.x), and
now we upgrade npm before install so we don't need this hack.
2021-03-23 11:25:21 +02:00
7a2ac26879 .drone.yml: Update npm before install and build
All checks were successful
continuous-integration/drone/push Build is passing
It seems that the issue with not being able to find webpack-cli is
due to some behavior with an older version of npm. My local devel-
opment environment has npm 7.6.x and so does the Node.js 15 conta-
iner, while the Node.js 12 and 14 containers have npm 6.14.x.

Updating npm fixes the issue with `npx webpack` not being able to
find webpack-cli's webpack command (perhaps it installs the peer
dependency automatically, I don't know).
2021-03-23 10:16:02 +02:00
72fe18fd4d package.json: Run webpack with npx
Some checks failed
continuous-integration/drone/push Build is failing
My local dev environment automatically adds ./node_modules/.bin to
the shell PATH, but it seems a better way to do this is to use npx
so that it works here and on the CI.
2021-03-23 09:45:19 +02:00
085cf9847f .drone.yml: Run on current and LTS Node.js releases
Node.js v10 will cease to be LTS next month and I haven't even used
it for a while already, so let's change this to only run on 12, 14,
and 15, which are the current active and LTS releases.

See: https://nodejs.org/en/about/releases/
2021-03-23 09:39:40 +02:00
dbc97128f3 package-lock.json: Run npm update
Some checks failed
continuous-integration/drone/push Build is failing
2021-03-22 13:45:47 +02:00
5dd511963d package.json: Only install webpack-cli
We don't explicitly need webpack, as webpack-cli will bring it in
for us.
2021-03-22 13:45:21 +02:00
d24e709cd3 CHANGELOG.md: Minor dependency updates
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-19 22:11:57 +02:00
6c30836cc9 Regenerate static assets 2021-01-19 22:10:35 +02:00
ddd2836905 source/scss/bootstrap.scss: Update header
Minor, but can be very confusing when looking at CSS and wondering
why the version is old.
2021-01-19 22:10:04 +02:00
f3a5cf6630 Run npm update
Brings in Bootstrap v4.6.0 as well as a few others.
2021-01-19 22:09:26 +02:00
1876747063 README.md: Fix link syntax
All checks were successful
continuous-integration/drone/push Build is passing
2021-01-12 09:25:42 +02:00
96d6304f09 Remove .travis.yml
All checks were successful
continuous-integration/drone/push Build is passing
TravisCI changed their business model recently and I realized it is
better to not rely on free cloud services. I am now using a Drone.io
instance on my own infrastructure.
2020-12-10 12:56:02 +02:00
e0c8b5a057 README.md: Use badge from Drone CI 2020-12-10 12:55:37 +02:00
d6ab3cda0a .drone.yml: Correct npm task
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-10 12:49:57 +02:00
e1dfe242a6 .travis.yml: Only build on Node.js LTS versions 2020-12-10 12:48:38 +02:00
bfac136c3e Add .drone.yml for ci.mjanja.ch 2020-12-10 12:48:12 +02:00
4a922d8657 README.md: Use travis-ci.com domain for badge 2020-12-08 09:07:25 +02:00
94269648d6 .travis.yml: Try to build on AWS graviton2 instances
These are the second generation of Amazon's ARM-based instances.

See: https://blog.travis-ci.com/2020-09-11-arm-on-aws
2020-12-06 09:54:23 +02:00
12 changed files with 2766 additions and 2121 deletions

43
.drone.yml Normal file
View File

@ -0,0 +1,43 @@
kind: pipeline
type: docker
name: node12
steps:
- name: build
image: node:12-alpine
commands:
- npm --version
- npm install -g npm
- npm --version
- npm install
- npm run build
---
kind: pipeline
type: docker
name: node14
steps:
- name: build
image: node:14-alpine
commands:
- npm --version
- npm install -g npm
- npm --version
- npm install
- npm run build
---
kind: pipeline
type: docker
name: node16
steps:
- name: build
image: node:16-alpine
commands:
- npm --version
- npm install -g npm
- npm --version
- npm install
- npm run build

View File

@ -1,10 +0,0 @@
language: node_js
node_js:
- 10
- 12
- 13
- 14
script: npm run build
dist: focal
# vim: ts=2 sw=2 et

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased Changes
### Updated
- Bootstrap v4.6.0, webpack v5.16.0, haven 0.6.2, etc
## [[ 1.6.0 ]] - 2020-12-05 ## [[ 1.6.0 ]] - 2020-12-05
### Changed ### Changed
- Migrate to dart sass from node-sass (see [LibSass is Deprecated](https://sass-lang.com/blog/libsass-is-deprecated)) - Migrate to dart sass from node-sass (see [LibSass is Deprecated](https://sass-lang.com/blog/libsass-is-deprecated))

View File

@ -1,4 +1,4 @@
# Hugo Bootstrap v4 Blog [![Build Status](https://travis-ci.org/alanorth/hugo-theme-bootstrap4-blog.svg?branch=master)](https://travis-ci.org/alanorth/hugo-theme-bootstrap4-blog) [![builds.sr.ht status](https://builds.sr.ht/~alanorth/hugo-theme-bootstrap4-blog.svg)](https://builds.sr.ht/~alanorth/hugo-theme-bootstrap4-blog?) # Hugo Bootstrap v4 Blog [![Build Status](https://ci.mjanja.ch/api/badges/alanorth/hugo-theme-bootstrap4-blog/status.svg)](https://ci.mjanja.ch/alanorth/hugo-theme-bootstrap4-blog) [![builds.sr.ht status](https://builds.sr.ht/~alanorth/hugo-theme-bootstrap4-blog.svg)](https://builds.sr.ht/~alanorth/hugo-theme-bootstrap4-blog?)
A simple but opinionated [Hugo](https://gohugo.io) theme geared towards blog-style content. Based on the older two-column [Bootstrap blog example](https://v4-alpha.getbootstrap.com/examples/blog/) that was used for several Bootstrap versions, but has now been retired in favor of a "snarky" (their words) new example as of version [4.0.0's final release](https://blog.getbootstrap.com/2018/01/18/bootstrap-4/). A simple but opinionated [Hugo](https://gohugo.io) theme geared towards blog-style content. Based on the older two-column [Bootstrap blog example](https://v4-alpha.getbootstrap.com/examples/blog/) that was used for several Bootstrap versions, but has now been retired in favor of a "snarky" (their words) new example as of version [4.0.0's final release](https://blog.getbootstrap.com/2018/01/18/bootstrap-4/).
![Screenshot](https://raw.githubusercontent.com/alanorth/hugo-theme-bootstrap4-blog/master/screenshot.png "Screenshot") ![Screenshot](https://raw.githubusercontent.com/alanorth/hugo-theme-bootstrap4-blog/master/screenshot.png "Screenshot")
@ -18,7 +18,7 @@ See [picturingjordan.com](https://picturingjordan.com) for an example of this th
- Allow addition of custom `<head>` code in site's `layouts/partials/head-custom.html` (see [#17](https://github.com/alanorth/hugo-theme-bootstrap4-blog/pull/17)) - Allow addition of custom `<head>` code in site's `layouts/partials/head-custom.html` (see [#17](https://github.com/alanorth/hugo-theme-bootstrap4-blog/pull/17))
- Configurable display of summaries of content in list templates. - Configurable display of summaries of content in list templates.
- Configurable keywords for every post - Configurable keywords for every post
- Supports automatic generation of `<img>` srcsets for images in [page bundles](https://gohugo.io/content-management/page-bundles/) using a [new figure shortcode]https://cpbotha.net/2020/05/02/drop-in-replacement-for-hugo-figure-shortcode-with-responsive-img-srcset/) (falls back to default Hugo behavior of looking up images in the static directory) - Supports automatic generation of `<img>` srcsets for images in [page bundles](https://gohugo.io/content-management/page-bundles/) using a [new figure shortcode](https://cpbotha.net/2020/05/02/drop-in-replacement-for-hugo-figure-shortcode-with-responsive-img-srcset/) (falls back to default Hugo behavior of looking up images in the static directory)
## Usage ## Usage
Clone the repository to your site's `themes` directory. Refer to [`exampleSite/config.toml`](https://github.com/alanorth/hugo-theme-bootstrap4-blog/blob/master/exampleSite/config.toml) for recommended configuration values. Clone the repository to your site's `themes` directory. Refer to [`exampleSite/config.toml`](https://github.com/alanorth/hugo-theme-bootstrap4-blog/blob/master/exampleSite/config.toml) for recommended configuration values.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4770
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -18,15 +18,14 @@
"author": "Alan Orth", "author": "Alan Orth",
"license": "CC-BY-3.0", "license": "CC-BY-3.0",
"devDependencies": { "devDependencies": {
"@chiiya/haven": "^0.6.0", "@chiiya/haven": "^0.6.2",
"@fortawesome/fontawesome-svg-core": "^1.2.32", "@fortawesome/fontawesome-svg-core": "^1.2.34",
"@fortawesome/free-brands-svg-icons": "^5.15.1", "@fortawesome/free-brands-svg-icons": "^5.15.2",
"@fortawesome/free-solid-svg-icons": "^5.15.1", "@fortawesome/free-solid-svg-icons": "^5.15.2",
"bootstrap": "^4.5.3", "bootstrap": "^4.6.0",
"clean-css-cli": "^4.3.0", "clean-css-cli": "^4.3.0",
"rtlcss": "^2.6.1", "rtlcss": "^2.6.2",
"sass": "^1.29.0", "sass": "^1.32.4",
"webpack": "^5.4.0", "webpack-cli": "^4.5.0"
"webpack-cli": "^3.3.12"
} }
} }

View File

@ -1,14 +1,14 @@
/*! /*!
* Bootstrap v4.5.3 (https://getbootstrap.com/) * Bootstrap v4.6.0 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors * Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2020 Twitter, Inc. * Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/ */
@import "../../node_modules/bootstrap/scss/functions"; @import "../../node_modules/bootstrap/scss/functions";
@import "../../node_modules/bootstrap/scss/variables"; @import "../../node_modules/bootstrap/scss/variables";
@import "../../node_modules/bootstrap/scss/mixins"; @import "../../node_modules/bootstrap/scss/mixins";
//@import "../../node_modules/bootstrap/scss/root"; @import "../../node_modules/bootstrap/scss/root";
@import "../../node_modules/bootstrap/scss/reboot"; @import "../../node_modules/bootstrap/scss/reboot";
@import "../../node_modules/bootstrap/scss/type"; @import "../../node_modules/bootstrap/scss/type";
@import "../../node_modules/bootstrap/scss/images"; @import "../../node_modules/bootstrap/scss/images";

View File

@ -3,6 +3,7 @@ license = "CC-BY-3.0"
licenselink = "https://github.com/alanorth/hugo-theme-bootstrap4-blog/blob/master/LICENSE.txt" licenselink = "https://github.com/alanorth/hugo-theme-bootstrap4-blog/blob/master/LICENSE.txt"
description = "A simple Hugo theme based on the Bootstrap v4 blog example." description = "A simple Hugo theme based on the Bootstrap v4 blog example."
homepage = "https://github.com/alanorth/hugo-theme-bootstrap4-blog" homepage = "https://github.com/alanorth/hugo-theme-bootstrap4-blog"
demosite = "https://picturingjordan.com"
tags = ["bootstrap", "blog", "font awesome"] tags = ["bootstrap", "blog", "font awesome"]
features = ["responsive", "blog"] features = ["responsive", "blog"]
min_version = 0.55 min_version = 0.55