From 59024e55e1dea279b8acad3a9a8d2403c8bf3028 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 15 Aug 2022 22:37:43 -0400 Subject: config: Use route names in output format labels Easier search. --- config.json | 12 +- config.toml | 8 +- config.yaml | 12 +- .../layouts/_default/home.archive-messages.html | 48 ------- .../layouts/_default/home.archive-tags.html | 56 -------- themes/default/layouts/_default/home.history.html | 48 +++++++ themes/default/layouts/_default/home.records.html | 56 ++++++++ themes/default/layouts/_default/home.rss-style.xsl | 146 --------------------- themes/default/layouts/_default/home.xslt.xsl | 146 +++++++++++++++++++++ 9 files changed, 266 insertions(+), 266 deletions(-) delete mode 100644 themes/default/layouts/_default/home.archive-messages.html delete mode 100644 themes/default/layouts/_default/home.archive-tags.html create mode 100644 themes/default/layouts/_default/home.history.html create mode 100644 themes/default/layouts/_default/home.records.html delete mode 100644 themes/default/layouts/_default/home.rss-style.xsl create mode 100644 themes/default/layouts/_default/home.xslt.xsl diff --git a/config.json b/config.json index 845d573..938286d 100644 --- a/config.json +++ b/config.json @@ -189,7 +189,7 @@ "baseName": "rss", "mediaType": "application/rss+xml" }, - "rss-style": { + "xslt": { "baseName": "rss", "mediaType": "application/xslt+xml" }, @@ -198,12 +198,12 @@ "baseName": "index", "mediaType": "text/html" }, - "archive-messages": { + "history": { "path": "archives/messages", "baseName": "index", "mediaType": "text/html" }, - "archive-tags": { + "records": { "path": "archives/tags", "baseName": "index", "mediaType": "text/html" @@ -226,13 +226,13 @@ "home": [ "html", "rss", - "rss-style", + "xslt", "json", "authors", "sources", "browserconfig", - "archive-messages", - "archive-tags", + "history", + "records", "webmanifest" ], "section": [ diff --git a/config.toml b/config.toml index bf7f352..5171bd0 100644 --- a/config.toml +++ b/config.toml @@ -136,7 +136,7 @@ enableRobotsTXT = true baseName = "rss" mediaType = "application/rss+xml" - [outputFormats.rss-style] + [outputFormats.xslt] baseName = "rss" mediaType = "application/xslt+xml" @@ -145,12 +145,12 @@ enableRobotsTXT = true baseName = "index" mediaType = "text/html" - [outputFormats.archive-messages] + [outputFormats.history] path = "archives/messages" baseName = "index" mediaType = "text/html" - [outputFormats.archive-tags] + [outputFormats.records] path = "archives/tags" baseName = "index" mediaType = "text/html" @@ -169,7 +169,7 @@ enableRobotsTXT = true mediaType = "application/manifest+json" [outputs] - home = ["html", "rss", "rss-style", "json", "authors", "sources", "browserconfig", "archive-messages", "archive-tags", "webmanifest"] + home = ["html", "rss", "xslt", "json", "authors", "sources", "browserconfig", "history", "records", "webmanifest"] section = ["html", "rss"] taxonomy = ["html", "rss"] term = ["html", "rss"] diff --git a/config.yaml b/config.yaml index fd17f55..5cdc657 100644 --- a/config.yaml +++ b/config.yaml @@ -122,18 +122,18 @@ outputFormats: rss: baseName: rss mediaType: application/rss+xml - rss-style: + xslt: baseName: rss mediaType: application/xslt+xml authors: path: authors baseName: index mediaType: text/html - archive-messages: + history: path: archives/messages baseName: index mediaType: text/html - archive-tags: + records: path: archives/tags baseName: index mediaType: text/html @@ -152,13 +152,13 @@ outputs: home: - html - rss - - rss-style + - xslt - json - authors - sources - browserconfig - - archive-messages - - archive-tags + - history + - records - webmanifest section: - html diff --git a/themes/default/layouts/_default/home.archive-messages.html b/themes/default/layouts/_default/home.archive-messages.html deleted file mode 100644 index 03afa5c..0000000 --- a/themes/default/layouts/_default/home.archive-messages.html +++ /dev/null @@ -1,48 +0,0 @@ -{{ define "title" }}Message History — {{ end }} -{{ define "description" }}This page contains an archive of all messages — {{ end }} -{{ define "styles" }} - -{{ end }} - -{{ define "middle" }} - -{{ partial "navigator-middle.html" - (dict - "Title" "History" - "Subtitle" (partial "count-total-messages.html" .) - "Icon" "arrow-left" - "IconLabel" "Back" - "Href" "/" - "Id" "back" - "Context" . - ) -}} - - - - {{ $type := (partial "author-user.html" .) }} - {{ range (.Site.RegularPages.GroupByDate "2006") }} - {{ range (first 1 .Pages) }} -

{{ .Date.Format "2006" }}

- {{ end }} - - {{ end }} -
-
-{{ end }} - -{{ define "right" }} - {{- partial "navigator-right.html" . -}} -{{ end }} diff --git a/themes/default/layouts/_default/home.archive-tags.html b/themes/default/layouts/_default/home.archive-tags.html deleted file mode 100644 index 4161392..0000000 --- a/themes/default/layouts/_default/home.archive-tags.html +++ /dev/null @@ -1,56 +0,0 @@ -{{ define "title" }}Tags Archive — {{ end }} -{{ define "description" }}This page contains an archive of all tags — {{ end }} -{{ define "styles" }} - -{{ end }} - -{{ define "middle" }} - -{{ partial "navigator-middle.html" - (dict - "Title" "Records" - "Subtitle" (partial "count-tags.html" .) - "Icon" "arrow-left" - "IconLabel" "Back" - "Href" "/" - "Id" "back" - "Context" . - ) -}} - -{{- $page := 1 -}} -{{- $count := 0 -}} - - - {{ range $taxonomy := .Site.Taxonomies }} - {{ range $tag, $article := $taxonomy }} -

#{{ $tag }}

- - {{ end }} - {{ end }} -
-{{ end }} - -{{ define "right" }} - {{- partial "navigator-right.html" . -}} -{{ end }} diff --git a/themes/default/layouts/_default/home.history.html b/themes/default/layouts/_default/home.history.html new file mode 100644 index 0000000..03afa5c --- /dev/null +++ b/themes/default/layouts/_default/home.history.html @@ -0,0 +1,48 @@ +{{ define "title" }}Message History — {{ end }} +{{ define "description" }}This page contains an archive of all messages — {{ end }} +{{ define "styles" }} + +{{ end }} + +{{ define "middle" }} + +{{ partial "navigator-middle.html" + (dict + "Title" "History" + "Subtitle" (partial "count-total-messages.html" .) + "Icon" "arrow-left" + "IconLabel" "Back" + "Href" "/" + "Id" "back" + "Context" . + ) +}} + + + + {{ $type := (partial "author-user.html" .) }} + {{ range (.Site.RegularPages.GroupByDate "2006") }} + {{ range (first 1 .Pages) }} +

{{ .Date.Format "2006" }}

+ {{ end }} + + {{ end }} +
+
+{{ end }} + +{{ define "right" }} + {{- partial "navigator-right.html" . -}} +{{ end }} diff --git a/themes/default/layouts/_default/home.records.html b/themes/default/layouts/_default/home.records.html new file mode 100644 index 0000000..4161392 --- /dev/null +++ b/themes/default/layouts/_default/home.records.html @@ -0,0 +1,56 @@ +{{ define "title" }}Tags Archive — {{ end }} +{{ define "description" }}This page contains an archive of all tags — {{ end }} +{{ define "styles" }} + +{{ end }} + +{{ define "middle" }} + +{{ partial "navigator-middle.html" + (dict + "Title" "Records" + "Subtitle" (partial "count-tags.html" .) + "Icon" "arrow-left" + "IconLabel" "Back" + "Href" "/" + "Id" "back" + "Context" . + ) +}} + +{{- $page := 1 -}} +{{- $count := 0 -}} + + + {{ range $taxonomy := .Site.Taxonomies }} + {{ range $tag, $article := $taxonomy }} +

#{{ $tag }}

+ + {{ end }} + {{ end }} +
+{{ end }} + +{{ define "right" }} + {{- partial "navigator-right.html" . -}} +{{ end }} diff --git a/themes/default/layouts/_default/home.rss-style.xsl b/themes/default/layouts/_default/home.rss-style.xsl deleted file mode 100644 index f2aeb43..0000000 --- a/themes/default/layouts/_default/home.rss-style.xsl +++ /dev/null @@ -1,146 +0,0 @@ -{{- print "" | safeHTML }} - - - - - - {{ print "<xsl:value-of select=\"/rss/channel/title\"/> Web Feed" | safeHTML }} - - - {{- $default := resources.Get "css/default.css" -}} - {{- if .Site.Params.site.production -}} - {{ $css := slice $default | resources.Concat "css/bundle.css" | resources.Minify | fingerprint }} - - {{- else }} - - {{- end }} - - - - - -
- - - - - - -
- - - - - - {{ .Site.BaseURL }}//media/profile/picture.png - - - -
-
- -

- - - - -

- Published: -
-
-
-
-
-
- - - - -
-
diff --git a/themes/default/layouts/_default/home.xslt.xsl b/themes/default/layouts/_default/home.xslt.xsl new file mode 100644 index 0000000..f2aeb43 --- /dev/null +++ b/themes/default/layouts/_default/home.xslt.xsl @@ -0,0 +1,146 @@ +{{- print "" | safeHTML }} + + + + + + {{ print "<xsl:value-of select=\"/rss/channel/title\"/> Web Feed" | safeHTML }} + + + {{- $default := resources.Get "css/default.css" -}} + {{- if .Site.Params.site.production -}} + {{ $css := slice $default | resources.Concat "css/bundle.css" | resources.Minify | fingerprint }} + + {{- else }} + + {{- end }} + + + + + +
+ + + + + + +
+ + + + + + {{ .Site.BaseURL }}//media/profile/picture.png + + + +
+
+ +

+ + + + +

+ Published: +
+
+
+
+
+
+ + + + +
+
-- cgit v1.2.3