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

adding config.py and switchable css

This commit is contained in:
TiynGER
2020-05-27 22:00:19 +02:00
parent a5a20398c0
commit c223a21bdd
13 changed files with 336 additions and 52 deletions

View File

@@ -2,7 +2,7 @@
{% block content %}
<div class="container">
<div class="blogarchive">
<h1>Blog-Archive</h1><br>
<h1>Archive</h1><br>
{% autoescape off %}
{{ content_string }}
{% endautoescape %}

View File

@@ -3,7 +3,7 @@
<div class="container">
<div class="important">
Error<br>
<span>{{ errorcode }}</span>
<span>{{ errorcode }}</span>
</div>
</div>
{% endblock %}

View File

@@ -2,11 +2,7 @@
{% 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>
<h1>Index</h1><br>
{% autoescape off %}
{{ content_string }}
{% endautoescape %}

View File

@@ -2,10 +2,10 @@
<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>
<title>{{ title }}</title>
<description>{{ description }}</description>
<language>en-us</language>
<link>localhost:5000/feed.xml</link>
<link>{{ website }}/feed.xml</link>
<atom:link href="/feed.xml" rel="self" type="application/rss+xml" />
{% autoescape off %}

View File

@@ -1,11 +1,24 @@
<html>
<head>
<title>{{ title }}</title>
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet" type="text/css">
<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>
<!-- Menu -->
<div class="main-menu-dropdown">
<!-- <img class="logo" src="/static/images/logo.png"> -->
<span>{{ title }}</span>
<input type="checkbox" id="main-menu-check">
<label for="main-menu-check" class="show-menu">&#9776;</label>
<div class="main-menu">
<a href="/">Blog</a>
<a href="/archive">Archive</a>
<label for="main-menu-check" class="hide-menu">X</label>
</div>
</div>
<!-- Menu -->
<!-- Content -->
{% block content %}
{% endblock %}