diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 7e40eea..4060afe 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -3,10 +3,6 @@ margin: 24px auto var(--content-gap) auto; } -.post-title { - margin-bottom: 2px; - font-size: 40px; -} .post-description { margin-top: 10px; diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html new file mode 100644 index 0000000..8e131b9 --- /dev/null +++ b/layouts/_default/_markup/render-link.html @@ -0,0 +1,3 @@ + + +{{ .Text | safeHTML }} \ No newline at end of file diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index b38e39a..f80ec54 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -27,7 +27,7 @@ {{- end }} -{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} +{{- $pages := where ( where site.RegularPages "Type" "in" site.Params.mainSections ) ".Params.offTheRecord" "!=" true }} {{- if site.Params.ShowAllPagesInArchive }} {{- $pages = site.RegularPages }} diff --git a/layouts/_default/index.json b/layouts/_default/index.json index feeb437..c6addbf 100644 --- a/layouts/_default/index.json +++ b/layouts/_default/index.json @@ -1,6 +1,6 @@ {{- $.Scratch.Add "index" slice -}} {{- range site.RegularPages -}} - {{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }} + {{- if and (not .Params.searchHidden) (ne .Params.offTheRecord true) (ne .Layout `archives`) (ne .Layout `search`) }} {{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary) -}} {{- end }} {{- end -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 81aea6e..33a79b4 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -43,6 +43,7 @@ {{- if .IsHome }} {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} {{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} +{{- $pages = where $pages "Params.offTheRecord" "!=" "true" }} {{- end }} {{- $paginator := .Paginate $pages }} @@ -97,20 +98,10 @@ diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 44f1498..f3fa71e 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -33,7 +33,7 @@ {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} {{ range $pages }} - {{- if and (ne .Layout `search`) (ne .Layout `archives`) }} + {{- if and (ne .Layout `search`) (ne .Params.offTheRecord true) (ne .Layout `archives`) }} {{ .Title }} {{ .Permalink }} diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml new file mode 100644 index 0000000..5bec19a --- /dev/null +++ b/layouts/_default/sitemap.xml @@ -0,0 +1,24 @@ +{{ printf "" | safeHTML }} + + {{ range .Data.Pages }} + {{- if and .Permalink (ne .Params.offTheRecord true) -}} + + {{ .Permalink }}{{ if not .Lastmod.IsZero }} + {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} + {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} + {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} + {{ end }} + {{ end }} + + {{- end -}} + {{ end }} + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 35257fc..112e84d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,7 @@ -{{- if hugo.IsProduction | or (eq site.Params.env "production") | and (ne .Params.robotsNoIndex true) }} +{{- if hugo.IsProduction | or (eq site.Params.env "production") | and (ne .Params.offTheRecord true) (ne .Params.robotsNoIndex true) }} {{- else }}