first commit
This commit is contained in:
29
templates/post.html
Normal file
29
templates/post.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{{define "title"}}{{.Title}} — Ridgway Systems{{end}}
|
||||
{{define "meta-desc"}}{{.Description}}{{end}}
|
||||
{{define "og-title"}}{{.Title}} — Ridgway Systems{{end}}
|
||||
{{define "og-desc"}}{{.Description}}{{end}}
|
||||
{{define "og-type"}}article{{end}}
|
||||
{{define "og-url"}}https://ridgwaysystems.org/blog/{{.Slug}}{{end}}
|
||||
{{define "tw-title"}}{{.Title}} — Ridgway Systems{{end}}
|
||||
{{define "tw-desc"}}{{.Description}}{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<article class="post">
|
||||
<header class="post-header">
|
||||
<h1>{{.Title}}</h1>
|
||||
<div class="post-meta">
|
||||
<time datetime="{{.ParsedDate.Format "2006-01-02"}}">{{formatDate .ParsedDate}}</time>
|
||||
{{if .Tags}}
|
||||
—
|
||||
{{range .Tags}}<a href="/blog?tag={{.}}" class="tag">#{{.}}</a> {{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</header>
|
||||
<div class="post-content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
<footer class="post-footer">
|
||||
<a href="/blog">← Back to build log</a>
|
||||
</footer>
|
||||
</article>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user