🔖 Release v1.5.1

pull/155/head v1.5.1
James Panther 2021-11-04 14:22:24 +11:00
commit 4f38df9c23
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
72 changed files with 30 additions and 22 deletions

View File

@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
## [1.5.1] - 2021-11-04
### Fixed
- Hugo failing to build site when deploying as a module
## [1.5.0] - 2021-11-04
### Added
@ -151,7 +157,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Advanced customisation using simple Tailwind colour definitions and styles
- Fully documented
[unreleased]: https://github.com/jpanther/Congo/compare/v1.5.0...HEAD
[unreleased]: https://github.com/jpanther/Congo/compare/v1.5.1...HEAD
[1.5.1]: https://github.com/jpanther/Congo/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/jpanther/Congo/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/jpanther/Congo/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/jpanther/Congo/compare/v1.2.1...v1.3.0

View File

@ -1,4 +1,4 @@
/*! Congo v1.5.0 | MIT License | https://github.com/jpanther/congo */
/*! Congo v1.5.1 | MIT License | https://github.com/jpanther/congo */
/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com */

View File

@ -1,4 +1,4 @@
/*! Congo v1.5.0 | MIT License | https://github.com/jpanther/congo */
/*! Congo v1.5.1 | MIT License | https://github.com/jpanther/congo */
@tailwind base;
@tailwind components;

View File

