init
This commit is contained in:
commit
68b6a87b14
25 changed files with 871 additions and 0 deletions
BIN
theme/default/assets/favicon.ico
Normal file
BIN
theme/default/assets/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 983 B |
92
theme/default/assets/style.css
Normal file
92
theme/default/assets/style.css
Normal file
|
@ -0,0 +1,92 @@
|
|||
body {
|
||||
max-width: 800px;
|
||||
margin: 40px auto;
|
||||
padding: 0 20px;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
header {
|
||||
border: 1px solid #efefef;
|
||||
padding: 20px;
|
||||
margin-bottom: 40px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
h1 { margin: 0; }
|
||||
|
||||
.blog-description {
|
||||
margin: 10px 0 0 0;
|
||||
color: #666;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.main-nav {
|
||||
margin-top: 15px;
|
||||
font-weight: bold;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
padding: 8px 15px;
|
||||
border: 1px solid #efefef;
|
||||
border-radius: 10px;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
background-color: #f5f5f5;
|
||||
border-color: #0066cc;
|
||||
color: #0066cc;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0066cc;
|
||||
text-decoration: none;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
|
||||
.post {
|
||||
padding: 15px;
|
||||
margin-top: 10px;
|
||||
border: 1px solid #efefef;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
|
||||
.post-meta {
|
||||
color: #666;
|
||||
font-size: 0.9em;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.post-title {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.post-title a {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post-title a:hover {
|
||||
color: #0066cc;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: 60px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #efefef;
|
||||
text-align: center;
|
||||
color: #666;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
footer p {
|
||||
font-size: 0.7rem;
|
||||
}
|
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