1
Fork 0

Add latest post link to homepage

This commit is contained in:
Jake Howard 2022-02-10 09:09:09 +00:00
parent c66ceec805
commit 4bb0d941d5
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 20 additions and 0 deletions

View file

@ -11,6 +11,16 @@
<input name="q" type="text" class="form-control" id="search-input" placeholder="Search" title="Press enter to search">
</div>
</form>
{{ with index .Site.Pages.ByPublishDate.Reverse 0 }}
<div class="latest-post">
<strong>Latest Post</strong>:
<a class="colour-invert" href="{{ .RelPermalink }}">
{{ .Title }}
<i class="fas fa-angle-right"></i>
</a>
</div>
{{ end }}
</div>
</header>
{{ end }}

View file

@ -113,6 +113,16 @@ table td {
color: transparentize($body-color, 0.2);
}
}
.latest-post {
@include border-radius($input-border-radius-sm);
display: inline-block;
margin-top: 3rem;
background-color: transparentize($black, 0.2);
padding: ($spacer * 0.25) $spacer;
color: $body-color;
}
}
footer {