mirror of https://github.com/jpanther/congo.git
commit
c114943009
20
CHANGELOG.md
20
CHANGELOG.md
|
@ -6,12 +6,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [2.6.1] - 2023-06-04
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Images are now marked for lazy loading by default ([#552](https://github.com/jpanther/congo/pull/552))
|
||||||
|
- Current language is no longer displayed in language selection ([#565](https://github.com/jpanther/congo/issues/565))
|
||||||
|
- Updated Simplified Chinese (China) translation ([#573](https://github.com/jpanther/congo/pull/573))
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Language selection repeats current language on multilingual sites instead of linking to translated content ([#565](https://github.com/jpanther/congo/issues/565))
|
||||||
|
- Icon padding inconsistent when using `--minify` option to build site ([#568](https://github.com/jpanther/congo/pull/568))
|
||||||
|
- Copyright string in the language configuration does not apply ([#572](https://github.com/jpanther/congo/issues/572))
|
||||||
|
- Upgrade to Mermaid v10.2.1 ([#569](https://github.com/jpanther/congo/pull/569))
|
||||||
|
|
||||||
## [2.6.0] - 2023-05-25
|
## [2.6.0] - 2023-05-25
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Support for Hugo v0.112.0
|
- Support for Hugo v0.112.0
|
||||||
- Ability to specify an alternate logo image when dark appearance is active (\[#533], ([#521](https://github.com/jpanther/congo/pull/521))(https://github.com/jpanther/congo/pull/533), [#543](https://github.com/jpanther/congo/pull/543))
|
- Ability to specify an alternate logo image when dark appearance is active ([#533](https://github.com/jpanther/congo/pull/533), [#543](https://github.com/jpanther/congo/pull/543))
|
||||||
- Ability to specify the hashing algorithm that is used when fingerprinting assets ([#478](https://github.com/jpanther/congo/issues/478))
|
- Ability to specify the hashing algorithm that is used when fingerprinting assets ([#478](https://github.com/jpanther/congo/issues/478))
|
||||||
- Arabic translation ([#521](https://github.com/jpanther/congo/pull/521))
|
- Arabic translation ([#521](https://github.com/jpanther/congo/pull/521))
|
||||||
- Slovak translation ([#541](https://github.com/jpanther/congo/pull/541))
|
- Slovak translation ([#541](https://github.com/jpanther/congo/pull/541))
|
||||||
|
@ -688,7 +703,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/v2.6.0...HEAD
|
[Unreleased]: https://github.com/jpanther/congo/compare/v2.6.1...HEAD
|
||||||
|
[2.6.1]: https://github.com/jpanther/congo/compare/v2.6.0...v2.6.1
|
||||||
[2.6.0]: https://github.com/jpanther/congo/compare/v2.5.4...v2.6.0
|
[2.6.0]: https://github.com/jpanther/congo/compare/v2.5.4...v2.6.0
|
||||||
[2.5.4]: https://github.com/jpanther/congo/compare/v2.5.3...v2.5.4
|
[2.5.4]: https://github.com/jpanther/congo/compare/v2.5.3...v2.5.4
|
||||||
[2.5.3]: https://github.com/jpanther/congo/compare/v2.5.2...v2.5.3
|
[2.5.3]: https://github.com/jpanther/congo/compare/v2.5.2...v2.5.3
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/*! Congo v2.6.0 | MIT License | https://github.com/jpanther/congo */
|
/*! Congo v2.6.1 | MIT License | https://github.com/jpanther/congo */
|
||||||
|
|
||||||
/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com */
|
/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com */
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/*! Congo v2.6.0 | MIT License | https://github.com/jpanther/congo */
|
/*! Congo v2.6.1 | MIT License | https://github.com/jpanther/congo */
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -11,6 +11,7 @@ autoSwitchAppearance = true
|
||||||
|
|
||||||
enableSearch = false
|
enableSearch = false
|
||||||
enableCodeCopy = false
|
enableCodeCopy = false
|
||||||
|
enableImageLazyLoading = true
|
||||||
|
|
||||||
# robots = ""
|
# robots = ""
|
||||||
fingerprintAlgorithm = "sha256"
|
fingerprintAlgorithm = "sha256"
|
||||||
|
|
|
@ -11,6 +11,7 @@ autoSwitchAppearance = true
|
||||||
|
|
||||||
enableSearch = true
|
enableSearch = true
|
||||||
enableCodeCopy = true
|
enableCodeCopy = true
|
||||||
|
enableImageLazyLoading = true
|
||||||
|
|
||||||
# robots = ""
|
# robots = ""
|
||||||
fingerprintAlgorithm = "sha256"
|
fingerprintAlgorithm = "sha256"
|
||||||
|
|
|
@ -129,6 +129,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
|
||||||
|`autoSwitchAppearance`|`true`|Whether the theme appearance automatically switches based upon the visitor's operating system preference. Set to `false` to force the site to always use the `defaultAppearance`.|
|
|`autoSwitchAppearance`|`true`|Whether the theme appearance automatically switches based upon the visitor's operating system preference. Set to `false` to force the site to always use the `defaultAppearance`.|
|
||||||
|`enableSearch`|`false`|Whether site search is enabled. Set to `true` to enable search functionality. Note that the search feature depends on the `outputs.home` setting in the [site configuration](#site-configuration) being set correctly.|
|
|`enableSearch`|`false`|Whether site search is enabled. Set to `true` to enable search functionality. Note that the search feature depends on the `outputs.home` setting in the [site configuration](#site-configuration) being set correctly.|
|
||||||
|`enableCodeCopy`|`false`|Whether copy-to-clipboard buttons are enabled for `<code>` blocks. The `highlight.noClasses` parameter must be set to `false` for code copy to function correctly. Read more about [other configuration files](#other-configuration-files) below.|
|
|`enableCodeCopy`|`false`|Whether copy-to-clipboard buttons are enabled for `<code>` blocks. The `highlight.noClasses` parameter must be set to `false` for code copy to function correctly. Read more about [other configuration files](#other-configuration-files) below.|
|
||||||
|
|`enableImageLazyLoading`|`true`|Whether images should be marked for lazy loading by the broswer.|
|
||||||
|`robots`|_Not set_|String that indicates how robots should handle your site. If set, it will be output in the page head. Refer to [Google's docs](https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives) for valid values.|
|
|`robots`|_Not set_|String that indicates how robots should handle your site. If set, it will be output in the page head. Refer to [Google's docs](https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives) for valid values.|
|
||||||
|`fingerprintAlgorithm`|`"sha256"`|String that indicates which hashing algorithm is used when fingerprinting assets. Valid options include `md5`, `sha256`, `sha384` and `sha512`.|
|
|`fingerprintAlgorithm`|`"sha256"`|String that indicates which hashing algorithm is used when fingerprinting assets. Valid options include `md5`, `sha256`, `sha384` and `sha512`.|
|
||||||
|`header.layout`|`"basic"`|The layout of the page header and menu. Valid values are `basic`, `hamburger`, `hybrid` or `custom`. When set to `custom`, you must provide your own layout by creating a `/layouts/partials/header/custom.html` file.|
|
|`header.layout`|`"basic"`|The layout of the page header and menu. Valid values are `basic`, `hamburger`, `hybrid` or `custom`. When set to `custom`, you must provide your own layout by creating a `/layouts/partials/header/custom.html` file.|
|
||||||
|
|
|
@ -100,11 +100,11 @@ Then in the root of your site repository, create a `netlify.toml` file:
|
||||||
TZ = "UTC" # Set to preferred timezone
|
TZ = "UTC" # Set to preferred timezone
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.112.3"
|
HUGO_VERSION = "0.112.7"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
|
|
||||||
[context.deploy-preview.environment]
|
[context.deploy-preview.environment]
|
||||||
HUGO_VERSION = "0.112.3"
|
HUGO_VERSION = "0.112.7"
|
||||||
```
|
```
|
||||||
|
|
||||||
This configuration assumes you are deploying Congo as a Hugo module. If you have installed the theme using another method, change the build command to simply `hugo --gc --minify -b $URL`.
|
This configuration assumes you are deploying Congo as a Hugo module. If you have installed the theme using another method, change the build command to simply `hugo --gc --minify -b $URL`.
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
article:
|
article:
|
||||||
anchor_label: "锚点"
|
anchor_label: "锚点"
|
||||||
date: "{{ .Date }}"
|
date: "{{ .Date }}"
|
||||||
# date_updated: "Updated: {{ .Date }}"
|
date_updated: "更新于 {{ .Date }}"
|
||||||
draft: "草稿"
|
draft: "草稿"
|
||||||
edit_title: "编辑内容"
|
edit_title: "编辑内容"
|
||||||
reading_time:
|
reading_time:
|
||||||
other: "{{ .Count }} 分钟"
|
other: "{{ .Count }} 分钟"
|
||||||
reading_time_title: "预计阅读"
|
reading_time_title: "预计阅读"
|
||||||
# table_of_contents: "Table of Contents"
|
table_of_contents: "目录"
|
||||||
word_count:
|
word_count:
|
||||||
one: "{{ .Count }} 字"
|
one: "{{ .Count }} 字"
|
||||||
other: "{{ .Count }} 字"
|
other: "{{ .Count }} 字"
|
||||||
|
@ -15,9 +15,9 @@ article:
|
||||||
author:
|
author:
|
||||||
byline_title: "作者"
|
byline_title: "作者"
|
||||||
|
|
||||||
# code:
|
code:
|
||||||
# copy: "Copy"
|
copy: "复制"
|
||||||
# copied: "Copied"
|
copied: "已复制"
|
||||||
|
|
||||||
error:
|
error:
|
||||||
404_title: "找不到网页 :confused:"
|
404_title: "找不到网页 :confused:"
|
||||||
|
@ -33,20 +33,20 @@ list:
|
||||||
externalurl_title: "链接到外部网站"
|
externalurl_title: "链接到外部网站"
|
||||||
no_articles: "这里还没有任何文章可以列出。"
|
no_articles: "这里还没有任何文章可以列出。"
|
||||||
|
|
||||||
# nav:
|
nav:
|
||||||
# scroll_to_top_title: "Scroll to top"
|
scroll_to_top_title: "回到顶部"
|
||||||
# skip_to_main: "Skip to main content"
|
skip_to_main: "跳到主要内容"
|
||||||
|
|
||||||
# search:
|
search:
|
||||||
# open_button_title: "Search (/)"
|
open_button_title: "搜索 (/)"
|
||||||
# close_button_title: "Close (Esc)"
|
close_button_title: "关闭 (Esc)"
|
||||||
# input_placeholder: "Search"
|
input_placeholder: "搜索"
|
||||||
|
|
||||||
sharing:
|
sharing:
|
||||||
email: "通过电子邮件发送"
|
email: "通过电子邮件发送"
|
||||||
facebook: "分享到 Facebook"
|
facebook: "分享到 Facebook"
|
||||||
linkedin: "分享到 LinkedIn"
|
linkedin: "分享到 LinkedIn"
|
||||||
# mastodon: "Toot on Mastodon"
|
mastodon: "嘟嘟到 Mastodon"
|
||||||
pinterest: "钉到 Pinterest"
|
pinterest: "钉到 Pinterest"
|
||||||
reddit: "提交到 Reddit"
|
reddit: "提交到 Reddit"
|
||||||
twitter: "分享到 Twitter"
|
twitter: "分享到 Twitter"
|
||||||
|
|
|
@ -1,9 +1,17 @@
|
||||||
{{ $url := urls.Parse .Destination }}
|
{{ $url := urls.Parse .Destination }}
|
||||||
{{ $altText := .Text }}
|
{{ $altText := .Text }}
|
||||||
{{ $caption := .Title }}
|
{{ $caption := .Title }}
|
||||||
|
{{ $lazyLoad := $.Page.Site.Params.enableImageLazyLoading | default true }}
|
||||||
{{ if findRE "^https?" $url.Scheme }}
|
{{ if findRE "^https?" $url.Scheme }}
|
||||||
<figure>
|
<figure>
|
||||||
<img class="mx-auto my-0 rounded-md" src="{{ $url.String }}" alt="{{ $altText }}" />
|
<img
|
||||||
|
class="mx-auto my-0 rounded-md"
|
||||||
|
src="{{ $url.String }}"
|
||||||
|
alt="{{ $altText }}"
|
||||||
|
{{ if $lazyLoad }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
|
/>
|
||||||
{{ with $caption }}<figcaption class="text-center">{{ . | markdownify }}</figcaption>{{ end }}
|
{{ with $caption }}<figcaption class="text-center">{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
@ -32,12 +40,22 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
alt="{{ $altText }}"
|
alt="{{ $altText }}"
|
||||||
|
{{ if $lazyLoad }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
/>
|
/>
|
||||||
{{ with $caption }}<figcaption class="text-center">{{ . | markdownify }}</figcaption>{{ end }}
|
{{ with $caption }}<figcaption class="text-center">{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<figure>
|
<figure>
|
||||||
<img class="mx-auto my-0 rounded-md" src="{{ $url.String }}" alt="{{ $altText }}" />
|
<img
|
||||||
|
class="mx-auto my-0 rounded-md"
|
||||||
|
src="{{ $url.String }}"
|
||||||
|
alt="{{ $altText }}"
|
||||||
|
{{ if $lazyLoad }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
|
/>
|
||||||
{{ with $caption }}<figcaption class="text-center">{{ . | markdownify }}</figcaption>{{ end }}
|
{{ with $caption }}<figcaption class="text-center">{{ . | markdownify }}</figcaption>{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -31,6 +31,9 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
alt="{{ $.Params.featureAlt | default $.Params.coverAlt | default "" }}"
|
alt="{{ $.Params.featureAlt | default $.Params.coverAlt | default "" }}"
|
||||||
|
{{ if $.Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
/>
|
/>
|
||||||
{{ with $.Params.coverCaption }}
|
{{ with $.Params.coverCaption }}
|
||||||
<figcaption class="mb-6 -mt-3 text-center">{{ . | markdownify }}</figcaption>
|
<figcaption class="mb-6 -mt-3 text-center">{{ . | markdownify }}</figcaption>
|
||||||
|
|
|
@ -23,6 +23,9 @@
|
||||||
160w, {{- (.Fill "320x240 smart").RelPermalink }} 2x"
|
160w, {{- (.Fill "320x240 smart").RelPermalink }} 2x"
|
||||||
src="{{ (.Fill "160x120 smart").RelPermalink }}"
|
src="{{ (.Fill "160x120 smart").RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if $.Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
height="96"
|
height="96"
|
||||||
alt="{{ $.Site.Author.name | default "Author" }}"
|
alt="{{ $.Site.Author.name | default "Author" }}"
|
||||||
src="{{ $authorImage.RelPermalink }}"
|
src="{{ $authorImage.RelPermalink }}"
|
||||||
|
{{ if $.Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
/>
|
/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
<span
|
<span
|
||||||
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -55,9 +55,9 @@
|
||||||
<span
|
<span
|
||||||
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
{{/* Copyright */}}
|
{{/* Copyright */}}
|
||||||
{{ if .Site.Params.footer.showCopyright | default true }}
|
{{ if .Site.Params.footer.showCopyright | default true }}
|
||||||
<p class="text-sm text-neutral-500 dark:text-neutral-400">
|
<p class="text-sm text-neutral-500 dark:text-neutral-400">
|
||||||
{{- with .Site.Params.copyright }}
|
{{- with site.Copyright }}
|
||||||
{{ . | emojify | markdownify }}
|
{{ . | emojify | markdownify }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
©
|
©
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
<span
|
<span
|
||||||
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -44,9 +44,9 @@
|
||||||
title="{{ i18n "footer.dark_appearance" }}"
|
title="{{ i18n "footer.dark_appearance" }}"
|
||||||
>
|
>
|
||||||
{{ with .Params.icon | default "moon" }}
|
{{ with .Params.icon | default "moon" }}
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ if .Params.showName | default true }}
|
{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -77,9 +77,9 @@
|
||||||
<span
|
<span
|
||||||
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
|
|
@ -38,9 +38,9 @@
|
||||||
<span
|
<span
|
||||||
class="transition-colors group-dark:hover:text-primary-400 group-hover:text-primary-600"
|
class="transition-colors group-dark:hover:text-primary-400 group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -60,9 +60,9 @@
|
||||||
title="{{ i18n "footer.dark_appearance" }}"
|
title="{{ i18n "footer.dark_appearance" }}"
|
||||||
>
|
>
|
||||||
{{ with .Params.icon | default "moon" }}
|
{{ with .Params.icon | default "moon" }}
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ if .Params.showName | default true }}
|
{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -74,9 +74,9 @@
|
||||||
title="{{ i18n "footer.light_appearance" }}"
|
title="{{ i18n "footer.light_appearance" }}"
|
||||||
>
|
>
|
||||||
{{ with .Params.icon | default "sun" }}
|
{{ with .Params.icon | default "sun" }}
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ if .Params.showName | default true }}
|
{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -93,9 +93,9 @@
|
||||||
<span
|
<span
|
||||||
class="transition-colors group-dark:hover:text-primary-400 group-hover:text-primary-600"
|
class="transition-colors group-dark:hover:text-primary-400 group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
|
|
@ -38,9 +38,9 @@
|
||||||
<span
|
<span
|
||||||
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -60,9 +60,9 @@
|
||||||
title="{{ i18n "footer.dark_appearance" }}"
|
title="{{ i18n "footer.dark_appearance" }}"
|
||||||
>
|
>
|
||||||
{{ with .Params.icon | default "moon" }}
|
{{ with .Params.icon | default "moon" }}
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ if .Params.showName | default true }}
|
{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -74,9 +74,9 @@
|
||||||
title="{{ i18n "footer.light_appearance" }}"
|
title="{{ i18n "footer.light_appearance" }}"
|
||||||
>
|
>
|
||||||
{{ with .Params.icon | default "sun" }}
|
{{ with .Params.icon | default "sun" }}
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ if .Params.showName | default true }}
|
{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -93,9 +93,9 @@
|
||||||
<span
|
<span
|
||||||
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -136,9 +136,9 @@
|
||||||
<span
|
<span
|
||||||
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -158,9 +158,9 @@
|
||||||
title="{{ i18n "footer.dark_appearance" }}"
|
title="{{ i18n "footer.dark_appearance" }}"
|
||||||
>
|
>
|
||||||
{{ with .Params.icon | default "moon" }}
|
{{ with .Params.icon | default "moon" }}
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ if .Params.showName | default true }}
|
{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -172,9 +172,9 @@
|
||||||
title="{{ i18n "footer.light_appearance" }}"
|
title="{{ i18n "footer.light_appearance" }}"
|
||||||
>
|
>
|
||||||
{{ with .Params.icon | default "sun" }}
|
{{ with .Params.icon | default "sun" }}
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ if .Params.showName | default true }}
|
{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
@ -191,9 +191,9 @@
|
||||||
<span
|
<span
|
||||||
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
class="group-dark:hover:text-primary-400 transition-colors group-hover:text-primary-600"
|
||||||
>
|
>
|
||||||
{{ partial "icon.html" . }}
|
{{- partial "icon.html" . -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}{{ if .Params.showName | default true }}
|
{{- end -}}{{- if .Params.showName | default true -}}
|
||||||
<span
|
<span
|
||||||
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
class="decoration-primary-500 group-hover:underline group-hover:decoration-2 group-hover:underline-offset-2"
|
||||||
>{{ .Name | markdownify | emojify }}</span
|
>{{ .Name | markdownify | emojify }}</span
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
height="144"
|
height="144"
|
||||||
alt="{{ $.Site.Author.name | default "Author" }}"
|
alt="{{ $.Site.Author.name | default "Author" }}"
|
||||||
src="{{ $authorImage.RelPermalink }}"
|
src="{{ $authorImage.RelPermalink }}"
|
||||||
|
{{ if $.Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
/>
|
/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{ $icon := resources.Get (print "icons/" . ".svg") }}
|
{{- $icon := resources.Get (print "icons/" . ".svg") -}}
|
||||||
{{ if $icon }}
|
{{- if $icon -}}
|
||||||
<span class="relative inline-block align-text-bottom icon">
|
<span class="relative inline-block align-text-bottom px-1 icon">
|
||||||
{{ $icon.Content | safeHTML }}
|
{{- $icon.Content | safeHTML -}}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
height="{{ div $logo.Height 2 }}"
|
height="{{ div $logo.Height 2 }}"
|
||||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
||||||
alt="{{ .Site.Title }}"
|
alt="{{ .Site.Title }}"
|
||||||
|
{{ if .Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
/>
|
/>
|
||||||
{{- if $logo_dark }}
|
{{- if $logo_dark }}
|
||||||
<img
|
<img
|
||||||
|
@ -17,6 +20,9 @@
|
||||||
height="{{ div $logo_dark.Height 2 }}"
|
height="{{ div $logo_dark.Height 2 }}"
|
||||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left dark:hidden"
|
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left dark:hidden"
|
||||||
alt="{{ .Site.Title }}"
|
alt="{{ .Site.Title }}"
|
||||||
|
{{ if .Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
/>
|
/>
|
||||||
{{- end}}
|
{{- end}}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
{{ if .IsTranslated }}
|
{{ if .IsTranslated }}
|
||||||
|
{{ $currentLang := .Page.Lang }}
|
||||||
<ul class="flex list-none flex-row">
|
<ul class="flex list-none flex-row">
|
||||||
{{ range .AllTranslations }}
|
{{ range .AllTranslations }}
|
||||||
|
{{ if ne $currentLang .Lang }}
|
||||||
<li class="ml-2">
|
<li class="ml-2">
|
||||||
<a
|
<a
|
||||||
href="{{ .RelPermalink }}"
|
href="{{ .RelPermalink }}"
|
||||||
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
||||||
>{{ site.Params.displayName | emojify }}</a
|
>{{ .Site.Params.displayName | emojify }}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
<img
|
<img
|
||||||
class="mx-auto my-0 rounded-md"
|
class="mx-auto my-0 rounded-md"
|
||||||
alt="{{ $altText }}"
|
alt="{{ $altText }}"
|
||||||
|
{{ if .Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
{{ if findRE "^https?" $url.Scheme }}
|
{{ if findRE "^https?" $url.Scheme }}
|
||||||
src="{{ $url.String }}"
|
src="{{ $url.String }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
{{- if or (.Get "alt") (.Get "caption") }}
|
{{- if or (.Get "alt") (.Get "caption") }}
|
||||||
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify | plainify }}{{ end }}"
|
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify | plainify }}{{ end }}"
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{ if .Site.Params.enableImageLazyLoading | default true }}
|
||||||
|
loading="lazy"
|
||||||
|
{{ end }}
|
||||||
width="100%"
|
width="100%"
|
||||||
height="auto"
|
height="auto"
|
||||||
style="max-width:{{ div $image.Width 2 }}px; max-height:{{ div $image.Height 2 }}px;"
|
style="max-width:{{ div $image.Width 2 }}px; max-height:{{ div $image.Height 2 }}px;"
|
||||||
|
|
|
@ -8,17 +8,17 @@ HUGO_THEME = "repo"
|
||||||
TZ = "Australia/Melbourne"
|
TZ = "Australia/Melbourne"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.112.3"
|
HUGO_VERSION = "0.112.7"
|
||||||
HUGO_ENV = "production"
|
HUGO_ENV = "production"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[context.deploy-preview]
|
||||||
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
|
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.deploy-preview.environment]
|
[context.deploy-preview.environment]
|
||||||
HUGO_VERSION = "0.112.3"
|
HUGO_VERSION = "0.112.7"
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy]
|
||||||
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
|
command = "cd exampleSite && hugo --gc --minify -D -b $DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.branch-deploy.environment]
|
[context.branch-deploy.environment]
|
||||||
HUGO_VERSION = "0.112.3"
|
HUGO_VERSION = "0.112.7"
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "hugo-congo-theme",
|
"name": "hugo-congo-theme",
|
||||||
"version": "2.5.4",
|
"version": "2.6.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "hugo-congo-theme",
|
"name": "hugo-congo-theme",
|
||||||
"version": "2.5.4",
|
"version": "2.6.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
"chart.js": "^4.3.0",
|
"chart.js": "^4.3.0",
|
||||||
"fuse.js": "^6.6.2",
|
"fuse.js": "^6.6.2",
|
||||||
"katex": "^0.16.7",
|
"katex": "^0.16.7",
|
||||||
"mermaid": "^10.2.0",
|
"mermaid": "^10.2.1",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"prettier-plugin-go-template": "^0.0.13",
|
"prettier-plugin-go-template": "^0.0.13",
|
||||||
"prettier-plugin-tailwindcss": "^0.3.0",
|
"prettier-plugin-tailwindcss": "^0.3.0",
|
||||||
|
@ -1428,9 +1428,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mermaid": {
|
"node_modules/mermaid": {
|
||||||
"version": "10.2.0",
|
"version": "10.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.2.1.tgz",
|
||||||
"integrity": "sha512-mYKXlH9ngKdMsJ87VYMdlDZXS+MXDAGKPf3XzDf2vvAPnmRoFm7GFebemOAOWYI1bWSECDyoWTGwesWe6mW1Cw==",
|
"integrity": "sha512-gziwXLuAidRxPJxcA0LqPhToirGZ2J2gD+UrDEtGNeKb98BtcQde28UUcCUCmNplkQOwE7oynrzKcMe9i29AMw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@braintree/sanitize-url": "^6.0.2",
|
"@braintree/sanitize-url": "^6.0.2",
|
||||||
|
@ -4097,9 +4097,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"mermaid": {
|
"mermaid": {
|
||||||
"version": "10.2.0",
|
"version": "10.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.2.1.tgz",
|
||||||
"integrity": "sha512-mYKXlH9ngKdMsJ87VYMdlDZXS+MXDAGKPf3XzDf2vvAPnmRoFm7GFebemOAOWYI1bWSECDyoWTGwesWe6mW1Cw==",
|
"integrity": "sha512-gziwXLuAidRxPJxcA0LqPhToirGZ2J2gD+UrDEtGNeKb98BtcQde28UUcCUCmNplkQOwE7oynrzKcMe9i29AMw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@braintree/sanitize-url": "^6.0.2",
|
"@braintree/sanitize-url": "^6.0.2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hugo-congo-theme",
|
"name": "hugo-congo-theme",
|
||||||
"version": "2.6.0",
|
"version": "2.6.1",
|
||||||
"description": "Congo theme for Hugo",
|
"description": "Congo theme for Hugo",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "rimraf assets/lib",
|
"preinstall": "rimraf assets/lib",
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
"chart.js": "^4.3.0",
|
"chart.js": "^4.3.0",
|
||||||
"fuse.js": "^6.6.2",
|
"fuse.js": "^6.6.2",
|
||||||
"katex": "^0.16.7",
|
"katex": "^0.16.7",
|
||||||
"mermaid": "^10.2.0",
|
"mermaid": "^10.2.1",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"prettier-plugin-go-template": "^0.0.13",
|
"prettier-plugin-go-template": "^0.0.13",
|
||||||
"prettier-plugin-tailwindcss": "^0.3.0",
|
"prettier-plugin-tailwindcss": "^0.3.0",
|
||||||
|
|
Loading…
Reference in New Issue