Better blog listing

This commit is contained in:
Daniel Flanagan 2020-07-14 18:02:25 -05:00
parent dca17ddd49
commit 4923287bde
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
4 changed files with 14 additions and 7 deletions

View File

@ -1 +1,7 @@
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li style="margin-bottom: 0.5em">
{{ dateFormat "Jan 2 2006" .Lastmod }}
<br />
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</li>

View File

@ -15,7 +15,7 @@
on <a target="_blank" href="https://github.com/lytedev">GitHub</a>.
</p>
<h3>Latest Posts</h3>
<h2>Latest Posts</h2>
<ul>
{{ range (where .Site.RegularPages "Section" "blog") }}

View File

@ -1,8 +1,8 @@
.PHONY: all default build dev publish publish-prod
build: ; hugo
build: ; @hugo
public: build
dev: ; hugo serve --buildDrafts
dev: ; @hugo serve --buildDrafts
all: build
clean: ; rm -r public
publish: public ; netlify deploy -d public
publish-prod: public ; netlify deploy -d public --prod
clean: ; @rm -r public
publish: public ; @netlify deploy -d public && echo "You can run \`make publish-prod\` when you're ready."
publish-prod: public ; @netlify deploy -d public --prod

View File

@ -3,6 +3,7 @@
## Dependencies
+ Hugo
+ `netlify-cli` (for deployments)
## Build