diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4eefb5b9..62dcefd8 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,6 @@ -{{"" | safeHTML}} - +{{ printf "" ("humans.txt" | absURL) | safeHTML }} + {{ partial "head" . }} @@ -11,5 +11,5 @@ -{{"" | safeHTML}} -{{"" | safeHTML}} +{{ printf "" hugo.Environment | safeHTML }} +{{ printf "" hugo.Version | safeHTML }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5b85fa3f..bce17239 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,6 @@ {{ hugo.Generator }} -{{ .Title }}{{ if not .IsHome }} – {{ .Site.Title }}{{ else }} 👨‍💻{{ end }} +{{ .Title }}{{ if not .IsHome }} – {{ .Site.Title }}{{ else }} 👨‍💻{{ end }} {{ with .Site.Author.name }}{{ end }} diff --git a/package.json b/package.json index 931b5e4a..47b9b02a 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "url": "git+https://github.com/jakejarvis/jarv.is.git" }, "scripts": { - "build": "yarn clean && yarn hugo:build && yarn optimize", - "build:preview": "yarn clean && yarn hugo:build-dev", + "build": "yarn clean && yarn hugo:version && yarn hugo:build && yarn optimize", + "build:preview": "yarn clean && yarn hugo:version && yarn hugo:build-dev", "hugo:build": "hugo --gc --cleanDestinationDir --verbose", "hugo:build-dev": "cross-env HUGO_ENV=development hugo -e development --buildDrafts --buildFuture --baseURL ${DEPLOY_PRIME_URL:-/} --gc --cleanDestinationDir --verbose", "hugo:version": "hugo version; hugo env",