1
0
mirror of https://github.com/tiyn/beaker-blog.git synced 2025-10-24 16:51:15 +02:00

adding dockerfile

This commit is contained in:
TiynGER
2020-05-24 17:51:22 +02:00
parent 8896d477e4
commit bcbf36d7a0
15 changed files with 24 additions and 1 deletions

View 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 %}

View File

@@ -0,0 +1,2 @@
Test Entry Title 1
This is an example blog entry.

View File

@@ -0,0 +1,2 @@
Test Entry Title 2
This is another example blog entry.

View File

@@ -0,0 +1,10 @@
Test Entry Title 3
This is a markdown file
- list entry
- list entry
- list entry
# md-header
more content

9
src/templates/error.html Normal file
View 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
src/templates/index.html Normal file
View 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 %}

16
src/templates/rss.xml Normal file
View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Blog Title</title>
<description>A short description of the blog.</description>
<language>en-us</language>
<link>localhost:5000/feed.xml</link>
<atom:link href="/feed.xml" rel="self" type="application/rss+xml" />
{% autoescape off %}
{{ content_string }}
{% endautoescape %}
</channel>
</rss>

View File

@@ -0,0 +1,14 @@
<html>
<head>
<title>{{ title }}</title>
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet" type="text/css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width", initial-scale=1.0>
</head>
<body>
<!-- Content -->
{% block content %}
{% endblock %}
<!-- Content -->
</body>
</html>