Added tags to posts
This commit is contained in:
parent
6730553ccc
commit
bdf2912487
4 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
.github-button {
|
||||||
|
text-align: center;
|
||||||
|
background-color: transparent;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
color: get-light-color('muted-text-color');
|
||||||
|
background-color: get-light-color('bg-card');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
body.kind-page {
|
body.kind-page {
|
||||||
background-color: get-light-color('bg-secondary');
|
background-color: get-light-color('bg-secondary');
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -127,6 +127,7 @@ params:
|
||||||
maxVisibleSections: 5
|
maxVisibleSections: 5
|
||||||
|
|
||||||
# Enable and configure blog posts
|
# Enable and configure blog posts
|
||||||
|
# site.Params.features.tags.enable
|
||||||
features:
|
features:
|
||||||
readingTime:
|
readingTime:
|
||||||
enable: true
|
enable: true
|
||||||
|
@ -134,6 +135,8 @@ params:
|
||||||
title: "Project Posts"
|
title: "Project Posts"
|
||||||
enable: true
|
enable: true
|
||||||
showAuthor: true
|
showAuthor: true
|
||||||
|
tags:
|
||||||
|
enable: true
|
||||||
analytics:
|
analytics:
|
||||||
enabled: true
|
enabled: true
|
||||||
services:
|
services:
|
||||||
|
|
|
@ -62,6 +62,11 @@
|
||||||
{{ if site.Params.features.tags.enable }}
|
{{ if site.Params.features.tags.enable }}
|
||||||
{{partial "misc/tags.html" .Params.tags }}
|
{{partial "misc/tags.html" .Params.tags }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<!-- <div class="github-button">
|
||||||
|
<a href="https://github.com/Sharwin24/" target="_blank" class="btn btn-primary">
|
||||||
|
<i class="fab fa-github"></i> View on GitHub
|
||||||
|
</a>
|
||||||
|
</div> -->
|
||||||
<div class="post-content" id="post-content">
|
<div class="post-content" id="post-content">
|
||||||
{{ .Page.Content }}
|
{{ .Page.Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
<ul style="padding-left: 0;">
|
<ul style="padding-left: 0;">
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ $url:= printf "tags/%s/" . }}
|
<li class="rounded"><a class="btn btn-sm btn-info">{{ . }}</a></li>
|
||||||
<li class="rounded"><a href="{{ $url | urlize | relLangURL }}" class="btn btn-sm btn-info">{{ . }}</a></li>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue