commit 7f239f16e1f53970fb54fc1d1931d8ec95f75e77
parent 657eb4a83d03e1b8b8256c44c53083fd1c7d91ca
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Tue, 23 Jun 2020 19:36:52 +0200
Taxonomies are no longer 'titleized'
Diffstat:
4 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
@@ -1,10 +1,6 @@
{{ define "main" }}
<header class="page-header">
- {{- if eq .Kind "taxonomy" }}
- <h1>{{ .Title | title }}</h1>
- {{- else }}
<h1>{{ .Title }}</h1>
- {{- end }}
{{- if eq .Kind "taxonomy" }}
<h2>{{ .Data.Singular | title }}</h2>
{{- else }}
@@ -29,7 +25,7 @@
{{- end }}
</section>
<footer>
- {{ with .Params.categories }}<a class="p-category" style="color: var(--secondary-text-color)" href="{{ "blog/categories/" | relURL }}{{ . | urlize }}">{{ . | title }}</a> · {{ end }}<data class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</data> · {{ partial "read-time.html" . }}
+ {{ with .Params.categories }}<a class="p-category" style="color: var(--secondary-text-color)" href="{{ "blog/categories/" | relURL }}{{ . | urlize }}">{{ . }}</a> · {{ end }}<data class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</data> · {{ partial "read-time.html" . }}
</footer>
<a class="card-link u-url" href="{{ .RelPermalink }}"></a>
</div>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -1,13 +1,13 @@
{{ define "main" }}
<header class="page-header">
<h1>{{ .Site.Params.blog_title }}</h1>
- <h2>{{ .Params.categories | title }} entry</h2>
+ <h2>{{ .Params.categories }} entry</h2>
</header>
<main>
<article class="h-entry">
<header>
<h1 class="post-title p-name">{{ .Title }}</h1>
- <div class="post-meta">{{ with .Params.categories }}<a class="p-category" style="color: var(--secondary-text-color)" href="{{ "blog/categories/" | relURL }}{{ . | urlize }}">{{ . | title }}</a> · {{ end }}<data class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</data>{{ if ne .Lastmod .Date }} (last modified on <data class="dt-updated" datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ .Lastmod.Format "January 2, 2006" }}</data>){{ end }}
+ <div class="post-meta">{{ with .Params.categories }}<a class="p-category" style="color: var(--secondary-text-color)" href="{{ "blog/categories/" | relURL }}{{ . | urlize }}">{{ . }}</a> · {{ end }}<data class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</data>{{ if ne .Lastmod .Date }} (last modified on <data class="dt-updated" datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ .Lastmod.Format "January 2, 2006" }}</data>){{ end }}
</div>
</header>
<div class="post-content e-content">{{ .Content }}</div>
diff --git a/layouts/archive/single.html b/layouts/archive/single.html
@@ -23,7 +23,7 @@
<h2>Categories ({{ len .Site.Taxonomies.categories }})</h2>
<ul>
{{- range .Site.Taxonomies.categories }}
- <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title | title }}</a> ({{ .Count }} {{ if eq .Count 1}}entry{{ else }}entries{{ end }})</li>
+ <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }} {{ if eq .Count 1}}entry{{ else }}entries{{ end }})</li>
{{- end }}
</ul>
<h2>Tags ({{ len .Site.Taxonomies.tags }})</h2>
diff --git a/layouts/partials/head-base.html b/layouts/partials/head-base.html
@@ -5,4 +5,4 @@
{{- $favicon := resources.Get "img/favicon.min.svg" | fingerprint }}
<link rel="icon" href="{{ $favicon.RelPermalink }}">
<link rel="shortcut icon" href="/favicon.ico">
-<title>{{ if .Params.headtitle }}{{ .Params.headtitle }} | {{ else if eq .Kind "taxonomy" }}{{ .Title | title }} | {{ else if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
+<title>{{ if .Params.headtitle }}{{ .Params.headtitle }} | {{ else if eq .Kind "taxonomy" }}{{ .Title }} | {{ else if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>