Load HTML templates and SCSS styling

This commit is contained in:
Naman Sood 2021-02-15 02:31:18 -05:00
parent 8daaa1b330
commit d347551455
10 changed files with 581 additions and 22 deletions

9
templates/fullpost.html Normal file
View file

@ -0,0 +1,9 @@
<article>
<date>{{metadata.date}}</date>
<h1>{{metadata.title}}</h1>
<h2>{{metadata.summary}}</h2>
<section class="content">
{{{contents}}}
</section>
<a class="load-content" href="/">&larr; Back home</a>
</article>

27
templates/page.html Normal file
View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/main.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono&family=Nunito:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
<title>{{title}} &ndash; Prose</title>
</head>
<body>
<div class="grid"></div>
<header>
<h1 class="title">Prose</h1>
<nav>
<a href="https://nsood.in">Home</a>
<a href="https://notes.nsood.in">Blog</a>
<a href="https://nsood.in/#contact">Contact</a>
</nav>
</header>
<main>
{{{contents}}}
</main>
<footer>
Made by Naman Sood, with love.
</footer>
</body>
</html>

6
templates/summary.html Normal file
View file

@ -0,0 +1,6 @@
<article>
<date>{{metadata.date}}</date>
<h1>{{metadata.title}}</h1>
<h2>{{metadata.summary}}</h2>
<a class="load-content" href="/{{slug}}">Read more &rarr;</a>
</article>