diff --git a/config.toml b/config.toml index ff7a919..82e0c36 100644 --- a/config.toml +++ b/config.toml @@ -9,4 +9,14 @@ theme = "hugo-starter-tailwind-basic" facilitator = "facilitator" [minify] - minifyOutput = true \ No newline at end of file + minifyOutput = true + +[params] + description = "The Protocol Oral History Project chronicles the development of internet protocols and standards through interviews with key contributors." + images = ["/images/default-og.jpg"] # Will be replaced by wompum generation + twitterSite = "" + facebookAppID = "" + +[params.author] + name = "Media Economies Design Lab" + twitter = "" \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2e05db7..f9b92d8 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,17 +1,85 @@ - + - - {{ if .Params.narrator }} - {{ printf "%s: %s" .Params.narrator .Params.subject }} - {{ else if .IsHome }} - {{ .Title }} + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + + {{/* Generate consistent title */}} + {{ $title := "" }} + {{ if .Params.narrator }} + {{ $title = printf "%s: %s" .Params.narrator .Params.subject }} + {{ else if .IsHome }} + {{ $title = .Title }} + {{ else }} + {{ $title = printf "%s - %s" .Title .Site.Title }} + {{ end }} + + <!-- Basic SEO --> + <title>{{ $title }} + + {{/* Generate description from summary, description, or default site description */}} + {{ $description := "" }} + {{ with .Description }} + {{ $description = . }} + {{ else }} + {{ with .Summary }} + {{ $description = . | plainify | truncate 160 }} {{ else }} - {{ .Title }} - {{ site.Title }} + {{ $description = .Site.Params.description }} {{ end }} - - + {{ end }} + + + {{/* Generate keywords from tags */}} + {{ with .Params.tags }} + + {{ end }} + + + + + + + {{ with .Params.images | default .Site.Params.images }} + + {{ end }} + {{ with .Site.Params.facebookAppID }} + + {{ end }} + + + + + + {{ with .Params.images }} + + {{ end }} + + + {{ if and .IsPage (eq .Type "articles") }} + + + + {{ with .Params.tags }} + {{ range . }} + + {{ end }} + + {{ end }} + + {{/* Author information using standard meta tags instead of article:author */}} + {{ with .Params.narrator }} + + {{ end }} + {{ with .Params.facilitator }} + + {{ end }} + {{ end }} + + + + + {{ partial "css-variables.html" . }} {{/* Main Styles */}} diff --git a/static/images/default-og.jpg b/static/images/default-og.jpg new file mode 100644 index 0000000..057bed7 Binary files /dev/null and b/static/images/default-og.jpg differ