init
This commit is contained in:
commit
68b6a87b14
25 changed files with 871 additions and 0 deletions
0
theme/default/templates/content.tmpl
Normal file
0
theme/default/templates/content.tmpl
Normal file
3
theme/default/templates/footer.tmpl
Normal file
3
theme/default/templates/footer.tmpl
Normal file
|
@ -0,0 +1,3 @@
|
|||
<footer>
|
||||
<p>Generated with <a href="https://git.uphillsecurity.com/cf7/picopaper">picopaper</a></p>
|
||||
</footer>
|
9
theme/default/templates/header.tmpl
Normal file
9
theme/default/templates/header.tmpl
Normal file
|
@ -0,0 +1,9 @@
|
|||
<header>
|
||||
<h1><a href="/" style="color: #333; text-decoration: none;">{{ blog_title }}</a></h1>
|
||||
<p class="blog-description">{{ blog_description }}</p>
|
||||
<nav class="main-nav">
|
||||
{% for item in navbar_items %}
|
||||
<a href="{{ item.url }}" class="nav-item">{{ item.text }}</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
</header>
|
31
theme/default/templates/index.tmpl
Normal file
31
theme/default/templates/index.tmpl
Normal file
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% include 'meta.tmpl' %}
|
||||
</head>
|
||||
<body>
|
||||
{% include 'header.tmpl' %}
|
||||
|
||||
<main>
|
||||
{% for post in posts %}
|
||||
<article class="post">
|
||||
<div class="post-meta">{{ post.date }}</div>
|
||||
<h2 class="post-title">
|
||||
{% if post.type == 'long' %}
|
||||
<a href="{{ post.url }}">{{ post.title }}</a>
|
||||
{% else %}
|
||||
{{ post.title }}
|
||||
{% endif %}
|
||||
</h2>
|
||||
{% if post.type == 'short' %}
|
||||
<div class="post-content">
|
||||
{{ post.content | safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
</main>
|
||||
|
||||
{% include 'footer.tmpl' %}
|
||||
</body>
|
||||
</html>
|
6
theme/default/templates/meta.tmpl
Normal file
6
theme/default/templates/meta.tmpl
Normal file
|
@ -0,0 +1,6 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="{{ blog_description }}">
|
||||
<title>{{ title }}</title>
|
||||
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
|
||||
<link rel="stylesheet" href="/assets/style.css">
|
21
theme/default/templates/post.tmpl
Normal file
21
theme/default/templates/post.tmpl
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% include 'meta.tmpl' %}
|
||||
</head>
|
||||
<body>
|
||||
{% include 'header.tmpl' %}
|
||||
|
||||
<main>
|
||||
<article class="post">
|
||||
<div class="post-meta">{{ post.date }}</div>
|
||||
<h2>{{ post.title }}</h2>
|
||||
<div class="post-content">
|
||||
{{ post.content | safe }}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
{% include 'footer.tmpl' %}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue