From 43d1c1e6de48af884943d52900c0d76589ef713f Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Wed, 13 Sep 2023 17:42:45 -0700 Subject: [PATCH] Spit and polish --- Makefile | 4 ++++ README.md | 1 + themes/noah/layouts/partials/head.html | 5 +++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 21ca1c2..58c2ec3 100644 --- a/Makefile +++ b/Makefile @@ -11,3 +11,7 @@ watch: @PHONY: clean clean: rm -rf public + +@PHONY: deploy +deploy: build + rsync -av --delete-after public/ kirsle@kirsle.net:sites/noah.is/ diff --git a/README.md b/README.md index 5932cb3..1c2b324 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Just a simple Hugo website. * `make build` to build it * `make watch` to run it locally +* `make deploy` to deploy it over SSH to my server ## License diff --git a/themes/noah/layouts/partials/head.html b/themes/noah/layouts/partials/head.html index 13eaf4d..65429ba 100644 --- a/themes/noah/layouts/partials/head.html +++ b/themes/noah/layouts/partials/head.html @@ -1,6 +1,7 @@ - {{ $title := print .Title " | " .Site.Title }} - {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + {{- $title := print .Title " | " .Site.Title -}} + {{- if .IsHome -}}{{- $title = .Site.Title -}}{{- end -}} +