Slight updated design
This commit is contained in:
parent
607aa88f00
commit
e24338ae0e
3 changed files with 138 additions and 63 deletions
|
@ -1,30 +1,32 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p id="date">{{.Date.Format "2006-01-02"}}</p>
|
||||
<p>{{ .WordCount }} words, ~ {{ .ReadingTime }} min reading time</p>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p id="date">{{.Date.Format "2006-01-02"}}</p>
|
||||
<p>{{ .WordCount }} words, ~ {{ .ReadingTime }} min reading time</p>
|
||||
|
||||
<p>
|
||||
{{ with .Params.categories }}
|
||||
<span id="categories">
|
||||
{{ range . }}
|
||||
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ with .Params.tags }}
|
||||
<span id="tags">
|
||||
{{ range . }}
|
||||
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ .Content }}
|
||||
|
||||
{{ if isset .Site.Params.comment "mail" }}
|
||||
<div class="comment">
|
||||
<p>I would like to hear what you think about this post. Feel free to write me a mail!</p>
|
||||
<a class="btn" href="mailto:{{ .Site.Params.comment.mail }}?subject=Reply to: "{{ .Page.Title }}"">Reply by mail</a>
|
||||
</div>
|
||||
<p>
|
||||
<div class="tagories">
|
||||
{{ with .Params.categories }}
|
||||
<span id="categories">
|
||||
{{ range . }}
|
||||
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ with .Params.tags }}
|
||||
<span id="tags">
|
||||
{{ range . }}
|
||||
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</p>
|
||||
{{ .Content }}
|
||||
|
||||
{{ if isset .Site.Params.comment "mail" }}
|
||||
<div class="comment">
|
||||
<p>I would like to hear what you think about this post. Feel free to write me a mail!</p>
|
||||
<a class="btn" href="mailto:{{ .Site.Params.comment.mail }}?subject=Reply to: "{{ .Page.Title }}"">Reply by mail</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,21 +1,23 @@
|
|||
<p id="date">{{.Date.Format "2006-01-02"}}</p>
|
||||
<p>
|
||||
<div class="tagories">
|
||||
{{ with .Params.categories }}
|
||||
<span id="categories">
|
||||
{{ range . }}
|
||||
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
<span id="categories">
|
||||
{{ range . }}
|
||||
<a href="{{ "categories" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ with .Params.tags }}
|
||||
<span id="tags">
|
||||
{{ range . }}
|
||||
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
<span id="tags">
|
||||
{{ range . }}
|
||||
<a href="{{ "tags" | absURL}}/{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</p>
|
||||
{{ .Summary }}
|
||||
{{- if .Truncated -}}
|
||||
<p><a href="{{.Permalink}}">Read more</a></p>
|
||||
<p><a href="{{.Permalink}}">Read more</a></p>
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue