Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hugo/layouts/blog/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<section class="container--max-width-break-2">
<div class="markdown">
<p class="markdown__date">{{ $latest_post.Date.Format "Monday 2 Jan 2006" }}</p>
<h1><a href="{{ $latest_post.URL }}">{{ $latest_post.Title }}</a></h1>
<h1><a href="{{ $latest_post.Permalink }}">{{ $latest_post.Title }}</a></h1>
{{ $latest_post.Content }}

<hr>
Expand All @@ -18,7 +18,7 @@ <h2><a name="previous"></a> All blog posts:</h2>
<!-- TODO: paginate from 1 not 0 -->
{{ range .Pages }}
<li class="blog-index">
<a href="{{ .URL }}">{{ .Title }}</a>
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ .Date.Format "Monday 2 Jan 2006" }}
</li>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion hugo/layouts/docs/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1 class="title">Documentation</h1>
<ul class="doc-list">
{{ range .Pages }}
<li class="doc-list__item--file">
<a href="{{ .URL }}">{{ .Title }}</a>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions hugo/layouts/weeknotes/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{{ $firstPage := index .Pages 0 }}
<p class="markdown__date">{{ $firstPage.Date.Format "2 January 2006" }}</p>
<h1><a href="{{ $firstPage.URL }}">{{ $firstPage.Title }}</a></h1>
<h1><a href="{{ $firstPage.Permalink }}">{{ $firstPage.Title }}</a></h1>
{{ $firstPage.Content }}

<h2>Sign up to get emailed our weeknotes each week:</h2>
Expand All @@ -21,7 +21,7 @@ <h2><a name="previous"></a> Previous weeknotes:</h2>
<!-- TODO: paginate from 1 not 0 -->
{{ range .Pages }}
<li class="markdown__index-item">
<a href="{{ .URL }}">{{ .Title }}</a>
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ .Date.Format "Monday 2 Jan 2006" }}
</li>
{{ end }}
Expand Down