Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshiharu Yamashita <yoshiharu.yamashita@outlook.com>2016-01-30 22:15:46 +0300
committerYoshiharu Yamashita <yoshiharu.yamashita@outlook.com>2016-01-30 22:15:46 +0300
commit900a76c2393155596bc4a96e163575b7dbec3754 (patch)
treea59a401c97736d8e52179dc5f75119ca607d6e77
parentc808fb9304904ead78f8e0035da936c7bb8a117b (diff)
Simplify rendering of tags/topics, ie no colours
-rw-r--r--layouts/partials/post_meta.html27
-rw-r--r--static/css/blackburn.css16
2 files changed, 20 insertions, 23 deletions
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html
index dac9505..698ff94 100644
--- a/layouts/partials/post_meta.html
+++ b/layouts/partials/post_meta.html
@@ -1,21 +1,34 @@
<div class="post-meta">
- <time><i class="fa fa-calendar fa-fw"></i>{{ .Date.Format "02 Jan 2006, 15:04" }}</time>
+
+ <div>
+ <i class="fa fa-calendar fa-fw"></i>
+ <time>{{ .Date.Format "02 Jan 2006, 15:04" }}</time>
+ </div>
{{ $baseUrl := .Site.BaseURL }}
{{ if isset .Params "topics" }}
- <br>
+ {{ $count := len .Params.topics }}
+ {{ if gt $count 0 }}
+ <div>
<i class="fa fa-folder fa-fw"></i>
- {{ range .Params.topics }}
- <a class="post-taxonomy-topic" href="{{ $baseUrl }}/topics/{{ . | urlize }}">{{ . }}</a>
+ {{ range $k, $v := .Params.topics }}
+ <a class="post-taxonomy-topic" href="{{ $baseUrl }}/topics/{{ . | urlize }}">{{ . }}</a>{{ if lt $k (sub $count 1) }}&nbsp;&#47;{{ end }}
{{ end }}
+ </div>
+ {{ end }}
{{ end }}
{{ if isset .Params "tags" }}
- <br>
+ {{ $count := len .Params.tags }}
+ {{ if gt $count 0 }}
+ <div>
<i class="fa fa-tags fa-fw"></i>
- {{ range .Params.tags }}
- <a class="post-taxonomy-tag" href="{{ $baseUrl }}/tags/{{ . | urlize }}">{{ . }}</a>
+ {{ range $k, $v := .Params.tags }}
+ <a class="post-taxonomy-tag" href="{{ $baseUrl }}/tags/{{ . | urlize }}">{{ . }}</a>{{ if lt $k (sub $count 1) }}&nbsp;&#47;{{ end }}
{{ end }}
+ </div>
{{ end }}
+ {{ end }}
+
</div> \ No newline at end of file
diff --git a/static/css/blackburn.css b/static/css/blackburn.css
index 04b4b45..a486ab9 100644
--- a/static/css/blackburn.css
+++ b/static/css/blackburn.css
@@ -24,22 +24,6 @@ a:visited {
font-size: 90%;
}
-.post-meta a {
- margin: 0 0.1em;
- padding: 0.3em 1em;
- color: #fff;
- font-size: 80%;
- text-decoration: none;
-}
-
-a.post-taxonomy-topic {
- background: #f37b1d;
-}
-
-a.post-taxonomy-tag {
- background: #5aba59;
-}
-
article > footer {
text-align: right;
}