blob: 4b8dced77248bf865b12e6f171cdc954488a7f5e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<!DOCTYPE html>
<html>
<body>
{% if article %}
<header>
<h1>
{{ article_title }}
</h1>
<div>
<h3>{{ article_description }}</h3>
<p>{{ article_date }}</p>
</div>
</header>
<main>
<a href="/">« Go Back</a>
{{ article_text }}
</main>
{% else %}
<header>
<h1>
{{ blog_name }}
</h1>
<div>
<h3>{{ welcome_text }}</h3>
</div>
</header>
{{ article_index }}
{% endif %}
<footer>
{{ footer }}
</footer>
</body>
<style>
body {
font-family: sans-serif;
}
div.articles {
background-color: #ddd;
padding: 5px;
}
header {
height: min-content;
}
header h1 {
border-bottom: 2px solid #eee;
margin: 0;
}
header div {
display: flex;
flex-direction: row;
}
header p {
font-size: smaller;
padding: 10px 0 0 5px;
}
main {
background-color: #ddd;
padding: 5px;
display: block;
}
</style>
</html>
|