17 changed files with 183 additions and 223 deletions
@ -1,7 +1,7 @@ |
|||
{{ define "main" }} |
|||
<div class="center-box"> |
|||
<main> |
|||
<h1>404</h1> |
|||
<h2 class="center-text">This page doesn't exist. Let's go <a href="/">home</a></h2> |
|||
</div> |
|||
<h2>This page doesn't exist. Let's go <a href="/">home</a></h2> |
|||
</main> |
|||
{{ end }} |
|||
|
|||
|
@ -1,27 +0,0 @@ |
|||
{{ define "main" }} |
|||
|
|||
<main> |
|||
{{ partial "article-meta.html" . }} |
|||
|
|||
{{ if .Params.toc }} |
|||
{{ .TableOfContents }} |
|||
{{ end }} |
|||
|
|||
{{ .Content }} |
|||
</main> |
|||
|
|||
{{ if gt (len .Data.Pages) 0 }} |
|||
|
|||
<section> |
|||
<h2>Devlogs:</h2> |
|||
</section> |
|||
|
|||
<section class="article-list"> |
|||
{{ range .Data.Pages }} |
|||
{{ partial "article.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
|
|||
{{ end }} |
|||
|
|||
{{ end }} |
@ -1,7 +0,0 @@ |
|||
{{ with .Params.releaseDate }} |
|||
<h2 class="small-text">Released: {{ dateFormat "Mon | Jan 2, 2006" . }}</h2> |
|||
{{ end }} |
|||
|
|||
<h2 class="small-text">Platforms: |
|||
<span class="margin small-text">{{ delimit .Params.platforms " · " }}</span> |
|||
</h2> |
@ -1,25 +1,19 @@ |
|||
<section> |
|||
<h1 class="large-text">{{ .Title | markdownify }}</h1> |
|||
|
|||
{{ with .Params.authors }} |
|||
{{ $author := (index . 0) }} |
|||
<h2> |
|||
Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a> |
|||
</h2> |
|||
<h4>Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a></h4> |
|||
{{ end }} |
|||
|
|||
{{ with .Date }} |
|||
<h2 class="small-text">Posted: {{ .Format "Mon | Jan 2, 2006" }}</h2> |
|||
<h4>Posted: {{ .Format "Mon | Jan 2, 2006" }}</h4> |
|||
{{ end }} |
|||
|
|||
{{ .Render "meta-extra" }} |
|||
|
|||
{{ range (.GetTerms "tags") }} |
|||
<span> |
|||
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|||
</span> |
|||
{{ end }} |
|||
|
|||
{{ $image := (.Resources.GetMatch "featured") }} |
|||
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt "class" "shadow featured margin") }} |
|||
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt "class" "shadow featured") }} |
|||
</section> |
|||
|
@ -1,5 +1,5 @@ |
|||
<footer> |
|||
<hr> |
|||
<p class="center-text"><a class="small-text" href="/authors">Authors</a></p> |
|||
<p class="center-text small-text">{{ $.Site.Copyright | safeHTML }}</p> |
|||
<p><a href="/authors">Authors</a></p> |
|||
<p>{{ $.Site.Copyright | safeHTML }}</p> |
|||
</footer> |
|||
|
@ -1,11 +1,11 @@ |
|||
<header> |
|||
<nav class="spread"> |
|||
<nav> |
|||
<a href="/"><img src="{{ .Site.Params.logo }}" alt="The {{ .Site.Title }} Logo"></a> |
|||
<ul class="spread"> |
|||
{{ range .Site.Params.HeaderLinks }} |
|||
<li><a href="{{ .url }}" title="{{ .title }}">{{ .title }}</a></li> |
|||
{{ end }} |
|||
<li>{{ printf `<a href="/index.xml" title="%s">RSS</a>` $.Site.Title | safeHTML }}</li> |
|||
</ul> |
|||
<div> |
|||
{{ range .Site.Params.HeaderLinks -}} |
|||
<a href="{{ .url }}" title="{{ .title }}">{{ .title }}</a> |
|||
{{ end -}} |
|||
{{ printf `<a href="/index.xml" title="%s">RSS</a>` $.Site.Title | safeHTML }} |
|||
</div> |
|||
</nav> |
|||
</header> |
|||
|
@ -0,0 +1,32 @@ |
|||
<img class="{{ .class }}" |
|||
{{- with .image -}} |
|||
|
|||
{{ $smallest := (.Resize "305x q60") }} |
|||
|
|||
srcset=" |
|||
{{- with $smallest -}} |
|||
{{ printf "%s %dw," .RelPermalink .Width }} |
|||
{{- end -}} |
|||
|
|||
{{- with (.Resize "480x q60") -}} |
|||
{{ printf "%s %dw," .RelPermalink .Width }} |
|||
{{- end -}} |
|||
|
|||
{{- with (.Resize "600x q70") -}} |
|||
{{ printf "%s %dw," .RelPermalink .Width }} |
|||
{{- end -}} |
|||
" |
|||
|
|||
sizes=" |
|||
(max-width: 480px) 305px; |
|||
(max-width: 600px) 480px; |
|||
600px" |
|||
|
|||
src=" |
|||
{{- with $smallest -}} |
|||
{{ .RelPermalink }} |
|||
{{- end -}}" |
|||
|
|||
alt="{{ .Params.alt }}" |
|||
{{- end -}} |
|||
> |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1,20 @@ |
|||
{{ with . }} |
|||
<section> |
|||
<h2>Latest Posts:</h2> |
|||
<section class="article-list"> |
|||
{{ range .Limit 5 }} |
|||
{{ partial "article.html" . }} |
|||
{{ end }} |
|||
</section> |
|||
|
|||
<h2>All Posts:</h2> |
|||
{{ range .GroupByDate "2006" }} |
|||
<p>{{ .Key}}</p> |
|||
<ul> |
|||
{{ range .Pages -}} |
|||
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li> |
|||
{{ end -}} |
|||
</ul> |
|||
{{ end }} |
|||
</section> |
|||
{{ end }} |
Loading…
Reference in new issue