Compare commits

..

4 Commits

13 changed files with 82 additions and 152 deletions

View File

@ -135,64 +135,48 @@
/* Category list format */ /* Taxonomy list format */
.category-list ul { .taxonomy-list a,
display: flex; .taxonomy-list .taxonomy-metadata {
flex-direction: column;
list-style: none;
gap: 10px;
padding: 0;
}
.category-list li {
display: flex;
flex-direction: row;
gap: 20px;
background-color: var(--background-1);
padding: 8px 12px;
border-radius: 8px;
}
@media (max-width: 360px) {
.category-list li {
flex-direction: column;
gap: 0;
}
}
.category-list p {
margin: 0;
}
.category-list .category-metadata {
margin-left: auto;
}
.category-list a,
.category-list .category-metadata {
white-space: nowrap; white-space: nowrap;
} }
.taxonomy-list p {
margin: 0;
/* Tags list format */
.tag-list ul {
display: flex;
list-style: none;
gap: 10px;
flex-flow: row wrap;
padding: 0;
} }
.tag-list a { .taxonomy-list ul {
list-style: none;
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.taxonomy-list li {
background-color: var(--background-1); background-color: var(--background-1);
padding: 8px 12px; padding: 8px 12px;
border-radius: 12px; border-radius: 8px;
display: flex;
flex-direction: row;
gap: 20px;
} }
.tag-list a:hover { .taxonomy-list-left {
text-decoration: none; display: flex;
background-color: var(--background-2); flex-direction: column;
}
@media (max-width: 480px) {
.taxonomy-list li {
flex-direction: column;
gap: 4px;
}
.taxonomy-list-left {
flex-direction: row;
justify-content: space-between;
}
} }
@ -255,6 +239,10 @@
/* Header formatting (website title and article section headers) */ /* Header formatting (website title and article section headers) */
h1.header {
font-size: 1.5em;
}
.header a, .header a,
.section-header a { .section-header a {
color: inherit; color: inherit;

View File

@ -94,8 +94,8 @@ aria_post_metadata:
aria_author_metadata: aria_author_metadata:
other: "author metadata" other: "author metadata"
aria_category_metadata: aria_taxonomy_metadata:
other: "category metadata" other: "taxonomy metadata"
aria_post_meta_date: aria_post_meta_date:
other: "date" other: "date"
@ -109,7 +109,7 @@ aria_author_post_count:
aria_author_word_count: aria_author_word_count:
other: "word count" other: "word count"
aria_category_post_count: aria_taxonomy_post_count:
other: "post count" other: "post count"
aria_series_metadata: aria_series_metadata:

View File

@ -94,8 +94,8 @@ newer_post:
# aria_author_metadata: # aria_author_metadata:
# other: "author metadata" # other: "author metadata"
# aria_category_metadata: # aria_taxonomy_metadata:
# other: "category metadata" # other: "taxonomy metadata"
# aria_post_meta_date: # aria_post_meta_date:
# other: "date" # other: "date"
@ -109,7 +109,7 @@ newer_post:
# aria_author_word_count: # aria_author_word_count:
# other: "word count" # other: "word count"
# aria_category_post_count: # aria_taxonomy_post_count:
# other: "post count" # other: "post count"
# aria_series_metadata: # aria_series_metadata:

View File

@ -1,28 +0,0 @@
{{ define "main" }}
<h1>
{{ partial "icon.html" "folder" }}
{{ .Title | markdownify }}
</h1>
<div class="category-list">
{{ with .Data.Terms.Alphabetical }}
<ul>
{{ range . }}
{{ with .Page }}
<li>
<a href="{{ .Permalink }}">
<p>{{ .Title | markdownify }}</p>
</a>
{{ partial "description-or-summary.html" . }}
{{ partial "post-metadata/category.html" . }}
</li>
{{ end }}
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ end }}

View File

@ -1,17 +0,0 @@
{{ define "main" }}
<h1>
{{ partial "icon.html" "folder" }}
{{ .Title | markdownify }}
{{ partial "rss-link.html" . }}
</h1>
{{ partial "post-metadata/category.html" . }}
{{ with .Content }}
{{ . }}
{{ end }}
{{ partial "page-list.html" .Paginator.Pages }}
{{ partial "pagination.html" . }}
{{ end }}

View File

@ -1,6 +0,0 @@
<div class="category-metadata" aria-label="{{ i18n "aria_category_metadata" }}">
<span class="category-meta-item" aria-label="{{ i18n "aria_category_post_count" }}">
{{ partial "icon.html" "newspaper" }}
{{ i18n "post_count" (len .Data.Pages) }}
</span>
</div>

View File

@ -0,0 +1,6 @@
<div class="taxonomy-metadata" aria-label="{{ i18n "aria_taxonomy_metadata" }}">
<span class="taxonomy-meta-item" aria-label="{{ i18n "aria_taxonomy_post_count" }}">
{{ partial "icon.html" "newspaper" }}
{{ i18n "post_count" (len .Data.Pages) }}
</span>
</div>

View File

@ -1,6 +1,6 @@
<h2 class="header"> <h1 class="header">
<a href="{{ .Site.Home.Permalink | absLangURL }}">{{ .Site.Title | markdownify }}</a> <a href="{{ .Site.Home.Permalink | absLangURL }}">{{ .Site.Title | markdownify }}</a>
</h2> </h1>
<div class="topbar"> <div class="topbar">
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}"> <nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">

