summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-10-08 22:15:08 +0200
committerxengineering <me@xengineering.eu>2022-10-08 22:17:42 +0200
commitef01f4956f6a7bef559cb2d4d83fb42787ac043f (patch)
treeee91cd8970bb808ff398058d03b749e0be88c1a2
parent4912c1607b8b2f7bf2f8e3228c69b2b046f68f78 (diff)
downloadwebsite-ef01f4956f6a7bef559cb2d4d83fb42787ac043f.tar
website-ef01f4956f6a7bef559cb2d4d83fb42787ac043f.tar.zst
website-ef01f4956f6a7bef559cb2d4d83fb42787ac043f.zip
Implement usage of friendly_name
-rw-r--r--themes/bare/layouts/git/list.html6
-rw-r--r--themes/bare/layouts/git/single.html4
-rw-r--r--themes/bare/layouts/index.html2
3 files changed, 6 insertions, 6 deletions
diff --git a/themes/bare/layouts/git/list.html b/themes/bare/layouts/git/list.html
index 7d86fa8..f4cd50e 100644
--- a/themes/bare/layouts/git/list.html
+++ b/themes/bare/layouts/git/list.html
@@ -29,7 +29,7 @@
<ul>
{{- range.Pages }}
{{ if eq .Params.state "active" }}
- <li><a href="{{ .RelPermalink }}">{{ .Params.name }}</a> - {{.Description}}</li>
+ <li><a href="{{ .RelPermalink }}">{{ .Params.friendly_name }}</a> - {{.Description}}</li>
{{ end }}
{{ end -}}
</ul>
@@ -39,7 +39,7 @@
<ul>
{{- range.Pages }}
{{ if eq .Params.state "experimental" }}
- <li><a href="{{ .RelPermalink }}">{{ .Params.name }}</a> - {{.Description}}</li>
+ <li><a href="{{ .RelPermalink }}">{{ .Params.friendly_name }}</a> - {{.Description}}</li>
{{ end }}
{{ end -}}
</ul>
@@ -49,7 +49,7 @@
<ul>
{{- range.Pages }}
{{ if eq .Params.state "archived" }}
- <li><a href="{{ .RelPermalink }}">{{ .Params.name }}</a> - {{.Description}}</li>
+ <li><a href="{{ .RelPermalink }}">{{ .Params.friendly_name }}</a> - {{.Description}}</li>
{{ end }}
{{ end -}}
</ul>
diff --git a/themes/bare/layouts/git/single.html b/themes/bare/layouts/git/single.html
index 82aa0d2..c353cbd 100644
--- a/themes/bare/layouts/git/single.html
+++ b/themes/bare/layouts/git/single.html
@@ -8,7 +8,7 @@
<head>
- <title>{{.Params.name}}</title>
+ <title>{{.Params.friendly_name}}</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -20,7 +20,7 @@
<main>
- <h1>{{.Params.name}}</h1>
+ <h1>{{.Params.friendly_name}}</h1>
<div class="card">
<p class="card-first-item">{{ .Params.description }}</p>
diff --git a/themes/bare/layouts/index.html b/themes/bare/layouts/index.html
index ecf8ad9..741001e 100644
--- a/themes/bare/layouts/index.html
+++ b/themes/bare/layouts/index.html
@@ -37,7 +37,7 @@
{{ range.Site.RegularPages }}
{{ if eq .Section "git" }}
{{ if eq .Params.state "active" }}
- <li><a href="{{.Permalink}}">{{.Params.name}}</a> - {{.Description}}</li>
+ <li><a href="{{.Permalink}}">{{.Params.friendly_name}}</a> - {{.Description}}</li>
{{ end }}
{{ end }}
{{ end }}