Very initial commit to get going
This commit is contained in:
commit
58d06e9f0d
20 changed files with 4705 additions and 0 deletions
48
src/_includes/base.njk
Normal file
48
src/_includes/base.njk
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="{{ site.authorName }}">
|
||||
<meta name="description" content="{{ site.description }}">
|
||||
<link rel="icon" href="{{ site.favicon }}" type="image/svg+xml" />
|
||||
|
||||
<title>{{ title }}</title>
|
||||
<link rel="stylesheet" href="/resources/style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="menu">
|
||||
<div class="nav-left">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/">
|
||||
<img class="logo" src="/media/cherry-blossom.png" alt="" />
|
||||
<span class="sitename">{{ site.name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-right">
|
||||
<ul>
|
||||
<li><a href="/about.html">about</a></li>
|
||||
<li><a href="https://git.vibb.ro">git</a></li>
|
||||
<li><a href="https://live.cheri.pink">livestreams</a></li>
|
||||
<li><a href="/posts/">posts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="content">
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<p>
|
||||
Brought here with love <3.
|
||||
Content licensed under <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/80x15.png" /></a>
|
||||
</p>
|
||||
</footer>
|
||||
<script src="/resources/themechange.js"></script>
|
||||
</body>
|
||||
</html>
|
9
src/_includes/listposts.njk
Normal file
9
src/_includes/listposts.njk
Normal file
|
@ -0,0 +1,9 @@
|
|||
<ul>
|
||||
{% for post in listposts %}
|
||||
<li>
|
||||
<strong><a href="{{ post.url | url }}"> {{ post.data.title }}</a></strong>
|
||||
-
|
||||
<time datetime="{{ post.date | htmlDateString}}">{{ post.date | readableDate}}</time>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
8
src/_includes/post.njk
Normal file
8
src/_includes/post.njk
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
layout: base.njk
|
||||
---
|
||||
<h1>{{ title }}</h1>
|
||||
<h3>{{ date }}</h3>
|
||||
<article>
|
||||
{{ content | safe }}
|
||||
</article>
|
Loading…
Add table
Add a link
Reference in a new issue