Better blog listing
This commit is contained in:
parent
dca17ddd49
commit
4923287bde
4 changed files with 14 additions and 7 deletions
|
@ -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>
|
||||
|
|
|
@ -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") }}
|
||||
|
|
10
makefile
10
makefile
|
@ -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
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
## Dependencies
|
||||
|
||||
+ Hugo
|
||||
+ `netlify-cli` (for deployments)
|
||||
|
||||
## Build
|
||||
|
||||
|
|
Loading…
Reference in a new issue