diff --git a/images/screenshot-full.jpg b/images/screenshot-full.jpg new file mode 100644 index 00000000..306ceb40 Binary files /dev/null and b/images/screenshot-full.jpg differ diff --git a/images/screenshot-full.png b/images/screenshot-full.png new file mode 100644 index 00000000..721c30a8 Binary files /dev/null and b/images/screenshot-full.png differ diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f8e62798..22ef473a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,6 +6,7 @@ {{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }} + {{ block "meta_tags" . }}{{end}} {{ if .Site.IsServer }} diff --git a/layouts/index.html b/layouts/index.html index 972eadd8..b25bf062 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,8 +1,20 @@ -{{ define "title" }}{{ end}} +{{ define "title" }}Hugo Hero Theme Demo{{ end}} {{ define "header_css" }}{{ end }} {{ define "body_classes" }}page-home{{ end }} {{ define "header_classes" }}header-transparent{{ end }} +{{ define "meta_tags" }} + + + + + + + + + +{{ end }} + {{ define "main" }} {{ partial "hero-image-fullscreen.html" (dict "background" "images/jason-blackeye-1191801-unsplash.jpg" "heading" "Hero - Hugo Small Business Theme" "subheading" "Hero is a multipurpose Hugo theme with fullscreen hero images and fullwidth sections. It contains content types for a business or portfolio site." "content" .)}} diff --git a/layouts/partials/google-analytics.html b/layouts/partials/google-analytics.html index e71e5670..63c84abd 100644 --- a/layouts/partials/google-analytics.html +++ b/layouts/partials/google-analytics.html @@ -1,24 +1,26 @@ -{{ if eq (getenv "HUGO_ENV") "production" }} - {{ if isset (getenv "HUGO_GOOGLE_ANALYTICS_ID") }} +{{- if .Site.IsServer -}} + +{{ else }} + {{ $gid := (getenv "HUGO_GOOGLE_ANALYTICS_ID") }} + {{ if $gid }} - + {{ else }} {{ if .Site.Params.google_analytics_id }} - + {{ end }} {{ end}} -{{ end }} +{{ end }} \ No newline at end of file diff --git a/static/.DS_Store b/static/.DS_Store index b7492542..6ba663c3 100644 Binary files a/static/.DS_Store and b/static/.DS_Store differ