View File

@ -1,6 +1,6 @@
<div class="see-also"> <div class="see-also">
{{ with .Site.GetPage (.Get 0) }} {{ with .Site.GetPage (.Get 0) }}
<p>{{ i18n "see_also" }} <a href="{{ .Permalink }}">{{ .Title }}</a></p> <p>{{ i18n "see_also" }} <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></p>
{{ else }} {{ else }}
{{ errorf "Page could not be found for see-also shortcode: %s" .Position }} {{ errorf "Page could not be found for see-also shortcode: %s" .Position }}
{{ end }} {{ end }}

View File

@ -1,22 +0,0 @@
{{ define "main" }}
<h1>
{{ partial "icon.html" "tag" }}
{{ .Title | markdownify }}
</h1>
<div class="tag-list">
{{ with .Data.Terms.Alphabetical }}
<ul>
{{ range . }}
<a href="{{ .Page.Permalink }}">
<li>{{ .Page.Title | markdownify }}</li>
</a>
{{ end }}
</ul>
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ end }}

View File

@ -1,15 +0,0 @@
{{ define "main" }}
<h1>
{{ partial "icon.html" "tag" }}
{{ .Title | markdownify }}
{{ partial "rss-link.html" . }}
</h1>
{{ with .Content }}
{{ . }}
{{ end }}
{{ partial "page-list.html" .Paginator.Pages }}
{{ partial "pagination.html" . }}
{{ end }}

View File

@ -1,16 +1,31 @@
{{ define "main" }} {{ define "main" }}
<h1> <h1>
{{ partial "icon.html" "filter" }} {{ if eq .Data.Singular "tag" }}
{{ partial "icon.html" "tag" }}
{{ else if eq .Data.Singular "category" }}
{{ partial "icon.html" "folder" }}
{{ else }}
{{ partial "icon.html" "filter" }}
{{ end }}
{{ .Title | markdownify }} {{ .Title | markdownify }}
</h1> </h1>
<div class="taxonomy"> <div class="taxonomy-list">
{{ with .Data.Terms.Alphabetical }} {{ with .Data.Terms.Alphabetical }}
<ul> <ul>
{{ range . }} {{ range . }}
<li> {{ with .Page }}
<a href="{{ .Page.Permalink }}">{{ .Page.Title | markdownify }}</a> <li>
</li> <div class="taxonomy-list-left">
<a href="{{ .Permalink }}">
<p>{{ .Title | markdownify }}</p>
</a>
{{ partial "post-metadata/taxonomy.html" . }}
</div>
{{ partial "description-or-summary.html" . }}
</li>
{{ end }}
{{ end }} {{ end }}
</ul> </ul>
{{ else }} {{ else }}

View File

@ -1,10 +1,19 @@
{{ define "main" }} {{ define "main" }}
<h1> <h1>
{{ partial "icon.html" "filter" }} {{ if eq .Data.Singular "tag" }}
{{ partial "icon.html" "tag" }}
{{ else if eq .Data.Singular "category" }}
{{ partial "icon.html" "folder" }}
{{ else }}
{{ partial "icon.html" "filter" }}
{{ end }}
{{ .Title | markdownify }} {{ .Title | markdownify }}
{{ partial "rss-link.html" . }} {{ partial "rss-link.html" . }}
</h1> </h1>
{{ partial "post-metadata/taxonomy.html" . }}
{{ with .Content }} {{ with .Content }}
{{ . }} {{ . }}
{{ end }} {{ end }}