@ -37,7 +37,7 @@ If the built-in homepage layouts aren't sufficient for your needs, you have the
To enable the custom layout, set `homepage.layout = "custom"` in the `params.toml` configuration file.
With the configuration value set, create a new `custom.html` file and place it in `layouts/partials/home/custom.html`. Now whatever is in the `custom.html` file will be placed in the content area of the site homepage. You can use whatever HTML, Tailwind, or Hugo templating functions to define your layout.
With the configuration value set, create a new `custom.html` file and place it in `layouts/partials/home/custom.html`. Now whatever is in the `custom.html` file will be placed in the content area of the site homepage. You may use whatever HTML, Tailwind, or Hugo templating functions you wish to define your layout.
To include [recent articles](#recent-articles) on the custom layout, use the `recent-articles.html` partial.
@ -49,4 +49,4 @@ All homepage layouts have the option of displaying recent articles below the mai
![Profile layout with recent articles](home-profile-list.jpg)
The articles listed in this section are derived from the `homepage.listSections` setting which allows for whatever content types you are using on your website. For instance, if you had content sections for _posts_ and _projects_ you could set this setting to `["posts", "projects"]` and all the articles in these two sections would be used to populate the recent list. The theme expects this setting to be an array so if you only use one section for all your content, you should set this accordingly: `["blog"]`.
The articles listed in this section are derived from the `homepage.mainSections` setting which allows for whatever content types you are using on your website. For instance, if you had content sections for _posts_ and _projects_ you could set this setting to `["posts", "projects"]` and all the articles in these two sections would be used to populate the recent list. The theme expects this setting to be an array so if you only use one section for all your content, you should set this accordingly: `["blog"]`.

View File

@ -1,7 +1,8 @@
{{/* Mermaid */}}
{{ if .Page.HasShortcode "mermaid" }}
{{ $mermaidJS := resources.Get "vendor/mermaid/mermaid.min.js" }}
{{ $mermaidJS := $mermaidJS | resources.Fingerprint "sha512" }} <script defer src="{{ $mermaidJS.RelPermalink }}" integrity="{{ $mermaidJS.Data.Integrity }}"></script>
{{ $mermaidJS := resources.Get "lib/mermaid/mermaid.min.js" }}
{{ $mermaidJS := $mermaidJS | resources.Fingerprint "sha512" }}
<script defer src="{{ $mermaidJS.RelPermalink }}" integrity="{{ $mermaidJS.Data.Integrity }}"></script>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
function css(name) {
@ -13,7 +14,7 @@
{{ end }}
{{/* Chart */}}
{{ if .Page.HasShortcode "chart" }}
{{ $chartJS := resources.Get "vendor/chart/chart.min.js" }}
{{ $chartJS := resources.Get "lib/chart/chart.min.js" }}
{{ $chartJS := $chartJS | resources.Fingerprint "sha512" }}
<script defer src="{{ $chartJS.RelPermalink }}" integrity="{{ $chartJS.Data.Integrity }}"></script>
<script>
@ -35,20 +36,20 @@
{{ end }}
{{/* Katex */}}
{{ if .Page.HasShortcode "katex" }}
{{ $katexCSS := resources.Get "vendor/katex/katex.min.css" }}
{{ $katexCSS := resources.Get "lib/katex/katex.min.css" }}
{{ $katexCSS := $katexCSS | resources.Fingerprint "sha512" }}
<link
type="text/css" rel="stylesheet"
href="{{ $katexCSS.RelPermalink }}"
integrity="{{ $katexCSS.Data.Integrity }}"
/>
{{ $katexJS := resources.Get "vendor/katex/katex.min.js" }}
{{ $katexJS := resources.Get "lib/katex/katex.min.js" }}
{{ $katexJS := $katexJS | resources.Fingerprint "sha512" }}
<script defer src="{{ $katexJS.RelPermalink }}" integrity="{{ $katexJS.Data.Integrity }}"></script>
{{ $katexRenderJS := resources.Get "vendor/katex/auto-render.min.js" }}
{{ $katexRenderJS := resources.Get "lib/katex/auto-render.min.js" }}
{{ $katexRenderJS := $katexRenderJS | resources.Fingerprint "sha512" }}
<script defer src="{{ $katexRenderJS.RelPermalink }}" integrity="{{ $katexRenderJS.Data.Integrity }}" onload="renderMathInElement(document.body);"></script>
{{ $katexFonts := resources.Match "vendor/katex/fonts/*" }}
{{ $katexFonts := resources.Match "lib/katex/fonts/*" }}
{{ range $katexFonts }}
<!-- {{ .RelPermalink }} -->
{{ end }}

View File

@ -8,17 +8,17 @@ HUGO_THEME = "repo"
TZ = "Australia/Melbourne"
[context.production.environment]
HUGO_VERSION = "0.87.0"
HUGO_VERSION = "0.89.0"
HUGO_ENV = "production"
[context.deploy-preview]
command = "cd exampleSite && hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
HUGO_VERSION = "0.87.0"
HUGO_VERSION = "0.89.0"
[context.branch-deploy]
command = "cd exampleSite && hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_VERSION = "0.87.0"
HUGO_VERSION = "0.89.0"

View File

@ -1,6 +1,6 @@
{
"name": "hugo-congo-theme",
"version": "1.5.0",
"version": "1.5.1",
"description": "Congo theme for Hugo",
"main": "index.js",
"scripts": {
@ -43,27 +43,27 @@
"devVendorCopy": [
{
"from": "node_modules/mermaid/dist/mermaid.min.js",
"to": "assets/vendor/mermaid/mermaid.min.js"
"to": "assets/lib/mermaid/mermaid.min.js"
},
{
"from": "node_modules/chart.js/dist/chart.min.js",
"to": "assets/vendor/chart/chart.min.js"
"to": "assets/lib/chart/chart.min.js"
},
{
"from": "node_modules/katex/dist/katex.min.js",
"to": "assets/vendor/katex/katex.min.js"
"to": "assets/lib/katex/katex.min.js"
},
{
"from": "node_modules/katex/dist/katex.min.css",
"to": "assets/vendor/katex/katex.min.css"
"to": "assets/lib/katex/katex.min.css"
},
{
"from": "node_modules/katex/dist/contrib/auto-render.min.js",
"to": "assets/vendor/katex/auto-render.min.js"
"to": "assets/lib/katex/auto-render.min.js"
},
{
"from": "node_modules/katex/dist/fonts/",
"to": "assets/vendor/katex/fonts/"
"to": "assets/lib/katex/fonts/"
}
]
}