Skip to content

Commit f5ff522

Browse files
committed
fix: am I drunk? why was my content outside of the body tag!?
1 parent 87c1cf7 commit f5ff522

File tree

2 files changed

+27
-26
lines changed

2 files changed

+27
-26
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ clean:
66

77
.PHONY: all clean
88

9-
dist/%: data.yaml src/%.jinja2
9+
dist/%: data.yaml src/%.jinja2 src/base.html.jinja2
1010
jinja2 $(patsubst dist/%,src/%,$@).jinja2 data.yaml > $@

src/base.html.jinja2

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,42 +28,43 @@
2828

2929
<body>
3030

31-
</body>
32-
33-
<div class="noto-sans-default">
34-
<div style="
31+
<div class="noto-sans-default">
32+
<div style="
3533
display: flex;
3634
flex-direction: column;
3735
gap: 50px;
3836
align-items: center;
3937
padding: 10px 0 50px 0;">
40-
<div class="item">
41-
{% block heading %}
42-
<h1>blog.mtib.dev</h1>
38+
<div class="item">
39+
{% block heading %}
40+
<h1>blog.mtib.dev</h1>
41+
{% endblock %}
42+
</div>
43+
{% block content %}
44+
FILL ME
4345
{% endblock %}
4446
</div>
45-
{% block content %}
46-
FILL ME
47-
{% endblock %}
4847
</div>
49-
</div>
5048

51-
<style>
52-
.item {
53-
width: min(calc(100vw - 20px), 800px);
54-
}
49+
<style>
50+
.item {
51+
width: min(calc(100vw - 20px), 800px);
52+
}
53+
54+
.item h2 {
55+
margin-bottom: 8px;
56+
}
5557
56-
.item h2 {
57-
margin-bottom: 8px;
58-
}
58+
.app {
59+
padding-top: 20px;
60+
}
5961
60-
.app {
61-
padding-top: 20px;
62-
}
62+
div.item>div.app:nth-of-type(1) {
63+
padding-top: 0px;
64+
}
65+
</style>
66+
67+
</body>
6368

64-
div.item>div.app:nth-of-type(1) {
65-
padding-top: 0px;
66-
}
67-
</style>
6869

6970
</html>

0 commit comments

Comments
 (0)