diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-04-28 15:04:22 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-04-28 15:04:22 +0200 |
commit | a041f469ff41f53601c97454b41cfc4ef3f3ed45 (patch) | |
tree | 9554747d8a659b86f04c42ab3556fbb4dae3e37a /_layouts | |
parent | 5d088aa25f69afdb9ba208def8c23b4f45bbe0b8 (diff) |
cleanup + begin fix search page
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html (renamed from _layouts/post.html) | 4 | ||||
-rw-r--r-- | _layouts/index.html | 48 |
2 files changed, 2 insertions, 50 deletions
diff --git a/_layouts/post.html b/_layouts/default.html index 4597623..a923692 100644 --- a/_layouts/post.html +++ b/_layouts/default.html @@ -14,8 +14,8 @@ </div> <div class='navAreaWrapper'> <div class='sticky'> - {% include navbar.html page="post" %} - {% toc %} + {% include navbar.html page=page.id %} + {% if page.toc %}{% toc %}{% endif %} </div> </div> <!-- <MobileNavbar /> --> diff --git a/_layouts/index.html b/_layouts/index.html deleted file mode 100644 index 9f0f6d0..0000000 --- a/_layouts/index.html +++ /dev/null @@ -1,48 +0,0 @@ -<!DOCTYPE html> -<html lang='{{ page.lang }}'> -<head> - {% include head.html %} - <title>{{ site.title }}</title> - {% include opengraph.html %} -</head> -<body> - <div class='centeredPage'> - <div class='titleWrapper'> - <h1>{{ page.title }}</h1> - {% if page.subtitle %}<p class='subtile'>{{ page.subtitle }}</p>{% endif %} - {% if page.tags %}{% include tags.html tags=page.tags %}{% endif %} - </div> - <div class='navAreaWrapper'> - <div class='sticky'> - {% include navbar.html page="index" %} - <!-- <Chapters chapters={props.meta.chapters} /> --> - </div> - </div> - <!-- <MobileNavbar /> --> - <div class='contentWrapper'> - {{ content }} - {% if site.rss != nil %} - <p>An rss/atom feed of this blog is also available:</p> - <pre>{{ site.rss.url }}</pre> - {% endif %} - <hr/> - <h2>Recent posts</h2> - <div class="recentPosts"> - {% for post in site.posts limit:4 %} - <div class="postCard"> - <a href="{{ post.url }}"> - <img src="{{ post.cover }}" alt="post cover" class="cover"> - <h2 class="title">{{ post.title }}</h2> - <strong class="subtitle">{{ post.subtitle }}</strong> - </a> - {% include tags.html tags=post.tags %} - </div> - {% endfor %} - </div> - <div> - <a href="/search" class="button">Go to all posts</a> - </div> - </div> - </div> -</body> -</html> |