summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html37
-rw-r--r--templates/blog-page.html17
-rw-r--r--templates/index.html40
-rw-r--r--templates/main.html11
4 files changed, 11 insertions, 94 deletions
diff --git a/templates/base.html b/templates/base.html
deleted file mode 100644
index cf1edbc..0000000
--- a/templates/base.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
- <meta charset="UTF-8">
- <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
- <meta content="width=device-width, initial-scale=1" name="viewport" />
-
- {% if page.title %}
- {% set title = page.title %}
- {% elif section.title %}
- {% set title = section.title %}
- {% elif config.title %}
- {% set title = config.title %}
- {% endif %}
- {% if title %}<title>{{ title }}</title>{% endif %}
-
- {% if config.generate_feed %}
- <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false)}}">
- {% endif %}
-
- <link rel="stylesheet" href="{{ get_url(path='site.css', trailing_slash=false) | safe }}" />
- <style>
- code {
- color: var(--note-bg-light);
- padding: .1rem .2rem;
- }
- </style>
-</head>
-
-<body theme="auto">
- <main style="max-width: 50rem;padding: 2rem 6rem;">
- {% block content %} {% endblock %}
- </main>
-</body>
-
-</html>
diff --git a/templates/blog-page.html b/templates/blog-page.html
deleted file mode 100644
index 2e54a27..0000000
--- a/templates/blog-page.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-
-<header>
- <h1 id="title">
- {{ page.title }}
- </h1>
- <div>
- <p>written: {{ page.date }}</p>
- <p>updated: {{ page.updated }}</p>
- </div>
- <a href="/">home</a>
-</header>
-
-{{ page.content | safe }}
-{% endblock content %} \ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
deleted file mode 100644
index 11ff2d2..0000000
--- a/templates/index.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
-<h1 id="page-title">
- {{ section.title }}
-</h1>
-
-<p>{{ section.description }}</p>
-
-<nav>
- <table>
- <caption>
- Posts
- </caption>
- <thead>
- <tr>
- <td>Title</td>
- <td>Date</td>
- </tr>
- </thead>
- <tbody>
- {% for page in paginator.pages %}
- <tr>
- <td><a href="{{ page.permalink | safe }}">{{page.title}}</a></td>
- <td>{{ page.date }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- <nav class="pagination">
- {% if paginator.previous %}
- <a class="previous" href="{{ paginator.previous }}">‹ Previous</a>
- {% endif %}
- {% if paginator.next %}
- <a class="next" href="{{ paginator.next }}">Next ›</a>
- {% endif %}
- </nav>
-</nav>
-
-{% endblock %} \ No newline at end of file
diff --git a/templates/main.html b/templates/main.html
new file mode 100644
index 0000000..0300fa6
--- /dev/null
+++ b/templates/main.html
@@ -0,0 +1,11 @@
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+</head>
+<body>
+ <main>
+ <!-- content will go here -->
+ </main>
+</body>
+</html>