added tags
This commit is contained in:
parent
f6e41dfb1f
commit
4040fc3aa8
38 changed files with 976 additions and 457 deletions
|
@ -9,7 +9,7 @@
|
|||
<article>
|
||||
<p class="meta">
|
||||
<span title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">{{ .Date.Format "2. January 2006" }}</span>
|
||||
by
|
||||
by
|
||||
<span>{{ .Params.author }}</span>
|
||||
</p>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
|
@ -18,27 +18,25 @@
|
|||
{{ end }}
|
||||
{{ .Content }}
|
||||
<aside class="meta">
|
||||
<div>
|
||||
{{ with .Params.topics }}
|
||||
{{ with .Params.topics }}
|
||||
<ul class="topics">
|
||||
{{ range . }}
|
||||
<li><a href="{{ "topics" | absURL}}{{ . | urlize }}">{{ . }}</a> </li>
|
||||
<li><a href="{{ "topics" | relURL}}/{{ . | urlize }}">{{ . }}</a> </li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ with .Params.tags }}
|
||||
<ul class="tags">
|
||||
{{ range . }}
|
||||
<li> <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> </li>
|
||||
<li> <a href="{{ "tags" | relURL }}/{{ . | urlize }}">{{ . }}</a> </li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
</aside>
|
||||
</article>
|
||||
</section>
|
||||
<section class="section-articles">
|
||||
{{ with .PrevInSection }}
|
||||
{{ with .PrevInSection }}
|
||||
<a href="{{ .Permalink }}">
|
||||
<article>
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
@ -51,8 +49,8 @@
|
|||
{{ end }}
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ with .NextInSection }}
|
||||
{{ end }}
|
||||
{{ with .NextInSection }}
|
||||
<a href="{{ .Permalink }}">
|
||||
<article>
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
@ -64,7 +62,8 @@
|
|||
<img src="{{ . | relURL }}">
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue