Compare commits

..

6 Commits

4 changed files with 23 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ summaryLength = 5
buildDrafts = true buildDrafts = true
buildFuture = true buildFuture = true
enableEmoji = true enableEmoji = true
enableGitInfo = true
[taxonomies] [taxonomies]
tag = "tags" tag = "tags"
@@ -27,9 +28,8 @@ enableEmoji = true
home = ["HTML", "RSS", "JSON"] home = ["HTML", "RSS", "JSON"]
[frontmatter] [frontmatter]
lastmod = [":git", ":filemod", "default"] # Order of priority for the .Lastmod date
lastmod = [":git", ":fileModTime", "lastmod", "date", "publishDate"]
enableGitInfo = true
[markup.tableOfContents] [markup.tableOfContents]
endLevel = 3 endLevel = 3
@@ -43,12 +43,18 @@ enableGitInfo = true
[[module.mounts]] [[module.mounts]]
source = "/srv/docs/private" source = "/srv/docs/private"
target = "content/private" target = "content/private"
[[module.mounts]]
source = "/srv/docs/public/projects/hugo"
target = "content/public/projects/hugo"
[[module.mounts]] [[module.mounts]]
source = "assets" source = "assets"
target = "assets" target = "assets"
[[module.mounts]] [[module.mounts]]
source = "/srv/configs" source = "/srv/configs"
target = "assets/configs" target = "assets/configs"
[[module.mounts]]
source = "/srv/dev/hugo/wiki"
target = "assets/dev/hugo/wiki"
[security] [security]
[security.funcs] [security.funcs]
@@ -57,4 +63,4 @@ enableGitInfo = true
"os.ReadDir" = [".*"] "os.ReadDir" = [".*"]
[security.exec] [security.exec]
# Hugo must be allowed to run the asciidoctor binary # Hugo must be allowed to run the asciidoctor binary
allow = ["^asciidoctor$"] allow = ['^git$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']

View File

@@ -6,7 +6,7 @@
# https://nunocoracao.github.io/blowfish/docs/configuration/#theme-parameters # https://nunocoracao.github.io/blowfish/docs/configuration/#theme-parameters
colorScheme = "github" colorScheme = "github"
defaultAppearance = "light" # valid options: light or dark defaultAppearance = "dark" # valid options: light or dark
autoSwitchAppearance = true autoSwitchAppearance = true
enableSearch = true enableSearch = true

View File

@@ -10,6 +10,16 @@
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title | emojify }}</h1> <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title | emojify }}</h1>
<div class="mt-1 mb-6 text-base text-neutral-500 dark:text-neutral-400 print:hidden"> <div class="mt-1 mb-6 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
{{ partial "article-meta/basic.html" (dict "context" . "scope" "single") }} {{ partial "article-meta/basic.html" (dict "context" . "scope" "single") }}
<!-- Added Dates Section
<div class="mt-2 flex flex-wrap gap-x-4 italic opacity-80 text-sm">
<span>Published: {{ .Date.Format "Jan 2, 2006" }}</span>
{{ if ne (.Lastmod.Format "2006-01-02") (.Date.Format "2006-01-02") }}
<span class="before:content-['•'] before:mr-4">
Last updated: {{ .Lastmod.Format "Jan 2, 2006" }}
</span>
{{ end }}
</div> -->
</div> </div>
{{ if not (.Params.showAuthorBottom | default (site.Params.article.showAuthorBottom | default false)) }} {{ if not (.Params.showAuthorBottom | default (site.Params.article.showAuthorBottom | default false)) }}
{{ template "SingleAuthor" . }} {{ template "SingleAuthor" . }}

View File

@@ -2,8 +2,8 @@
{{- $content := "" -}} {{- $content := "" -}}
{{- $found := false -}} {{- $found := false -}}
{{- /* Handle /srv/configs/ mapping to assets mount (mounted at assets/configs) */ -}} {{- /* Handle /srv/ mapping to assets mount (trimming leading /srv/) */ -}}
{{- if strings.HasPrefix $path "/srv/configs/" -}} {{- if strings.HasPrefix $path "/srv/" -}}
{{- $assetPath := strings.TrimPrefix "/srv/" $path -}} {{- $assetPath := strings.TrimPrefix "/srv/" $path -}}
{{- $res := resources.Get $assetPath -}} {{- $res := resources.Get $assetPath -}}
{{- if $res -}} {{- if $res -}}