Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/capnfabs/paperesque.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Tamp <fabian.tamp@gmail.com>2020-08-19 00:52:29 +0300
committerFabian Tamp <fabian.tamp@gmail.com>2020-08-19 00:52:29 +0300
commit45db2bf39fbca5b90734b57ab5e00a1a54217003 (patch)
tree654b4b659e1e732bbda434859fd1b14868cd98c2
parent3c53727a4d375e8e7e68eb9de76a8904e6a90660 (diff)
Standardize a bunch of list stuff.
-rw-r--r--layouts/_default/list.html44
-rw-r--r--layouts/index.html3
-rw-r--r--layouts/taxonomy/taxonomy.html2
-rw-r--r--layouts/taxonomy/terms.html2
4 files changed, 25 insertions, 26 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 6764af7..829d405 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,24 +1,24 @@
{{ define "content" }}
- <section id="main" class="content-container article-pad-v">
- <div>
- <h1 id="title" style="margin-bottom: 0.75em">{{.CurrentSection.Name}}</h1>
- <ul id="list" class="list-unstyled list-of-titles">
- {{ range .Data.Pages.ByDate.Reverse }}
- <li class="{{if .Draft }}draft{{ end }}">
- <a href="{{ .RelPermalink}}">
- <span class="post-title">{{ .Title }}</span>
- <br>
- <span class="post-meta">{{ .Date.Format "January 2, 2006" }}</span>
- <br>
- <span class="post-meta">
- {{ range .Params.tags }}
- #{{ . }}&nbsp;
- {{ end }}
- </span>
- </a>
- </li>
- {{ end }}
- </ul>
- </div>
- </section>
+<section id="main" class="content-container article-pad-v">
+ <div>
+ <h1 id="title" style="margin-bottom: 0.75em">{{.Title}}</h1>
+ <ul id="list" class="list-unstyled list-of-titles">
+ {{ range .Data.Pages.ByDate.Reverse }}
+ <li class="{{if .Draft }}draft{{ end }}">
+ <a href="{{ .RelPermalink}}">
+ <span class="post-title">{{ .Title }}</span>
+ <br>
+ <span class="post-meta">{{ .Date.Format "January 2, 2006" }}</span>
+ <br>
+ <span class="post-meta">
+ {{ range .Params.tags }}
+ #{{ . }}&nbsp;
+ {{ end }}
+ </span>
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+</section>
{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 0161c80..f57b942 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,8 +1,7 @@
{{ define "content" }}
-
<section id="main" class="content-container article-pad-v">
<div>
- <h1 id="title" style="margin-bottom: 0.75em">{{.Site.Title}}</h1>
+ <h1 id="title" style="margin-bottom: 0.75em">{{.Title}}</h1>
<ul id="list" class="list-unstyled list-of-titles">
{{ range .Site.Params.Menu }}
<li>
diff --git a/layouts/taxonomy/taxonomy.html b/layouts/taxonomy/taxonomy.html
index 10c6176..ff16847 100644
--- a/layouts/taxonomy/taxonomy.html
+++ b/layouts/taxonomy/taxonomy.html
@@ -6,7 +6,7 @@
{{ define "content" }}
<section id="main" class="content-container article-pad-v">
<div>
- <h1 id="title" style="margin-bottom: 0.75em">{{.Data.Term}}</h1>
+ <h1 id="title" style="margin-bottom: 0.75em">{{.Title}}</h1>
<ul id="list" class="list-unstyled list-of-titles">
{{ range .Data.Pages.ByDate.Reverse }}
<li class="{{ if .Draft }}draft{{ end }}">
diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html
index a7e67ac..8df34b9 100644
--- a/layouts/taxonomy/terms.html
+++ b/layouts/taxonomy/terms.html
@@ -1,7 +1,7 @@
{{ define "content" }}
<section id="main" class="content-container article-pad-v">
<div>
- <h1 id="title" style="margin-bottom: 0.75em">{{.Data.Plural}}</h1>
+ <h1 id="title" style="margin-bottom: 0.75em">{{.Title}}</h1>
<ul id="list" class="list-unstyled list-of-titles">
{{ range .Data.Terms.ByCount }}
{{ with .Page }}