From b56555793b2d29f4aae5e27c28f6ed2c65d6c3ec Mon Sep 17 00:00:00 2001 From: Seb James Date: Tue, 19 Dec 2023 15:30:37 +0000 Subject: [PATCH] This is the key. have own layouts --- docs/_layouts/default.html | 20 ++++++++++++++++++++ docs/_layouts/home.html | 34 ++++++++++++++++++++++++++++++++++ docs/_layouts/page.html | 14 ++++++++++++++ docs/_layouts/post.html | 27 +++++++++++++++++++++++++++ 4 files changed, 95 insertions(+) create mode 100644 docs/_layouts/default.html create mode 100644 docs/_layouts/home.html create mode 100644 docs/_layouts/page.html create mode 100644 docs/_layouts/post.html diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html new file mode 100644 index 00000000..58e141b7 --- /dev/null +++ b/docs/_layouts/default.html @@ -0,0 +1,20 @@ + + + + {%- include head.html -%} + + + + {%- include header.html -%} + +
+
+ {{ content }} +
+
+ + {%- include footer.html -%} + + + + diff --git a/docs/_layouts/home.html b/docs/_layouts/home.html new file mode 100644 index 00000000..8f8ac79c --- /dev/null +++ b/docs/_layouts/home.html @@ -0,0 +1,34 @@ +--- +layout: default +--- + +
+ {%- if page.title -%} +

{{ page.title }}

+ {%- endif -%} + + {{ content }} + + {%- if site.posts.size > 0 -%} +

{{ page.list_title | default: "Posts" }}

+ + +

subscribe via RSS

+ {%- endif -%} + +
diff --git a/docs/_layouts/page.html b/docs/_layouts/page.html new file mode 100644 index 00000000..01e4b2a9 --- /dev/null +++ b/docs/_layouts/page.html @@ -0,0 +1,14 @@ +--- +layout: default +--- +
+ +
+

{{ page.title | escape }}

+
+ +
+ {{ content }} +
+ +
diff --git a/docs/_layouts/post.html b/docs/_layouts/post.html new file mode 100644 index 00000000..abf9696d --- /dev/null +++ b/docs/_layouts/post.html @@ -0,0 +1,27 @@ +--- +layout: default +--- +
+ +
+

{{ page.title | escape }}

+ +
+ +
+ {{ content }} +
+ + {%- if site.disqus.shortname -%} + {%- include disqus_comments.html -%} + {%- endif -%} + + +