Pull in Viget posts
This commit is contained in:
17
themes/v2/layouts/elsewhere/list.html
Normal file
17
themes/v2/layouts/elsewhere/list.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<hr>
|
||||
|
||||
<h3>Elsewhere</h3>
|
||||
|
||||
<ul>
|
||||
{{ range (where .Site.RegularPages "Type" "in" "elsewhere") }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ .Date | time.Format "(2006-01-02)" }}
|
||||
{{ if .Params.needs_review }}<b>NEEDS REVIEW</b>{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
14
themes/v2/layouts/elsewhere/single.html
Normal file
14
themes/v2/layouts/elsewhere/single.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ define "main" }}
|
||||
{{ $url := urls.Parse .Params.canonical_url }}
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
<h3>
|
||||
Posted {{ .Date | time.Format "2006-01-02" }}
|
||||
on <a href="{{ .Params.canonical_url }}">{{ $url.Hostname }}</a>
|
||||
</h3>
|
||||
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user