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 @@ {{/* NOTE: the Site's title, and if there is a page title, that is set too */}} - {{ 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 -}} -