mirror of
https://github.com/MathiasDPX/blog.git
synced 2025-05-10 07:33:09 +00:00
publish v1
This commit is contained in:
commit
761e6d810a
21 changed files with 526 additions and 0 deletions
15
templates/articles/loremipsum.html
Normal file
15
templates/articles/loremipsum.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
<title>Lorem Ipsum</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Lorem Ipsum</h1>
|
||||
<h4><time datetime="2025-01-23T18:41:03Z">January 23th 2025</time></h4>
|
||||
<hr>
|
||||
|
||||
<p><a href="https://www.lipsum.com" target="_blank">Lorem ipsum</a> dolor sit amet, consectetur adipiscing elit. Nulla mattis, est et laoreet efficitur, nisi leo volutpat nibh, et rutrum erat urna vel nisl. Aenean sodales lorem quis dolor sodales, at convallis purus convallis. Nam interdum tincidunt nunc, sed molestie lectus. Integer a rhoncus enim, eu cursus lacus.</p>
|
||||
|
||||
<p>Donec dignissim consequat augue mattis ornare. Vivamus feugiat odio in sagittis consectetur. Proin nec suscipit dolor, ut consectetur nisi. Aliquam ut ex dapibus, volutpat justo sit amet, dignissim tellus. Curabitur placerat tempor neque congue sollicitudin. Praesent elementum in ligula id semper.</p>
|
||||
{% endblock %}
|
38
templates/base.html
Normal file
38
templates/base.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='base.css') }}">
|
||||
<link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon.png') }}" />
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrap">
|
||||
<div id="head">
|
||||
<header>
|
||||
<h1>Mathias</h1>
|
||||
</header>
|
||||
<nav id="navbar">
|
||||
<a href="/rss">rss</a>
|
||||
<a href="{{ url_for('contact') }}">contact</a>
|
||||
<a href="/">home</a>
|
||||
</nav>
|
||||
</div>
|
||||
<main id="main">
|
||||
<article>
|
||||
{% block content %}{% endblock %}
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<footer id="footer">
|
||||
<div id="footer-title">0x03</div>
|
||||
<p>
|
||||
© Mathias DUPEUX<br>
|
||||
<i><b>very</b></i> inspired by <a href="https://jvns.ca" target="_blank">jvns.ca</a><br>
|
||||
Opensource at <a href="https://github.com/MathiasDPX/blog" target="_blank">MathiasDPX/blog</a>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
13
templates/contact.html
Normal file
13
templates/contact.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
<title>Contact</title>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<h1>Contact</h1>
|
||||
<hr>
|
||||
Mail: <a href="mailto:mathias@dupeux.net">mathias@dupeux.net</a>
|
||||
|
||||
{% endblock %}
|
10
templates/editor/demo.html
Normal file
10
templates/editor/demo.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
<title>Demo</title>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{{ written }}
|
||||
{% endblock %}
|
18
templates/editor/editor.html
Normal file
18
templates/editor/editor.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Code Editor</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='editor.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="code" spellcheck="false" placeholder="<!DOCTYPE html>"></textarea>
|
||||
<iframe id="preview" width="100%" height="100%"></iframe>
|
||||
<div class="switch-container">
|
||||
<label for="previewSwitch">Preview</label>
|
||||
<input type="checkbox" id="previewSwitch">
|
||||
</div>
|
||||
<script src="{{ url_for('static', filename='editor.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
15
templates/editor/preview.html
Normal file
15
templates/editor/preview.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='typography.css') }}">
|
||||
<link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon.png') }}" />
|
||||
<title>Preview</title>
|
||||
</head>
|
||||
<body>
|
||||
<main id="main">
|
||||
{{ content }}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
37
templates/home.html
Normal file
37
templates/home.html
Normal file
|
@ -0,0 +1,37 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
<title>Home</title>
|
||||
<style>
|
||||
ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
li {
|
||||
padding-left: 1.5em;
|
||||
padding-bottom: 0.2em;
|
||||
}
|
||||
h3 {
|
||||
padding-bottom: 0.1em;
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
👋, Welcome here, you can see it's a mess
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
{% for category_name, articles in categories %}
|
||||
<h3>{{ category_name }}</h3>
|
||||
<ul>
|
||||
{% for article in articles %}
|
||||
<li><a href="{{ url_for('article', article_id=article.template) }}">{{article.title}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue