diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 907847e5..8969ec59 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -3,7 +3,6 @@ themesDir = "themes" theme = "hugo-serif-theme" languageCode = "en-us" title = "Hugo Serif Theme" -summaryLength = 10 [module] [module.hugoVersion] diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index bfd03479..519d3d3e 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -3,7 +3,8 @@ title: 'Homepage' meta_title: 'Hugo Serif Theme' description: "Serif is a modern business theme for Hugo." intro_image: "images/illustrations/pointing.svg" -intro_image_absolute: true +intro_image_absolute: true # makes the image use css position: absolute; so it looks "offset". It's a visual effect that might not always look good depending on the image you use. +intro_image_absolute_offset: "auto auto -100px -80px" # used to tweak the positioning of the absolute image if enabled above intro_image_hide_on_mobile: true --- diff --git a/exampleSite/content/team/_index.md b/exampleSite/content/team/_index.md index 8337db39..4b63a156 100644 --- a/exampleSite/content/team/_index.md +++ b/exampleSite/content/team/_index.md @@ -1,10 +1,11 @@ --- title: 'Team' -# intro_image: "images/smartworks-coworking-cW4lLTavU80-unsplash.jpg" -# intro_image_absolute: false -# intro_image_hide_on_mobile: false +intro_image: "images/illustrations/meditate.svg" +intro_image_absolute: true +intro_image_absolute_offset: "auto auto -148px -102px" +intro_image_hide_on_mobile: false --- # Meet The Team -Our team of qualified accountants can help your business at any stage. +Our team of qualified accountants can help your business at any stage. diff --git a/exampleSite/static/images/illustrations/meditate.svg b/exampleSite/static/images/illustrations/meditate.svg new file mode 100644 index 00000000..0717b061 --- /dev/null +++ b/exampleSite/static/images/illustrations/meditate.svg @@ -0,0 +1,174 @@ + + + pixeltrue-meditation-1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/exampleSite/static/images/illustrations/team.svg b/exampleSite/static/images/illustrations/team.svg new file mode 100644 index 00000000..f1c2eaac --- /dev/null +++ b/exampleSite/static/images/illustrations/team.svg @@ -0,0 +1,228 @@ + + + pixeltrue-teaching-1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 38b2fe97..c0bf5a00 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,13 +7,7 @@
{{ .Content }}
- {{ if .Params.intro_image }} -
- -
- {{ end }} + {{ partial "intro-image.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 74140ea5..7c12cbad 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,13 +10,7 @@ {{ partial "call.html" (dict "site" .Site "context" . "show_button" "true") }} {{ end }} - {{ if .Params.intro_image }} -
- {{ -
- {{ end }} + {{ partial "intro-image.html" . }} diff --git a/layouts/partials/intro-image.html b/layouts/partials/intro-image.html new file mode 100644 index 00000000..678921bc --- /dev/null +++ b/layouts/partials/intro-image.html @@ -0,0 +1,10 @@ +{{ if .Params.intro_image }} +
+ {{ .Title }} +
+{{ end }} \ No newline at end of file diff --git a/layouts/services/list.html b/layouts/services/list.html index 1e71cc14..597230e7 100644 --- a/layouts/services/list.html +++ b/layouts/services/list.html @@ -7,14 +7,7 @@
{{ .Content }}
- {{ if .Params.intro_image }} -
- {{ -
- {{ end }} + {{ partial "intro-image.html" . }} diff --git a/layouts/team/list.html b/layouts/team/list.html index be2ca31b..d88947cf 100644 --- a/layouts/team/list.html +++ b/layouts/team/list.html @@ -7,14 +7,7 @@
{{ .Content }}
- {{ if .Params.intro_image }} -
- {{ .Title }} -
- {{ end }} + {{ partial "intro-image.html" . }}