Permalink
Browse files

Added tag styling like beautifuljekyll

  • Loading branch information...
yogster committed Apr 13, 2018
1 parent d1fe069 commit 9e3bc164989e51448d4788d8611a5646a9603365
Showing with 25 additions and 8 deletions.
  1. +3 −3 layouts/_default/list.html
  2. +9 −0 layouts/_default/single.html
  3. +5 −5 layouts/index.html
  4. +8 −0 static/css/main.css
@@ -49,11 +49,11 @@ <h3 class="post-subtitle">
</div>
{{ if .Params.tags }}
<span class="post-meta">
<div class="blog-tags">
{{ range .Params.tags }}
#<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
{{ end }}
</span>
</div>
{{ end }}
</article>
@@ -4,6 +4,15 @@
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<article role="main" class="blog-post">
{{ .Content }}
{{ if .Params.tags }}
<div class="blog-tags">
{{ range .Params.tags }}
<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
{{ end }}
</div>
{{ end }}
{{ if .Site.Params.socialShare }}
<hr/>
<section id="social-share">
View
@@ -35,11 +35,11 @@ <h3 class="post-subtitle">
</div>
{{ if .Params.tags }}
<span class="post-meta">
{{ range .Params.tags }}
#<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
{{ end }}
</span>
<div class="blog-tags">
{{ range .Params.tags }}
<a href="{{ $.Site.LanguagePrefix | absURL }}/tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
{{ end }}
</div>
{{ end }}
</article>
{{ end }}
View
@@ -427,12 +427,20 @@ footer .theme-by {
margin-bottom: 30px;
}
.blog-tags:before {
content: "Tags: ";
}
.blog-tags a {
color: #008AFF;
text-decoration: none;
padding: 0px 5px;
}
.blog-tags a:before {
content: "#";
}
.blog-tags a:hover {
border-radius: 2px;
color: #008AFF;

0 comments on commit 9e3bc16

Please sign in to comment.