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
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