experimenting with landing page
All checks were successful
/ weblog.lol (push) Successful in 12s

This commit is contained in:
Gordon Pedersen 2024-05-07 16:41:26 +10:00
parent 42a472cbe2
commit 41401d5cde
4 changed files with 68 additions and 6 deletions

View file

@ -7,7 +7,7 @@ Weblog title: Death.au's Domain
Weblog description: This is a weblog.
Author: Gordon Pedersen (a.k.a. death.au)
// Canonical domain: elsewhere.tld
// Landing page: /
Landing page: /blog
Landing page template: Landing Page Template
@ -17,8 +17,8 @@ Landing page template: Landing Page Template
Separator: ·
// Navigation: about, another-page, <a href="https://example.com">Example</a>, [Example](https://example.com)
Files path: /files/
Landing page post count: 1
// Landing page post length: 45 words
Landing page post count: 20
Landing page post length: 45 words
Post template: Post Template
@ -52,12 +52,14 @@ Feed post count: 25
Post path format: /Y/m/
Default post: <<[---
Date: $date
title: B4.xxxx Your new post
date: $date
location: /B4.xxxx
tags: Johnny Decimal, PKM
---
# Your new post
This is a new blog post. You can author it in _Markdown_, which is **awesome**.
]>>
Titleless title length: 15 words

View file

@ -18,7 +18,7 @@
<article>
<aside class="post-info">
<i class="fa-solid fa-clock"></i> <time class="dt-published" datetime="{date}">{date}</time>
<a href="{location}"><i class="fa-solid fa-clock"></i> <time class="dt-published" datetime="{date}">{date}</time></a>
</aside>
{body}
<aside class="post-tags">

View file

@ -0,0 +1,36 @@
Type: Template
Title: Landing Page Template
<!DOCTYPE html>
<html lang="en">
<head>
<title>{weblog-title}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/styles.css?v0.0.3">
{feeds}
</head>
<body>
<header>
<h1 class="weblog-title"><a href="{base-path}">{weblog-title}</a></h1>
{navigation}
</header>
<main class="landing">
{body}
<nav>
{previous-page}
{next-page}
</nav>
</main>
<footer>
<p>Made with <a href="https://weblog.lol">weblog.lol</a>.</p>
</footer>
</body>
</html>

View file

@ -0,0 +1,24 @@
Type: Template
Title: Post Template
<article>
{body}
<aside class="post-info">
<a href="{location}"><i class="fa-solid fa-clock"></i> {date}</a>
</aside>
<aside class="post-tags">
{tags}
</aside>
</article>
<article>
<aside class="post-info">
<a href="{location}"><i class="fa-solid fa-clock"></i> <time class="dt-published" datetime="{date}">{date}</time></a>
</aside>
{body}
<aside class="post-tags">
{tags}
</aside>
</article>
<span class="divider"></span>