changed tags templates, tags logic, and config links
This commit is contained in:
parent
53f2ace0f4
commit
29e8aa1632
@ -5,7 +5,9 @@ theme = "noteworthy"
|
|||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
paginate = 4 # Set the number of posts to show before overflowing to the next page.
|
paginate = 4 # Set the number of posts to show before overflowing to the next page.
|
||||||
summaryLength = 10 # Configure how long the post summary should be on the homepage.
|
summaryLength = 10 # Configure how long the post summary should be on the homepage.
|
||||||
disableKinds = ["taxonomyTerm"]
|
|
||||||
|
[taxonomies]
|
||||||
|
tag = "tags"
|
||||||
|
|
||||||
[author]
|
[author]
|
||||||
name = "kimcc"
|
name = "kimcc"
|
||||||
@ -17,34 +19,34 @@ disableKinds = ["taxonomyTerm"]
|
|||||||
|
|
||||||
# Add links to your accounts. Remove the ones you don't want to include.
|
# Add links to your accounts. Remove the ones you don't want to include.
|
||||||
# Main
|
# Main
|
||||||
email = ""
|
email = "#"
|
||||||
facebook = ""
|
facebook = "#"
|
||||||
twitter = ""
|
twitter = "#"
|
||||||
instagram = ""
|
instagram = "#"
|
||||||
tumblr = ""
|
tumblr = "#"
|
||||||
reddit = ""
|
reddit = "#"
|
||||||
pinterest = ""
|
pinterest = "#"
|
||||||
youtube = ""
|
youtube = "#"
|
||||||
weibo = ""
|
weibo = "#"
|
||||||
vk = ""
|
vk = "#"
|
||||||
linkedin = ""
|
linkedin = "#"
|
||||||
|
|
||||||
# Writing
|
# Writing
|
||||||
medium = ""
|
medium = "#"
|
||||||
blogger = ""
|
blogger = "#"
|
||||||
wordpress = ""
|
wordpress = "#"
|
||||||
|
|
||||||
# Creative & Visual
|
# Creative & Visual
|
||||||
dribbble = ""
|
dribbble = "#"
|
||||||
behance = ""
|
behance = "#"
|
||||||
deviantart = ""
|
deviantart = "#"
|
||||||
flickr = ""
|
flickr = "#"
|
||||||
|
|
||||||
# Programming
|
# Programming
|
||||||
github = ""
|
github = "#"
|
||||||
stackoverflow = ""
|
stackoverflow = "#"
|
||||||
gitlab = ""
|
gitlab = "#"
|
||||||
codepen = ""
|
codepen = "#"
|
||||||
|
|
||||||
# Add your Disqus shortname here.
|
# Add your Disqus shortname here.
|
||||||
disqusShortname = ""
|
disqusShortname = ""
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
type: section
|
|
||||||
date: 2019-05-28
|
|
||||||
layout: "tags"
|
|
||||||
---
|
|
@ -9,15 +9,12 @@
|
|||||||
{{ template "_internal/disqus.html" . }}
|
{{ template "_internal/disqus.html" . }}
|
||||||
|
|
||||||
<div class="page-footer">
|
<div class="page-footer">
|
||||||
{{ $taxonomy := "tags" }}
|
|
||||||
{{ with .Param $taxonomy }}
|
|
||||||
<hr class="footer-divider">
|
<hr class="footer-divider">
|
||||||
{{ range $index, $tag := . }}
|
{{if .Params.tags}}
|
||||||
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) }}
|
{{ range .Params.tags }}
|
||||||
<a class="tag" href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
|
<a class="tag" href="/tags/{{ . | urlize }}">#{{.}}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
@ -2,9 +2,10 @@
|
|||||||
<!-- Shows all of the site's tags -->
|
<!-- Shows all of the site's tags -->
|
||||||
<h1>Tags</h1>
|
<h1>Tags</h1>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Site.Taxonomies.tags }}
|
{{ range .Data.Terms.Alphabetical }}
|
||||||
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
|
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="page-footer"></div>
|
<div class="page-footer"></div>
|
||||||
{{end}}
|
{{end}}
|
@ -18,13 +18,10 @@
|
|||||||
<div class="post-footer">
|
<div class="post-footer">
|
||||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||||
|
|
||||||
<!-- Display tags -->
|
<!-- Display tags -->
|
||||||
{{ $taxonomy := "tags" }}
|
{{if .Params.tags}}
|
||||||
{{ with .Param $taxonomy }}
|
{{ range .Params.tags }}
|
||||||
{{ range $index, $tag := . }}
|
<a class="tag" href="/tags/{{ . | urlize }}">#{{.}}</a>
|
||||||
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) }}
|
|
||||||
<a class="tag" href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user