Passt so
This commit is contained in:
20
internal/web/templates/article.html
Normal file
20
internal/web/templates/article.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ define "article" }}
|
||||
{{ template "base.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "title" }}{{ .Title }} – B1tsblog{{ end }}
|
||||
|
||||
{{ define "body" }}
|
||||
<article class="article">
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time>
|
||||
</header>
|
||||
|
||||
<div class="article-content">
|
||||
{{ .Body }}
|
||||
</div>
|
||||
|
||||
<p><a href="/">← Alle Artikel</a></p>
|
||||
</article>
|
||||
{{ end }}
|
Reference in New Issue
Block a user