From 0984e402a430176b9aa2f14a182537427d77b665 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 14 Apr 2019 15:37:11 +0800 Subject: [PATCH 2/3] Add the partial definition for the section definition. --- layouts/partials/sections-definition.html | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 layouts/partials/sections-definition.html diff --git a/layouts/partials/sections-definition.html b/layouts/partials/sections-definition.html new file mode 100644 index 0000000..c0fe1d6 --- /dev/null +++ b/layouts/partials/sections-definition.html @@ -0,0 +1,2 @@ +
  • Labs
  • +
  • Quotes
  • From 545c0960876ec8d85c7b3b42da88dd2807a4404a Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 14 Apr 2019 15:51:13 +0800 Subject: [PATCH 3/3] Modify the header templates to refer to the section partial html. --- layouts/partials/header-content.html | 3 +-- layouts/partials/header.html | 3 +-- layouts/partials/labs-header-content.html | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/layouts/partials/header-content.html b/layouts/partials/header-content.html index a63823a..b65a77f 100644 --- a/layouts/partials/header-content.html +++ b/layouts/partials/header-content.html @@ -66,8 +66,7 @@
      -
    • Labs
    • -
    • Quotes
    • + {{ partial "sections-definition.html" }} {{ with .Site.Params.twitter }}
    • Twitter
    • {{ end }} {{ with .Site.Params.facebook }}
    • Facebook
    • {{ end }} {{ with .Site.Params.github }}
    • GitHub
    • {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4b075b5..2f61c32 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -55,8 +55,7 @@
      -
    • Labs
    • -
    • Quotes
    • + {{ partial "sections-definition.html" }} {{ with .Site.Params.twitter }}
    • Twitter
    • {{ end }} {{ with .Site.Params.facebook }}
    • Facebook
    • {{ end }} {{ with .Site.Params.github }}
    • GitHub
    • {{ end }} diff --git a/layouts/partials/labs-header-content.html b/layouts/partials/labs-header-content.html index 3934922..6b70f6b 100644 --- a/layouts/partials/labs-header-content.html +++ b/layouts/partials/labs-header-content.html @@ -82,8 +82,7 @@
      -
    • Labs
    • -
    • Quotes
    • + {{ partial "sections-definition.html" }} {{ with .Site.Params.twitter }}
    • Twitter
    • {{ end }} {{ with .Site.Params.facebook }}
    • Facebook
    • {{ end }} {{ with .Site.Params.github }}
    • GitHub
    • {{ end }}