mirror of
https://github.com/tiyn/beaker-blog.git
synced 2025-10-10 18:01:17 +02:00
initial commit
This commit is contained in:
11
templates/archive.html
Normal file
11
templates/archive.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends 'template.html' %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="blogarchive">
|
||||
<h1>Blog-Archive</h1><br>
|
||||
{% autoescape off %}
|
||||
{{ content_string }}
|
||||
{% endautoescape %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
2
templates/entry/test-entry1.html
Normal file
2
templates/entry/test-entry1.html
Normal file
@@ -0,0 +1,2 @@
|
||||
Test Entry Title 1
|
||||
This is an example blog entry.
|
2
templates/entry/test-entry2.html
Normal file
2
templates/entry/test-entry2.html
Normal file
@@ -0,0 +1,2 @@
|
||||
Test Entry Title 2
|
||||
This is another example blog entry.
|
9
templates/error.html
Normal file
9
templates/error.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "template.html" %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="important">
|
||||
Error<br>
|
||||
<span>{{ errorcode }}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
15
templates/index.html
Normal file
15
templates/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends "template.html" %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="blog">
|
||||
<h1>Blog-Index</h1><br>
|
||||
<p>
|
||||
<a href="archive">Archive</a><br>
|
||||
<a href="feed.xml">RSS</a>
|
||||
</p>
|
||||
{% autoescape off %}
|
||||
{{ content_string }}
|
||||
{% endautoescape %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
17
templates/rss.xml
Normal file
17
templates/rss.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml-stylesheet type="text/css" href="{{ url_for('static', filename='css/rss.css') }}" ?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
|
||||
<channel>
|
||||
<title>The Latest from Marten</title>
|
||||
<description>Updates from Marten Kante. Throw this in your RSS feeder for instant updates!</description>
|
||||
<language>en-us</language>
|
||||
<link>/blog/feed.xml</link>
|
||||
<atom:link href="/feed.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
{% autoescape off %}
|
||||
{{ content_string }}
|
||||
{% endautoescape %}
|
||||
|
||||
</channel>
|
||||
</rss>
|
13
templates/template.html
Normal file
13
templates/template.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ title }}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width", initial-scale=1.0>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Content -->
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
<!-- Content -->
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user