add cast, tags
This commit is contained in:
@ -4,7 +4,20 @@
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
<h1 class="display-3 text-center">{{ .Title }}</h1>
|
||||
<p class="text-center"><time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }}</time></p>
|
||||
<p class="text-center"><time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }}</time>
|
||||
{{ if .Params.tags }}
|
||||
|
|
||||
{{range .Params.tags}}
|
||||
<a class="btn btn-primary" href="/tags/{{ . | urlize }}" role="button">{{ . }}</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if .Params.categories }}
|
||||
|
|
||||
{{range .Params.categories}}
|
||||
<a class="btn btn-secondary" href="/categories/{{ . | urlize }}" role="button">{{ . }}</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</p>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user