diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 8a36e1d..0d129a0 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -75,6 +75,9 @@ sudo chown $USER:$USER /srv/www cd /srv/www git clone dustin.coffee cd dustin.coffee + +# Initialize theme submodule (required for hello-friend-ng theme) +git submodule update --init --recursive ``` ## Step 3: Build Static Site diff --git a/hugo.toml b/hugo.toml index 6a2416a..4b7411e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -5,7 +5,9 @@ theme = 'hello-friend-ng' [params] # description = "Personal website of Dustin" - author = "dustin" + [params.Author] + name = "dustin" + email = "" dateform = "Jan 2, 2006" dateformShort = "Jan 2" @@ -14,6 +16,7 @@ theme = 'hello-friend-ng' # Subtitle for home homeSubtitle = "how did YOU get here?" + Subtitle = "how did YOU get here?" # Set disableReadOtherPosts to true in order to hide the links to other posts. disableReadOtherPosts = false @@ -28,6 +31,7 @@ theme = 'hello-friend-ng' description = "...it's my blog." keywords = "homepage, blog" images = [""] + themeColor = "#2d3748" [taxonomies] tag = "tags" diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..c9f1b3e --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,79 @@ + + +{{ if .Params.noindex }} + +{{ end }} + + + + + + + + +{{ block "title" . }} + + {{ if .IsHome }} + {{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }} {{ end }} + {{ else }} + {{ .Title }} :: {{ $.Site.Title }} {{ with $.Site.Params.Subtitle }} — {{ . }}{{ end }} + {{ end }} + +{{ end }} + + +{{ $opts := dict "transpiler" "libsass" "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true }} +{{ with resources.Get "scss/main.scss" | toCSS $opts | minify | fingerprint }} + +{{ end }} + + +{{ range $val := $.Site.Params.customCSS }} + {{ if gt (len $val) 0 }} + + {{ end }} +{{ end }} + + +{{- partial "favicons.html" . }} + +{{ template "_internal/schema.html" . }} +{{ template "_internal/twitter_cards.html" . }} + +{{ if isset .Site.Taxonomies "series" }} + {{ template "_internal/opengraph.html" . }} +{{ end }} + +{{ range .Params.categories }} + +{{ end }} + +{{ if isset .Params "date" }} + +{{ end }} + + +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} +{{ end -}} + + +{{ if .OutputFormats.Get "json" }} + +{{ end }} + + +{{- if templates.Exists "partials/extra-head.html" -}} + {{ partial "extra-head.html" . }} +{{- end }} + + +{{- if .Site.Config.Services.GoogleAnalytics.ID }} + {{ template "_internal/google_analytics.html" . }} +{{- end }} + + +{{- if $.Site.Params.plausibleDataDomain }} + +{{- end}} \ No newline at end of file