From de9473df009bdab19ea287af8b18b6c141c2749b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 5 Feb 2020 02:17:01 -0300 Subject: Reproduce hakyll behaviour --- _layouts/default.html | 3 ++- _layouts/index.html | 38 +++++++------------------------------- _layouts/page.html | 10 +--------- _layouts/pastebin.html | 11 +++++++++++ _layouts/pastebins.html | 38 +++++++------------------------------- _layouts/post.html | 36 ++++++++++++++---------------------- 6 files changed, 42 insertions(+), 94 deletions(-) create mode 100644 _layouts/pastebin.html (limited to '_layouts') diff --git a/_layouts/default.html b/_layouts/default.html index fc9befd..9fa116e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -16,7 +16,7 @@ @@ -24,6 +24,7 @@
+

{{ page.title }}

{{ content }}
diff --git a/_layouts/index.html b/_layouts/index.html index 8f8ac79..675d9e0 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -1,34 +1,10 @@ --- 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/_layouts/page.html b/_layouts/page.html index 01e4b2a..57116c1 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -2,13 +2,5 @@ layout: default ---
- -
-

{{ page.title | escape }}

-
- -
- {{ content }} -
- + {{ content }}
diff --git a/_layouts/pastebin.html b/_layouts/pastebin.html new file mode 100644 index 0000000..51194d7 --- /dev/null +++ b/_layouts/pastebin.html @@ -0,0 +1,11 @@ +--- +layout: default +--- +
+
+ Posted on {{ page.date | date: "%b %-d, %Y" }} +
+
+ {{ content }} +
+
diff --git a/_layouts/pastebins.html b/_layouts/pastebins.html index 0740a04..6b7830c 100644 --- a/_layouts/pastebins.html +++ b/_layouts/pastebins.html @@ -1,34 +1,10 @@ --- 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/_layouts/post.html b/_layouts/post.html index abf9696..bdaa3f8 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,27 +1,19 @@ --- layout: default --- -
- -
-

{{ page.title | escape }}

- -
- -
+
+
+ Posted on {{ page.date | date: "%b %-d, %Y" }} +
+
{{ content }} -
- - {%- if site.disqus.shortname -%} - {%- include disqus_comments.html -%} - {%- endif -%} - - + +
+

Have a comment on this post? Start a discussion + in my public inbox + by sending an email to ~euandreh/public-inbox@lists.sr.ht + [mailing list etiquette], + or see existing discussions. +

+
-- cgit v1.2.3