Adds h-review

This commit is contained in:
JP Hastings-Spital 2024-05-12 16:01:51 +01:00
parent 2b92306183
commit c8efeb9dd8
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ tasks:
cmds:
- |
[ -d "$HOME/.puma-dev/" ] && (echo {{ .port }} > $HOME/.puma-dev/{{ .domain }}) || echo "Puma dev not installed, https://{{ .domain }}{{ .puma_dev_tld }} will not work"
- hugo server -p {{ .port }} --minify --printUnusedTemplates -D --baseURL "https://{{ .domain }}{{ .puma_dev_tld }}" --appendPort=false
- hugo server --port {{ .port }} --minify --printUnusedTemplates --buildDrafts --baseURL "https://{{ .domain }}{{ .puma_dev_tld }}" --appendPort=false
build:
desc: Builds the production-ready site in ./public/

View file

@ -1,5 +1,5 @@
{{ define "main" }}
<main class="post h-entry"{{ if eq .Type "site-infra" }} data-pagefind-ignore="all"{{ end }}>
<main class="post h-entry {{ if eq .Type "review" }}h-review{{ end }}"{{ if eq .Type "site-infra" }} data-pagefind-ignore="all"{{ end }}>
<div class="post-info">
{{ $dateType := "published" }}