From f463ef99ed2862e4042557e28aece7ca858e1d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 29 Nov 2017 12:31:51 +0100 Subject: [PATCH] Squashed 'themes/gohugoioTheme/' changes from bc851da9..75da2f6b 75da2f6b Move sponsor logos from hugoDocs 06ab535d Add sponsor logos to home page and footer 8e8172f1 Sync theme 6665f7ef Update Chroma highlighting docs d9164f16 Merge commit '040d8d2833c26c53cf9f0e035910821ed50e3863' a665c8ad Merge commit 'f66d59b8991c264c3366895b5e148ea810a184cd' 6a83faf5 Rewrite the syntax highlighter docs etc. git-subtree-dir: themes/gohugoioTheme git-subtree-split: 75da2f6b46ae7303941fa584db2ee5f4166ad300 --- layouts/index.html | 3 + .../partials/home-page-sections/sponsors.html | 31 + layouts/partials/nav-mobile.html | 6 +- layouts/partials/site-footer.html | 62 +- layouts/partials/svg/gopher-side_color.svg | 31 - src/css/_code.css | 11 + static/dist/app.bundle.js | 11696 +++++++++++++++- static/images/sponsors/forestry-logotype.svg | 1 + 8 files changed, 11775 insertions(+), 66 deletions(-) create mode 100644 layouts/partials/home-page-sections/sponsors.html delete mode 100755 layouts/partials/svg/gopher-side_color.svg create mode 100644 static/images/sponsors/forestry-logotype.svg diff --git a/layouts/index.html b/layouts/index.html index 205524d61..5e8ebbdd4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -14,6 +14,9 @@
{{- partial "home-page-sections/installation" . -}}
+ + {{ partial "home-page-sections/sponsors.html" (dict "cx" . ) }} +
{{- partial "home-page-sections/tweets" . -}}
diff --git a/layouts/partials/home-page-sections/sponsors.html b/layouts/partials/home-page-sections/sponsors.html new file mode 100644 index 000000000..606391704 --- /dev/null +++ b/layouts/partials/home-page-sections/sponsors.html @@ -0,0 +1,31 @@ +{{$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}} +
+
  + Hugo Sponsors +
+ {{ range $sponsors.Params.sponsors }} + {{if .logo}} +
+ {{with .link -}} + + {{- end}} + Logo for {{ .name }} + {{with .link}}{{end}} + {{with .copy}} +

+ {{- . -}} +

+ {{end}} +
+ {{else}} +
+

Your Logo Here

+
+ {{end}} + {{end}} +
+
+
+{{end}} diff --git a/layouts/partials/nav-mobile.html b/layouts/partials/nav-mobile.html index 8de3d5c35..00b1a691c 100644 --- a/layouts/partials/nav-mobile.html +++ b/layouts/partials/nav-mobile.html @@ -5,8 +5,8 @@ {{ partial "nav-links-docs-mobile.html" . }} -
- +
+ - +
diff --git a/layouts/partials/site-footer.html b/layouts/partials/site-footer.html index f855bea0d..fb5b04b81 100755 --- a/layouts/partials/site-footer.html +++ b/layouts/partials/site-footer.html @@ -1,40 +1,48 @@ -