Skip to content

Commit c28c514

Browse files
Fix article info display
1 parent eacb74c commit c28c514

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

articles/introduction/article.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: "Introduction"
22
content: "article.md"
3-
author: "MTA Team"
3+
author: "multitheftauto"
44
date: "January 1, 2025"
55
revisions: []
66
assets: []
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: "Getting Started"
22
content: "article.md"
3-
author: "MTA Team"
3+
author: "multitheftauto"
44
date: "January 1, 2025"
55
revisions: []
66
assets: []

articles/privacy/article.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: "Privacy policy"
22
content: "article.md"
3-
author: "MTA Team"
3+
author: "multitheftauto"
44
date: "January 1, 2025"
55
revisions: []
66
assets: []

web/resources/article.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ article.html_content }}
22

3-
<div style="text-align: left; font-size: 0.8em; color: #b5b5b5; margin-top: 4em;">
3+
<div style="text-align: left; font-size: 0.8em; color: #b5b5b5; position: absolute; bottom: 0; padding-bottom: 20px; width: 100%;">
44
<div>Article: <strong>{{ article.title }}</strong></div>
5-
<div style="margin-top: 0.5em;">Written by <em>{{ article.author }}</em> on {{ article.date }}</div>
5+
<div style="margin-top: 0.5em;">Written by <i class="fab fa-github"></i> <a href="https://github.com/multitheftauto/{{ article.author }}" rel="noopener" target="_blank">{{ article.author }}</a> on {{ article.date }}</div>
66
</div>

web/resources/assets/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ a:hover {
4343
text-decoration: none;
4444
}
4545

46+
h1 {
47+
padding: 0;
48+
margin: 0;
49+
}
4650
p {
4751
line-height: 1.5em;
4852
}
@@ -196,4 +200,5 @@ footer p {
196200
main {
197201
padding: 20px;
198202
text-align: left;
203+
position: relative;
199204
}

0 commit comments

Comments
 (0)