mirror of https://github.com/jpanther/congo.git
commit
4f38df9c23
|
@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.5.1] - 2021-11-04
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Hugo failing to build site when deploying as a module
|
||||||
|
|
||||||
## [1.5.0] - 2021-11-04
|
## [1.5.0] - 2021-11-04
|
||||||
|
|
||||||
### Added
|
### 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
|
- Advanced customisation using simple Tailwind colour definitions and styles
|
||||||
- Fully documented
|
- 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.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.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
|
[1.3.0]: https://github.com/jpanther/Congo/compare/v1.2.1...v1.3.0
|
||||||
|
|
|
@ -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 */
|
/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com */
|
||||||
|
|
||||||
|
|
|
@ -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 base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
|
|
|
@ -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.
|
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.
|
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)
|
![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"]`.
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{{/* Mermaid */}}
|
{{/* Mermaid */}}
|
||||||
{{ if .Page.HasShortcode "mermaid" }}
|
{{ if .Page.HasShortcode "mermaid" }}
|
||||||
{{ $mermaidJS := resources.Get "vendor/mermaid/mermaid.min.js" }}
|
{{ $mermaidJS := resources.Get "lib/mermaid/mermaid.min.js" }}
|
||||||
{{ $mermaidJS := $mermaidJS | resources.Fingerprint "sha512" }} <script defer src="{{ $mermaidJS.RelPermalink }}" integrity="{{ $mermaidJS.Data.Integrity }}"></script>
|
{{ $mermaidJS := $mermaidJS | resources.Fingerprint "sha512" }}
|
||||||
|
<script defer src="{{ $mermaidJS.RelPermalink }}" integrity="{{ $mermaidJS.Data.Integrity }}"></script>
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('DOMContentLoaded', (event) => {
|
document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
function css(name) {
|
function css(name) {
|
||||||
|
@ -13,7 +14,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* Chart */}}
|
{{/* Chart */}}
|
||||||
{{ if .Page.HasShortcode "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" }}
|
{{ $chartJS := $chartJS | resources.Fingerprint "sha512" }}
|
||||||
<script defer src="{{ $chartJS.RelPermalink }}" integrity="{{ $chartJS.Data.Integrity }}"></script>
|
<script defer src="{{ $chartJS.RelPermalink }}" integrity="{{ $chartJS.Data.Integrity }}"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -35,20 +36,20 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* Katex */}}
|
{{/* Katex */}}
|
||||||
{{ if .Page.HasShortcode "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" }}
|
{{ $katexCSS := $katexCSS | resources.Fingerprint "sha512" }}
|
||||||
<link
|
<link
|
||||||
type="text/css" rel="stylesheet"
|
type="text/css" rel="stylesheet"
|
||||||
href="{{ $katexCSS.RelPermalink }}"
|
href="{{ $katexCSS.RelPermalink }}"
|
||||||
integrity="{{ $katexCSS.Data.Integrity }}"
|
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" }}
|
{{ $katexJS := $katexJS | resources.Fingerprint "sha512" }}
|
||||||
<script defer src="{{ $katexJS.RelPermalink }}" integrity="{{ $katexJS.Data.Integrity }}"></script>
|
<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" }}
|
{{ $katexRenderJS := $katexRenderJS | resources.Fingerprint "sha512" }}
|
||||||
<script defer src="{{ $katexRenderJS.RelPermalink }}" integrity="{{ $katexRenderJS.Data.Integrity }}" onload="renderMathInElement(document.body);"></script>
|
<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 }}
|
{{ range $katexFonts }}
|
||||||
<!-- {{ .RelPermalink }} -->
|
<!-- {{ .RelPermalink }} -->
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -8,17 +8,17 @@ HUGO_THEME = "repo"
|
||||||
TZ = "Australia/Melbourne"
|
TZ = "Australia/Melbourne"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.87.0"
|
HUGO_VERSION = "0.89.0"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "cd exampleSite && hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
command = "cd exampleSite && hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.deploy-preview.environment]
|
[context.deploy-preview.environment]
|
||||||
HUGO_VERSION = "0.87.0"
|
HUGO_VERSION = "0.89.0"
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "cd exampleSite && hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
command = "cd exampleSite && hugo --gc --minify -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.branch-deploy.environment]
|
[context.branch-deploy.environment]
|
||||||
HUGO_VERSION = "0.87.0"
|
HUGO_VERSION = "0.89.0"
|
||||||
|
|
14
package.json
14
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hugo-congo-theme",
|
"name": "hugo-congo-theme",
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"description": "Congo theme for Hugo",
|
"description": "Congo theme for Hugo",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -43,27 +43,27 @@
|
||||||
"devVendorCopy": [
|
"devVendorCopy": [
|
||||||
{
|
{
|
||||||
"from": "node_modules/mermaid/dist/mermaid.min.js",
|
"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",
|
"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",
|
"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",
|
"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",
|
"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/",
|
"from": "node_modules/katex/dist/fonts/",
|
||||||
"to": "assets/vendor/katex/fonts/"
|
"to": "assets/lib/katex/fonts/"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue