Compare commits
9 Commits
0b693a7d36
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d9b7aa88d0 | |||
| d834694a38 | |||
| 4fcaa0ad08 | |||
| 1d2aa49658 | |||
| 80cdbc9e16 | |||
| 453f866a3c | |||
| 32039ae42c | |||
| cd15701092 | |||
| 270be48baa |
@@ -11,6 +11,7 @@ summaryLength = 5
|
||||
buildDrafts = true
|
||||
buildFuture = true
|
||||
enableEmoji = true
|
||||
enableGitInfo = true
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
@@ -27,9 +28,8 @@ enableEmoji = true
|
||||
home = ["HTML", "RSS", "JSON"]
|
||||
|
||||
[frontmatter]
|
||||
lastmod = ["lastmod", ":git", "date"]
|
||||
|
||||
enableGitInfo = true
|
||||
# Order of priority for the .Lastmod date
|
||||
lastmod = [":git", ":fileModTime", "lastmod", "date", "publishDate"]
|
||||
|
||||
[markup.tableOfContents]
|
||||
endLevel = 3
|
||||
@@ -43,18 +43,24 @@ 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/srv/configs"
|
||||
target = "assets/configs"
|
||||
[[module.mounts]]
|
||||
source = "/srv/dev/hugo/wiki"
|
||||
target = "assets/dev/hugo/wiki"
|
||||
|
||||
[security]
|
||||
[security.funcs]
|
||||
readFile = [".*"]
|
||||
"os.Stat" = [".*"]
|
||||
"os.ReadDir" = [".*"]
|
||||
[[module.mounts]]
|
||||
source = "assets"
|
||||
target = "assets"
|
||||
[security.exec]
|
||||
# Hugo must be allowed to run the asciidoctor binary
|
||||
allow = ['^asciidoctor$']
|
||||
allow = ['^git$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" . }}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user