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
|
||||
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.
|
||||
disableKinds = ["taxonomyTerm"]
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
|
||||
[author]
|
||||
name = "kimcc"
|
||||
@ -17,34 +19,34 @@ disableKinds = ["taxonomyTerm"]
|
||||
|
||||
# Add links to your accounts. Remove the ones you don't want to include.
|
||||
# Main
|
||||
email = ""
|
||||
facebook = ""
|
||||
twitter = ""
|
||||
instagram = ""
|
||||
tumblr = ""
|
||||
reddit = ""
|
||||
pinterest = ""
|
||||
youtube = ""
|
||||
weibo = ""
|
||||
vk = ""
|
||||
linkedin = ""
|
||||
email = "#"
|
||||
facebook = "#"
|
||||
twitter = "#"
|
||||
instagram = "#"
|
||||
tumblr = "#"
|
||||
reddit = "#"
|
||||
pinterest = "#"
|
||||
youtube = "#"
|
||||
weibo = "#"
|
||||
vk = "#"
|
||||
linkedin = "#"
|
||||
|
||||
# Writing
|
||||
medium = ""
|
||||
blogger = ""
|
||||
wordpress = ""
|
||||
medium = "#"
|
||||
blogger = "#"
|
||||
wordpress = "#"
|
||||
|
||||
# Creative & Visual
|
||||
dribbble = ""
|
||||
behance = ""
|
||||
deviantart = ""
|
||||
flickr = ""
|
||||
dribbble = "#"
|
||||
behance = "#"
|
||||
deviantart = "#"
|
||||
flickr = "#"
|
||||
|
||||
# Programming
|
||||
github = ""
|
||||
stackoverflow = ""
|
||||
gitlab = ""
|
||||
codepen = ""
|
||||
github = "#"
|
||||
stackoverflow = "#"
|
||||
gitlab = "#"
|
||||
codepen = "#"
|
||||
|
||||
# Add your Disqus shortname here.
|
||||
disqusShortname = ""
|
||||
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
type: section
|
||||
date: 2019-05-28
|
||||
layout: "tags"
|
||||
---
|
@ -9,15 +9,12 @@
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
||||
<div class="page-footer">
|
||||
{{ $taxonomy := "tags" }}
|
||||
{{ with .Param $taxonomy }}
|
||||
<hr class="footer-divider">
|
||||
{{ range $index, $tag := . }}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) }}
|
||||
<a class="tag" href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
|
||||
{{if .Params.tags}}
|
||||
{{ range .Params.tags }}
|
||||
<a class="tag" href="/tags/{{ . | urlize }}">#{{.}}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{end}}
|
@ -2,9 +2,10 @@
|
||||
<!-- Shows all of the site's tags -->
|
||||
<h1>Tags</h1>
|
||||
<ul>
|
||||
{{ range .Site.Taxonomies.tags }}
|
||||
{{ range .Data.Terms.Alphabetical }}
|
||||
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> {{ .Count }}</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
<div class="page-footer"></div>
|
||||
{{end}}
|
||||
{{end}}
|
@ -18,13 +18,10 @@
|
||||
<div class="post-footer">
|
||||
<time>{{ .Date.Format "January 2, 2006" }}</time>
|
||||
|
||||
<!-- Display tags -->
|
||||
{{ $taxonomy := "tags" }}
|
||||
{{ with .Param $taxonomy }}
|
||||
{{ range $index, $tag := . }}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) }}
|
||||
<a class="tag" href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
|
||||
{{ end }}
|
||||
<!-- Display tags -->
|
||||
{{if .Params.tags}}
|
||||
{{ range .Params.tags }}
|
||||
<a class="tag" href="/tags/{{ . | urlize }}">#{{.}}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user