From 1839d12b11dbb6555140bc17ab077a1b61b2f2dd Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 28 Apr 2022 08:23:43 +0200 Subject: [PATCH] feat(layouts): DRY includes --- _includes/footer.html | 6 ++++++ _includes/logo.html | 5 +++++ _layouts/core.html | 32 ++++++++++---------------------- _layouts/default.html | 23 +++++++---------------- _layouts/text.html | 29 +++++++++-------------------- 5 files changed, 37 insertions(+), 58 deletions(-) create mode 100644 _includes/footer.html create mode 100644 _includes/logo.html diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..7d33148 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/_includes/logo.html b/_includes/logo.html new file mode 100644 index 0000000..25c00a4 --- /dev/null +++ b/_includes/logo.html @@ -0,0 +1,5 @@ +
+
+
+
+
\ No newline at end of file diff --git a/_layouts/core.html b/_layouts/core.html index 05d1f49..f7e6aa6 100644 --- a/_layouts/core.html +++ b/_layouts/core.html @@ -1,37 +1,25 @@ + - - {{ page.title }} - + + {{ page.title }} + - - - + + - + -
-
-
-
-
-
-
- - {{ content }} -
-
- + {{ content }} - + + \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 5c3150b..4cb6c5e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,21 +2,12 @@ layout: core --- +
-
-
- {% if page.headline %} -
-

{{ page.headline }}

-
- {% endif %} -
- {{ content }} -
- -
-
+ {% include logo.html %}
+ + {{ content }} + + {% include footer.html %} +
\ No newline at end of file diff --git a/_layouts/text.html b/_layouts/text.html index 0c12ead..5cb6cce 100644 --- a/_layouts/text.html +++ b/_layouts/text.html @@ -1,26 +1,15 @@ --- -layout: core +layout: default --- -
-
-
-   -
-
-
-
- {% if page.headline %} -
-

{{ page.headline }}

-
- {% endif %} -
- {{ content }} -
- +
+
+
+
+ {% if page.title %}

{{ page.title }}

{% endif %} + + {{ content }}
+
\ No newline at end of file