Initial scaffold: Hugo site for west575.org
Blog with contact form and newsletter signup, structured like the other Reground-hosted sites but with its own visual identity.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{{ define "main" }}
|
||||
<section class="hero">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</section>
|
||||
|
||||
<section class="home-recent">
|
||||
<h2>Recent posts</h2>
|
||||
<ul class="post-list">
|
||||
{{ range first 5 (where .Site.RegularPages "Section" "posts") }}
|
||||
<li class="post-list-item">
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<span class="post-date">{{ .Date.Format "January 2, 2006" }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<p><a href="/posts/">All posts →</a></p>
|
||||
</section>
|
||||
|
||||
<section class="home-subscribe">
|
||||
<h2>Stay in the loop</h2>
|
||||
<p>New posts land here first, and occasionally by email.</p>
|
||||
{{ partial "subscribe-form.html" . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user