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

github.com/zwbetz-gh/papercss-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-02-27 06:15:14 +0300
committerZachary Betz <zwbetz@gmail.com>2019-02-27 06:15:14 +0300
commit905ed5f7eb85d6a332194e9a76439db724159580 (patch)
tree36a3cfbe377bf7d561005d00b4e9db106accec83
parent9134c0596ed4f0b0a6f2118d58123697dc4d17a7 (diff)
Add badge to tags list. Fix post type
-rw-r--r--exampleSite/content/post/goisforlovers.md1
-rw-r--r--exampleSite/content/post/migrate-from-jekyll.md1
-rw-r--r--layouts/_default/terms.html5
3 files changed, 2 insertions, 5 deletions
diff --git a/exampleSite/content/post/goisforlovers.md b/exampleSite/content/post/goisforlovers.md
index ffb79aa..adefebe 100644
--- a/exampleSite/content/post/goisforlovers.md
+++ b/exampleSite/content/post/goisforlovers.md
@@ -1,7 +1,6 @@
+++
title = "(Hu)go Template Primer"
description = ""
-type = "posts"
tags = [
"go",
"golang",
diff --git a/exampleSite/content/post/migrate-from-jekyll.md b/exampleSite/content/post/migrate-from-jekyll.md
index bb302d5..7c1b1f0 100644
--- a/exampleSite/content/post/migrate-from-jekyll.md
+++ b/exampleSite/content/post/migrate-from-jekyll.md
@@ -3,7 +3,6 @@ author: "Hugo Authors"
date: 2014-03-10
linktitle: Migrating from Jekyll
title: Migrate to Hugo from Jekyll
-type: posts
weight: 10
series:
- Hugo 101
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index e92be4a..350f62e 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -7,9 +7,8 @@
{{ $count := .Count }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
<h2 class="post-list">
- <a href="{{ .Permalink }}">
- {{ printf "(%d) %s" $count $name }}
- </a>
+ <span class="badge">{{ $count }}</span>
+ <a href="{{ .Permalink }}">{{ $name }}</a>
</h2>
{{ end }}
{{ end }}