Update site configuration and templates

This commit is contained in:
Gabriel Arazas 2024-11-21 11:49:09 +08:00
parent 2490c5a484
commit 9a14f72653
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
6 changed files with 10 additions and 26 deletions

View File

@ -1,9 +1,8 @@
baseURL = "https://www.foodogsquared.one" baseURL = "https://www.foodogsquared.one"
title = "Gabriel Arazas" title = "foodogsquared"
languageCode = "en" languageCode = "en"
enableGitInfo = true enableGitInfo = true
paginate = 40 copyright = "© Gabriel Arazas"
copyright = "© foodogsquared"
summaryLength = 0 summaryLength = 0
timeZone = "UTC" timeZone = "UTC"
@ -15,6 +14,9 @@ This site uses [medium-zoom](https://github.com/francoischalifour/medium-zoom) a
For analytics, it uses [GoatCounter](https://goatcounter.com/). For analytics, it uses [GoatCounter](https://goatcounter.com/).
""" """
[pagination]
pagerSize = 40
[taxonomies] [taxonomies]
tag = "tags" tag = "tags"
series = "series" series = "series"
@ -46,7 +48,7 @@ home = ["HTML", "ATOM", "RSS", "JSON"]
section = ["HTML", "ATOM", "RSS", "JSON"] section = ["HTML", "ATOM", "RSS", "JSON"]
[security.exec] [security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$'] allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$', '^git$']
[security.funcs] [security.funcs]
getenv = [ "^LAST_COMMIT_DATE$" ] getenv = [ "^LAST_COMMIT_DATE$" ]

View File

@ -20,7 +20,7 @@ reproducible = true
stem = "latexmath" stem = "latexmath"
avatarsdir = "/icons/avatars" avatarsdir = "/icons/avatars"
avatarstype = "webp" "avatarstype" = "webp"
icons = "image" icons = "image"
iconsdir = "/icons/asciidoctor" iconsdir = "/icons/asciidoctor"
@ -30,6 +30,3 @@ icontype = "svg"
bibtex-file = "./assets/bibliography.bib" bibtex-file = "./assets/bibliography.bib"
bibtex-order = "alphabetical" bibtex-order = "alphabetical"
bibtex-throw = true bibtex-throw = true
# asciidoctor-tabs
tabs-sync-option = true

View File

@ -1,4 +1,4 @@
[foo-dogsquared] [author.foo-dogsquared]
name = "Gabriel Arazas" name = "Gabriel Arazas"
alias = "foo-dogsquared" alias = "foo-dogsquared"
email = "foodogsquared@foodogsquared.one" email = "foodogsquared@foodogsquared.one"

View File

@ -1,15 +1,5 @@
useImage = true useImage = true
[[links]]
id = "twitter"
url = "https://twitter.com/foo_dogsquared"
name = "Twitter"
[[links]]
id = "mastodon"
url = "https://fosstodon.org/@foodogsquared"
name = "Fosstodon"
[[links]] [[links]]
id = "github" id = "github"
url = "https://github.com/foo-dogsquared/" url = "https://github.com/foo-dogsquared/"
@ -20,11 +10,6 @@ id = "gitlab"
url = "https://gitlab.com/foo-dogsquared/" url = "https://gitlab.com/foo-dogsquared/"
name = "GitLab" name = "GitLab"
[[links]]
id = "keybase"
url = "https://keybase.io/foo_dogsquared"
name = "Keybase"
[[links]] [[links]]
id = "rss" id = "rss"
url = "index.atom" url = "index.atom"

View File

@ -3,7 +3,7 @@
<p><a href="#top">{{ T "back_to_top" | default "Back to top" }}</a></p> <p><a href="#top">{{ T "back_to_top" | default "Back to top" }}</a></p>
<!-- Linking to other languages' homepage. --> <!-- Linking to other languages' homepage. -->
{{ if $.Site.IsMultiLingual }} {{ if hugo.IsMultilingual }}
<p>{{ T "multilingual" }}: <p>{{ T "multilingual" }}:
<span class="list site__languages"> <span class="list site__languages">
{{ range $.Site.Languages }} {{ range $.Site.Languages }}

View File

@ -1,5 +1,5 @@
{{- /* Here's where the customized version should be. */ -}} {{- /* Here's where the customized version should be. */ -}}
{{ $highlighter := resources.Get "css/rouge.scss" | resources.ToCSS }} {{ $highlighter := resources.Get "css/rouge.scss" | toCSS }}
{{- if hugo.IsProduction }} {{- if hugo.IsProduction }}
{{ $highlighter = $highlighter | resources.Minify | resources.Fingerprint }} {{ $highlighter = $highlighter | resources.Minify | resources.Fingerprint }}
{{ end }} {{ end }}