From a1a83ea1de5f1381e9b44edb0cff109d803c6445 Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Sat, 12 Feb 2022 10:19:24 +0300 Subject: [PATCH] extract site-title to layout #137 --- layouts/partials/header.html | 4 +--- layouts/partials/site-title.html | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/site-title.html diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 99b7adc..e808edf 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,7 +1,5 @@
-

- {{ .Site.Title }} -

+ {{ partial "site-title.html" . }} {{ partial "social.html" . }}
{{ if .Site.Menus.main }} diff --git a/layouts/partials/site-title.html b/layouts/partials/site-title.html new file mode 100644 index 0000000..086008f --- /dev/null +++ b/layouts/partials/site-title.html @@ -0,0 +1,3 @@ +

+ {{ .Site.Title }} +

\ No newline at end of file