Compare commits

..

4 Commits

4 changed files with 19 additions and 3 deletions

View File

@@ -43,12 +43,18 @@ enableGitInfo = true
[[module.mounts]]
source = "/srv/docs/private"
target = "content/private"
[[module.mounts]]
source = "/srv/docs/public/projects/hugo"
target = "content/public/projects/hugo"
[[module.mounts]]
source = "assets"
target = "assets"
[[module.mounts]]
source = "/srv/configs"
target = "assets/configs"
[[module.mounts]]
source = "/srv/dev/hugo/wiki"
target = "assets/dev/hugo/wiki"
[security]
[security.funcs]

View File

@@ -6,7 +6,7 @@
# https://nunocoracao.github.io/blowfish/docs/configuration/#theme-parameters
colorScheme = "github"
defaultAppearance = "light" # valid options: light or dark
defaultAppearance = "dark" # valid options: light or dark
autoSwitchAppearance = 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>
<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") }}
<!-- 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>
{{ if not (.Params.showAuthorBottom | default (site.Params.article.showAuthorBottom | default false)) }}
{{ template "SingleAuthor" . }}

View File

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