From 544ced362819ae9bd2abd9c12480f76945b368aa Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 24 Apr 2026 11:15:04 -0400 Subject: format html --- layouts/_partials/asset-table.html | 36 ++++++++++++++++++------------------ layouts/_partials/copyright.html | 6 +++--- layouts/_partials/footer.html | 24 ++++++++++++------------ layouts/_partials/pages.html | 32 ++++++++++++++++---------------- layouts/_partials/terms.html | 8 ++++---- 5 files changed, 53 insertions(+), 53 deletions(-) (limited to 'layouts/_partials') diff --git a/layouts/_partials/asset-table.html b/layouts/_partials/asset-table.html index df47501..2e236de 100644 --- a/layouts/_partials/asset-table.html +++ b/layouts/_partials/asset-table.html @@ -12,22 +12,22 @@ the modification times of files when the repository is cloned. */}} - - - - - - - - {{- range . }} - - - - - {{- end }} - + + + + + + + + {{- range . }} + + + + + {{- end }} +
Mod. dateFile
- {{- with resources.Get (printf "%s.moddate" .Name) -}} - {{- chomp .Content | time | dateFormat "2006-01-02" -}} - {{- end -}} - {{ path.Base .Name }}
Mod. dateFile
+ {{- with resources.Get (printf "%s.moddate" .Name) -}} + {{- chomp .Content | time | dateFormat "2006-01-02" -}} + {{- end -}} + {{ path.Base .Name }}
diff --git a/layouts/_partials/copyright.html b/layouts/_partials/copyright.html index 0fed830..5a26d6d 100644 --- a/layouts/_partials/copyright.html +++ b/layouts/_partials/copyright.html @@ -1,11 +1,11 @@ {{- $oldest := (index .Site.RegularPages.ByDate 0).Date.Year }} {{- $newest := (index .Site.Pages.ByLastmod.Reverse 0).Lastmod.Year }} {{- if gt $newest $oldest }} - Copyright {{ $oldest }}–{{ $newest }} + Copyright {{ $oldest }}–{{ $newest }} {{- else }} - Copyright {{ $newest }} + Copyright {{ $newest }} {{- end }} {{- with .Site.Params.author.name -}} - , {{ . }} + , {{ . }} {{- end -}} . diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html index 882c3f8..cd01a54 100644 --- a/layouts/_partials/footer.html +++ b/layouts/_partials/footer.html @@ -1,18 +1,18 @@

{{ partial "copyright.html" . }}

- Powered by - Hugo, - OpenBSD, and - Free DNS. + Powered by + Hugo, + OpenBSD, and + Free DNS.

- {{- $repoUrl := .Site.Params.Repo.Url }} - {{- with .GitInfo }} - {{- $baseUrl := urls.JoinPath $repoUrl "/commit/" }} - {{- $commitUrl := printf "%s?id=%s" $baseUrl .Hash }} - Last modified {{ .CommitDate.Format "2006-01-02" }}: - {{ .AbbreviatedHash }}. - {{- end }} - Source code → + {{- $repoUrl := .Site.Params.Repo.Url }} + {{- with .GitInfo }} + {{- $baseUrl := urls.JoinPath $repoUrl "/commit/" }} + {{- $commitUrl := printf "%s?id=%s" $baseUrl .Hash }} + Last modified {{ .CommitDate.Format "2006-01-02" }}: + {{ .AbbreviatedHash }}. + {{- end }} + Source code →

diff --git a/layouts/_partials/pages.html b/layouts/_partials/pages.html index 6a7dc16..8ebdb58 100644 --- a/layouts/_partials/pages.html +++ b/layouts/_partials/pages.html @@ -7,20 +7,20 @@ Renders a table of pages. */}} - - - - - - - - - {{- range .Pages }} - - - - - - {{- end }} - + + + + + + + + + {{- range .Pages }} + + + + + + {{- end }} +
DateTitleTags
{{ partial "date.html" .Date -}}{{ .LinkTitle }}{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
DateTitleTags
{{ partial "date.html" .Date -}}{{ .LinkTitle }}{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
diff --git a/layouts/_partials/terms.html b/layouts/_partials/terms.html index afe3a14..e693236 100644 --- a/layouts/_partials/terms.html +++ b/layouts/_partials/terms.html @@ -11,8 +11,8 @@ For a given taxonomy, renders a comma-separated list of terms assigned to the pa {{- $page := .page }} {{- with $page.GetTerms $taxonomy -}} - {{- range $index, $term := . -}} - {{- if $index }}, {{ end -}} - {{ .LinkTitle }} - {{- end -}} + {{- range $index, $term := . -}} + {{- if $index }}, {{ end -}} + {{ .LinkTitle }} + {{- end -}} {{- end -}} -- cgit v1.2.3