aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-02-14 02:38:59 +0300
committerValentin Popov <valentin@popov.link>2024-02-14 02:38:59 +0300
commite68f7cf6c7fadb1bceea955a4caf40954d9b024e (patch)
tree5fe6a1ac66ed98571674ab6686e1742a46812eb8 /_layouts
parentedaeaf08b8750e8278b18484ff8e0aa180fe3fab (diff)
downloadpopov.link-e68f7cf6c7fadb1bceea955a4caf40954d9b024e.tar.xz
popov.link-e68f7cf6c7fadb1bceea955a4caf40954d9b024e.zip
Moved actual template site
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html17
-rw-r--r--_layouts/page.html8
-rw-r--r--_layouts/post.html32
3 files changed, 33 insertions, 24 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index cabcd0b..ca65e32 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -4,10 +4,19 @@ layout: compress
<!DOCTYPE html>
<html lang="{{ site.lang | strip | slugify | xml_escape }}">
- {% include head.html %}
- <body>
+{% include head.html %}
+
+<body>
+ <header>
+ {% include navbar.html %}
+ </header>
+
+ <article>
{{ content }}
- </body>
+ </article>
+
+ {% include counter.html %}
+</body>
-</html>
+</html> \ No newline at end of file
diff --git a/_layouts/page.html b/_layouts/page.html
index 32c9b9f..84f03f7 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -2,10 +2,4 @@
layout: default
---
-<main class="container">
- <header>
- <h1>{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}</h1>
- </header>
-
- {{ content }}
-</main>
+{{ content }} \ No newline at end of file
diff --git a/_layouts/post.html b/_layouts/post.html
index 9aedb0b..9ff87ac 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -2,19 +2,25 @@
layout: default
---
-<article class="container">
- <small>
- <span>Published</span>
- <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: '%Y-%m-%d' | strip | normalize_whitespace | xml_escape }}</time>
- <span>on</span>
- <a href="{{ site.url | absolute_url | uri_escape }}" target="_self">{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}</a>
- <span>|</span>
- <a href="{{ page.url | absolute_url | uri_escape }}" target="_blank">Permalink</a>
- </small>
+<section style="text-align: center;">
+ <h1>{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}</h1>
- <header>
- <h1>{{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}</h1>
- </header>
+ <p>
+ <small>
+ Posted
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: '%B %e, %Y' | strip | normalize_whitespace | xml_escape }}</time>
+ by
+ <a href="mailto:{{ site.email | strip | url_encode }}?subject={{ page.title | default: site.title | strip | normalize_whitespace | xml_escape }}">Valentin Popov</a>
+ &nbsp;&hyphen;
+ <strong>{% include reading-time.html %}</strong>
+ </small>
+ </p>
+</section>
+<section>
{{ content }}
-</article>
+</section>
+
+<section>
+ {% include comments.html %}
+</section> \ No newline at end of file