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

View file

@ -1,8 +1,8 @@
.PHONY: all default build dev publish publish-prod .PHONY: all default build dev publish publish-prod
build: ; hugo build: ; @hugo
public: build public: build
dev: ; hugo serve --buildDrafts dev: ; @hugo serve --buildDrafts
all: build all: build
clean: ; rm -r public clean: ; @rm -r public
publish: public ; netlify deploy -d 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 publish-prod: public ; @netlify deploy -d public --prod

View file

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