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

github.com/queensferryme/hugo-theme-texify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQueensferry <queensferry.me@gmail.com>2020-07-26 15:50:43 +0300
committerQueensferry <queensferry.me@gmail.com>2020-07-26 17:36:26 +0300
commit1d4086000cbe31aee1b95c5c8a97f0fbdfd1644c (patch)
tree05b012d730637d46e26e0d4e039b2e20f282f441 /layouts
parent8ea3598566bac6cb58bb3d1663d06f060c86961c (diff)
chore: add to themes.gohugo.io
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/index.html2
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html4
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/index.html b/layouts/_default/index.html
index 1efc3d3..3386563 100644
--- a/layouts/_default/index.html
+++ b/layouts/_default/index.html
@@ -10,7 +10,7 @@
<div id="wrapper">
{{ partial "header.html" . }}
<main id="main" class="index">
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "==" "posts") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "==" "post") }}
{{ range $paginator.Pages }}
<div class="post">
<h2>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 43f3f1c..ba211bf 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -11,7 +11,7 @@
{{ partial "header.html" . }}
<main id="main" class="archive">
{{ $pages := cond (eq .Section "tags") .Data.Pages .Site.RegularPages }}
- {{ $pages := where $pages "Type" "==" "posts" }}
+ {{ $pages := where $pages "Type" "==" "post" }}
{{ range $pages.GroupByDate "2006-01" }}
<div class="post-group">
<h2>{{ dateFormat "January 2006" (printf "%s-01" .Key) }}</h2>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 4bf8eef..f1a5f82 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -11,12 +11,12 @@
{{ partial "header.html" . }}
<main id="main" class="post">
<!-- sections -->
- {{ if ne .Section "posts" }}
+ {{ if ne .Section "post" }}
<div class="content">
{{ .Content }}
</div>
{{ else }}
- <!-- posts -->
+ <!-- post -->
<h1>{{ .Title }}</h1>
{{ if ne .Params.tags nil }}
<div>