From 22cced34fc608256f8271ad591a5ccca991bb164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 31 Jan 2018 10:16:27 +0100 Subject: [PATCH] Squashed 'themes/gohugoioTheme/' changes from 75da2f6b..ecad8247 ecad8247 Remove these archetypes as they've been moved into docs. d50ad39b Re-arrange PageTitle and SiteTitle in element 1cca0444 Use twitter cards internal template f6ba19fa Move sponsor data to theme data git-subtree-dir: themes/gohugoioTheme git-subtree-split: ecad82478e9835a58c94f3e705667159a1733e10 --- archetypes/default.md | 13 ------------- archetypes/functions.md | 17 ----------------- archetypes/showcase.md | 13 ------------- archetypes/tutorials.md | 16 ---------------- data/sponsors.toml | 17 +++++++++++++++++ layouts/_default/baseof.html | 4 ++-- .../partials/home-page-sections/sponsors.html | 7 +++---- layouts/partials/twitter_cards.html | 17 ----------------- 8 files changed, 22 insertions(+), 82 deletions(-) delete mode 100644 archetypes/default.md delete mode 100644 archetypes/functions.md delete mode 100644 archetypes/showcase.md delete mode 100644 archetypes/tutorials.md create mode 100644 data/sponsors.toml delete mode 100644 layouts/partials/twitter_cards.html diff --git a/archetypes/default.md b/archetypes/default.md deleted file mode 100644 index f30f01f74..000000000 --- a/archetypes/default.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -linktitle: "" -description: "" -godocref: "" -publishdate: "" -lastmod: "" -categories: [] -tags: [] -weight: 00 -slug: "" -aliases: [] -toc: false ---- \ No newline at end of file diff --git a/archetypes/functions.md b/archetypes/functions.md deleted file mode 100644 index 0a5dd344f..000000000 --- a/archetypes/functions.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -linktitle: "" -description: "" -godocref: "" -publishdate: "" -lastmod: "" -categories: [functions] -tags: [] -ns: "" -signature: [] -workson: [] -hugoversion: "" -aliases: [] -relatedfuncs: [] -toc: false -deprecated: false ---- \ No newline at end of file diff --git a/archetypes/showcase.md b/archetypes/showcase.md deleted file mode 100644 index 562fb9e8e..000000000 --- a/archetypes/showcase.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -description: "" -lastmod: "" -license: "" -licenseLink: "" -sitelink: "" -sourcelink: "" -categories: [showcase] -tags: [] -image: "" -toc: false -notesforauthors: "Go to gohugo.io/contribute/documentation for more info" ---- \ No newline at end of file diff --git a/archetypes/tutorials.md b/archetypes/tutorials.md deleted file mode 100644 index 0a3540c0f..000000000 --- a/archetypes/tutorials.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -linktitle: "" -description: "" -godocref: "" -publishdate: "" -lastmod: "" -categories: [tutorials] -tags: [] -author: "" -authorurl: "" -originalurl: "" -draft: false -aliases: [] -notesforauthors: "Go to gohugo.io/contribute/documentation for more info." ---- - diff --git a/data/sponsors.toml b/data/sponsors.toml new file mode 100644 index 000000000..03e89745f --- /dev/null +++ b/data/sponsors.toml @@ -0,0 +1,17 @@ +[[banners]] +name = "Forestry.io" +link = "https://forestry.io/" +logo = "/images/sponsors/forestry-logotype.svg" +copy = "" + +[[banners]] +name = "" +link = "" +logo = "" +copy = "" + +[[banners]] +name = "" +link = "" +logo = "" +copy = "" \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fb09c0db4..d6c854db0 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,7 +9,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> {{/* NOTE: the Site's title, and if there is a page title, that is set too */}} - <title>{{ block "title" . }}{{ .Site.Title }} {{ with .Title }} | {{ . }}{{ end }}{{ end }} + {{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} @@ -27,7 +27,7 @@ {{- template "_internal/opengraph.html" . -}} {{- template "_internal/google_news.html" . -}} {{- template "_internal/schema.html" . -}} - {{- partial "twitter_cards.html" . -}} + {{- template "_internal/twitter_cards.html" . -}} {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{ template "_internal/google_analytics_async.html" . }} diff --git a/layouts/partials/home-page-sections/sponsors.html b/layouts/partials/home-page-sections/sponsors.html index 606391704..4d32fc5d6 100644 --- a/layouts/partials/home-page-sections/sponsors.html +++ b/layouts/partials/home-page-sections/sponsors.html @@ -1,11 +1,10 @@ -{{$sponsors := .cx.Site.GetPage "home"}} {{$classes_box := "ba b--light-gray bg-light-gray br3 flex flex-column flex-wrap items-center justify-center ph3 pv4 mb4 w-100 w-30-l "}} -{{if $sponsors.Params.sponsors}} -
+{{ with .cx.Site.Data.sponsors }} +
  Hugo Sponsors
- {{ range $sponsors.Params.sponsors }} + {{ range .banners }} {{if .logo}}
{{with .link -}} diff --git a/layouts/partials/twitter_cards.html b/layouts/partials/twitter_cards.html deleted file mode 100644 index d719937df..000000000 --- a/layouts/partials/twitter_cards.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- with $.Param "images" -}} - - -{{ else -}} - -{{- end -}} - - -{{ with .Site.Social.twitter -}} - -{{ end -}} -{{ range .Site.Authors }} -{{ with .twitter -}} - -{{ end -}} -{{ end -}} -