Permalink
Browse files

Merge pull request #160 from yogster/beautiful-jekyll-tags

Added tag styling like Beautiful Jekyll
  • Loading branch information...
halogenica committed Apr 17, 2018
2 parents d1fe069 + 9e3bc16 commit e78f3c8de9f0422afbc75a805f64d96946af4514
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">
@@ -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 }}
@@ -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 e78f3c8

Please sign in to comment.