Begin slow migration to Hugo...
This commit is contained in:
18
hugo_blag/themes/indigo/layouts/_default/li.html
Normal file
18
hugo_blag/themes/indigo/layouts/_default/li.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<article>
|
||||
<header>
|
||||
{{ if .Title }}
|
||||
<h2 class="list-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
{{ end }}
|
||||
<p class="list-post-date">
|
||||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
||||
{{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
|
||||
</time>
|
||||
</p>
|
||||
</header>
|
||||
<div>
|
||||
{{ .Summary | plainify | safeHTML }}
|
||||
</div>
|
||||
{{ if .Truncated }}
|
||||
<p><a class="read-more" href="{{ .Permalink }}">Read more →</a></p>
|
||||
{{ end }}
|
||||
</article>
|
||||
10
hugo_blag/themes/indigo/layouts/_default/list.html
Normal file
10
hugo_blag/themes/indigo/layouts/_default/list.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ partial "header.html" . }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
<div id="content">
|
||||
{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections)).Pages }}
|
||||
{{ if ne $index 0 }}
|
||||
{{ end }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
43
hugo_blag/themes/indigo/layouts/_default/single.html
Normal file
43
hugo_blag/themes/indigo/layouts/_default/single.html
Normal file
@@ -0,0 +1,43 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ $baseurl := .Site.BaseURL | sanitizeurl }}
|
||||
{{ $author := .Site.Params.Author }}
|
||||
{{ if .Params.Author }}
|
||||
{{ $author = .Params.Author }}
|
||||
{{ end }}
|
||||
<div id="content">
|
||||
<article class="h-entry">
|
||||
<header>
|
||||
<h1 class="post-title p-name">{{ .Title }}</h1>
|
||||
{{ if not .Params.Menu }}
|
||||
<p class="post-date">Posted on
|
||||
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
||||
{{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
|
||||
</time> {{ if $author }} by <a href="{{ .Site.BaseURL }}" class="p-author h-card" rel="author">{{ $author }}</a>{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ if .Params.categories }}
|
||||
<p class="post-tag">Category:
|
||||
{{ range .Params.categories }}
|
||||
<a href="{{ $baseurl }}/categories/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
<hr class="post-underline">
|
||||
{{ end }}
|
||||
</header>
|
||||
<section class="content e-content">
|
||||
{{ .Content }}
|
||||
</section>
|
||||
<footer>
|
||||
<a class="permalink u-url" href="{{ .Permalink }}">{{ .Site.Params.PermalinkText }}</a>
|
||||
{{ if .Params.tags }}
|
||||
<hr class="post-underline">
|
||||
<p class="post-tag">Tags for this post:
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
</footer>
|
||||
</article>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
12
hugo_blag/themes/indigo/layouts/_default/taxonomy.html
Normal file
12
hugo_blag/themes/indigo/layouts/_default/taxonomy.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ partial "header.html" . }}
|
||||
<h2>
|
||||
<span class="list-heading-type">{{ .Section }}:</span>
|
||||
<span class="list-heading-tag">{{ .Title }}</span>
|
||||
</h2>
|
||||
|
||||
<div id="content">
|
||||
{{ range.Pages }}
|
||||
{{ .Render "li" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
Reference in New Issue
Block a user