aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-05-02 18:18:44 -0400
committertdro <tdro@noreply.example.com>2023-05-02 18:18:44 -0400
commit95d0cf887535137b9f0b04dce166b294db914b03 (patch)
tree8be4f0b7d7fd36856d5f1dd168553b93835dbc9e
parent9544fa0c00aec79bff38f43bbdd8fc2ab80f0557 (diff)
downloadcanory-95d0cf887535137b9f0b04dce166b294db914b03.tar.gz
canory-95d0cf887535137b9f0b04dce166b294db914b03.tar.bz2
canory-95d0cf887535137b9f0b04dce166b294db914b03.zip
themes/default/layouts: Squash history + records -> archives0.11.12
That was as interesting experiment..
-rw-r--r--assets/css/default.css6
-rw-r--r--config.json18
-rw-r--r--config.toml17
-rw-r--r--config.yaml15
-rw-r--r--themes/default/layouts/_default/home.archives.html (renamed from themes/default/layouts/_default/home.history.html)8
-rw-r--r--themes/default/layouts/_default/home.records.html52
-rw-r--r--themes/default/layouts/shortcodes/version.html2
7 files changed, 16 insertions, 102 deletions
diff --git a/assets/css/default.css b/assets/css/default.css
index de97f3f..4830aa2 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -882,8 +882,7 @@ micro-tags {
display: block;
}
-history-archive h1,
-records-archive h1 {
+archive-list h1 {
text-align: center;
font-weight: 400;
font-size: 150%;
@@ -1745,8 +1744,7 @@ item-list li:hover span:last-child {
text-decoration: underline;
}
-item-list li > a,
-records-archive li {
+item-list li > a {
display: flex;
text-decoration: none;
align-items: baseline;
diff --git a/config.json b/config.json
index 8ae6924..06fd3c7 100644
--- a/config.json
+++ b/config.json
@@ -44,18 +44,12 @@
"icon": "home"
},
{
- "name": "History",
+ "name": "Archives",
"url": "/archives/messages/",
"identifier": "tabler/clock",
"weight": 3
},
{
- "name": "Records",
- "url": "/archives/tags/",
- "identifier": "tabler/book-2",
- "weight": 4
- },
- {
"name": "Authors",
"url": "/authors/",
"identifier": "feather/users",
@@ -219,16 +213,11 @@
"baseName": "authors",
"mediaType": "text/html"
},
- "history": {
+ "archives": {
"path": "archives/messages",
"baseName": "index",
"mediaType": "text/html"
},
- "records": {
- "path": "archives/tags",
- "baseName": "index",
- "mediaType": "text/html"
- },
"sources": {
"path": "sources",
"baseName": "index",
@@ -266,8 +255,7 @@
"authors.section",
"sources",
"browserconfig",
- "history",
- "records",
+ "archives",
"webmanifest"
],
"section": [
diff --git a/config.toml b/config.toml
index d615726..13466fe 100644
--- a/config.toml
+++ b/config.toml
@@ -39,18 +39,12 @@ enableRobotsTXT = true
icon = "home"
[[menu.main]]
- name = "History"
+ name = "Archives"
url = "/archives/messages/"
identifier = "tabler/clock"
weight = 3
[[menu.main]]
- name = "Records"
- url = "/archives/tags/"
- identifier = "tabler/book-2"
- weight = 4
-
- [[menu.main]]
name = "Authors"
url = "/authors/"
identifier = "feather/users"
@@ -166,16 +160,11 @@ enableRobotsTXT = true
baseName = "authors"
mediaType = "text/html"
- [outputFormats.history]
+ [outputFormats.archives]
path = "archives/messages"
baseName = "index"
mediaType = "text/html"
- [outputFormats.records]
- path = "archives/tags"
- baseName = "index"
- mediaType = "text/html"
-
[outputFormats.sources]
path = "sources"
baseName = "index"
@@ -202,7 +191,7 @@ enableRobotsTXT = true
mediaType = "text/html"
[outputs]
- home = ["html", "rss", "xslt.rss", "xslt.sitemap", "json", "authors", "authors.section", "sources", "browserconfig", "history", "records", "webmanifest"]
+ home = ["html", "rss", "xslt.rss", "xslt.sitemap", "json", "authors", "authors.section", "sources", "browserconfig", "archives", "webmanifest"]
section = ["html", "rss", "gallery", "following", "webring"]
taxonomy = ["html", "rss"]
term = ["html", "rss"]
diff --git a/config.yaml b/config.yaml
index 539ba0c..e202889 100644
--- a/config.yaml
+++ b/config.yaml
@@ -40,14 +40,10 @@ menu:
identifier: feather/tag
weight: 2
icon: home
- - name: History
+ - name: Archives
url: /archives/messages/
identifier: tabler/clock
weight: 3
- - name: Records
- url: /archives/tags/
- identifier: tabler/book-2
- weight: 4
- name: Authors
url: /authors/
identifier: feather/users
@@ -144,14 +140,10 @@ outputFormats:
authors.section:
baseName: authors
mediaType: text/html
- history:
+ archives:
path: archives/messages
baseName: index
mediaType: text/html
- records:
- path: archives/tags
- baseName: index
- mediaType: text/html
sources:
path: sources
baseName: index
@@ -183,8 +175,7 @@ outputs:
- authors.section
- sources
- browserconfig
- - history
- - records
+ - archives
- webmanifest
section:
- html
diff --git a/themes/default/layouts/_default/home.history.html b/themes/default/layouts/_default/home.archives.html
index 5765826..370bec0 100644
--- a/themes/default/layouts/_default/home.history.html
+++ b/themes/default/layouts/_default/home.archives.html
@@ -1,4 +1,4 @@
-{{ define "title" }}Message History &mdash; {{ end }}
+{{ define "title" }}Message Archive &mdash; {{ end }}
{{ define "description" }}This page contains an archive of all messages &mdash; {{ end }}
{{ define "styles" }}
<style>
@@ -10,7 +10,7 @@
{{ partial "navigator-middle.html"
(dict
- "Title" "History"
+ "Title" "Archives"
"Subtitle" (partial "count-total-messages.html" .)
"Icon" "arrow-left"
"IconLabel" "Back"
@@ -22,7 +22,7 @@
{{- $author := partial "function-authors-data.html" . -}}
- <history-archive>
+ <archive-list>
<item-list>
{{ range (.Paginator.Pages.GroupByDate "2006") }}
{{ range (first 1 .Pages) }}
@@ -46,7 +46,7 @@
</ul>
{{ end }}
</item-list>
- </history-archive>
+ </archive-list>
{{ partial "pagination.html" . }}
diff --git a/themes/default/layouts/_default/home.records.html b/themes/default/layouts/_default/home.records.html
deleted file mode 100644
index 137c673..0000000
--- a/themes/default/layouts/_default/home.records.html
+++ /dev/null
@@ -1,52 +0,0 @@
-{{ define "title" }}Tags Archive &mdash; {{ end }}
-{{ define "description" }}This page contains an archive of all tags &mdash; {{ end }}
-{{ define "styles" }}
-<style>
- {{ partial "styles-navigator.html" (dict "Link" "/archives/tags/") | safeCSS }}
-</style>
-{{ end }}
-
-{{ define "middle" }}
-
- {{ partial "navigator-middle.html"
- (dict
- "Title" "Records"
- "Subtitle" (partial "count-tags.html" .)
- "Icon" "arrow-left"
- "IconLabel" "Back"
- "Href" "/"
- "Id" "back"
- "Context" .
- )
- }}
-
- {{- $author := partial "function-authors-data.html" . -}}
-
- <records-archive>
- <item-list>
- {{ range (.Paginator.Pages.GroupByDate "2006") }}
- {{ range (first 1 .Pages) }}
- <h1>{{ .Date.Format "2006" }}</h1>
- {{ end }}
- <ul>
- {{ range .Pages }}
- <li>
- <span>
- <code title="{{ .Date | time.Format "Posted: Monday, January 2, 2006 at 15:04:05 MST" }}">{{ .Date.Format "02 Jan" }}</code>
- </span>
- <span>{{ partial "meta-tags.html" . }} &mdash; {{ partial "meta-title.html" . }}</span>
- <span>@{{ $author.user }}</span>
- </li>
- {{ end }}
- </ul>
- {{ end }}
- </item-list>
- </records-archive>
-
- {{ partial "pagination.html" . }}
-
-{{ end }}
-
-{{ define "right" }}
- {{- partial "navigator-right.html" . -}}
-{{ end }}
diff --git a/themes/default/layouts/shortcodes/version.html b/themes/default/layouts/shortcodes/version.html
index 11e7685..9c028c7 100644
--- a/themes/default/layouts/shortcodes/version.html
+++ b/themes/default/layouts/shortcodes/version.html
@@ -1,4 +1,4 @@
-{{- $theme := "0.11.11" -}}
+{{- $theme := "0.11.12" -}}
{{- $generator := "0.108.0" -}}
{{- $number := default false (.Get "number" | default (.Get 0)) -}}