Add blog page and true home page
This commit is contained in:
parent
38d54312f5
commit
606ad98bb6
5 changed files with 301 additions and 259 deletions
19
src/_includes/article.njk
Normal file
19
src/_includes/article.njk
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
layout: base.njk
|
||||
---
|
||||
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
<li><a href="/feed.xml">RSS</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<h1>{{ title }}</h1>
|
||||
<article class="bg glow">
|
||||
{{ content | safe }}
|
||||
</article>
|
||||
<footer>
|
||||
<p>Talk to me <a href="https://techhub.social/@RadDevon">on Mastodon.</a></p>
|
||||
<a href="https://techhub.social/@RadDevon"><img src="/images/mastodon-logo.png" alt="Mastodon logo"></a>
|
||||
</footer>
|
||||
|
|
@ -4,15 +4,12 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="css/simple.css">
|
||||
<link rel="stylesheet" href="css/theme.css">
|
||||
<link rel="stylesheet" href="/css/simple.css">
|
||||
<link rel="stylesheet" href="/css/theme.css">
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<img src="/images/logo.png" alt="Devon.LOL" class="logo">
|
||||
<h1>{{ title }}</h1>
|
||||
<article>
|
||||
{{ content | safe }}
|
||||
</article>
|
||||
<a href="/" class="logo"><img src="/images/logo.png" alt="Devon.LOL"></a>
|
||||
{{ content | safe }}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue