Add date field
This commit is contained in:
parent
d42ba23c94
commit
8eff4f45ac
|
@ -22,6 +22,7 @@ body {
|
|||
<h3><i>But I don't care</i></h3>
|
||||
<p>This website may look garbage but to your browser it's beautiful.
|
||||
<br>It uses semantic HTML5 tags so your browser knows what on Earth it's looking at.
|
||||
<br>(If I'm being a hypocrite and there's something wrong with the HTML, send a pull request.)
|
||||
<br><aside style="padding-left: 10%;"><i><sub>at least it's not using <code><div id="content"></code> oh god</sub></i></aside>
|
||||
</p>
|
||||
<!--<cite><a href="http://motherfuckingwebsite.com/">motherf*ckingwebsite.com (contains profanity)</a></cite>-->
|
||||
|
@ -52,7 +53,7 @@ body {
|
|||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="/psots/hello-world">Hello, World!</a>
|
||||
<a href="/psots/hello-world">Hello, World!</a> ( March 15, 2022 )
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
3
index.j2
3
index.j2
|
@ -22,6 +22,7 @@ body {
|
|||
<h3><i>But I don't care</i></h3>
|
||||
<p>This website may look garbage but to your browser it's beautiful.
|
||||
<br>It uses semantic HTML5 tags so your browser knows what on Earth it's looking at.
|
||||
<br>(If I'm being a hypocrite and there's something wrong with the HTML, send a pull request.)
|
||||
<br><aside style="padding-left: 10%;"><i><sub>at least it's not using <code><div id="content"></code> oh god</sub></i></aside>
|
||||
</p>
|
||||
<!--<cite><a href="http://motherfuckingwebsite.com/">motherf*ckingwebsite.com (contains profanity)</a></cite>-->
|
||||
|
@ -54,7 +55,7 @@ body {
|
|||
<ul>
|
||||
{% for post in blog.posts %}
|
||||
<li>
|
||||
<a href="{{ post.permalink }}">{{ post.title }}</a>
|
||||
<a href="{{ post.permalink }}">{{ post.title }}</a> ( {{ post.date }} )
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
"posts": [
|
||||
{
|
||||
"title": "Hello, World!",
|
||||
"permalink": "/psots/hello-world"
|
||||
"permalink": "/psots/hello-world",
|
||||
"date": "March 15, 2022"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue