Add date field

This commit is contained in:
TheTechRobo 2022-03-15 21:11:12 -04:00
parent d42ba23c94
commit 8eff4f45ac
3 changed files with 6 additions and 3 deletions

View File

@ -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>&lt;div id="content"&gt;</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>

View File

@ -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>&lt;div id="content"&gt;</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>

View File

@ -5,7 +5,8 @@
"posts": [
{
"title": "Hello, World!",
"permalink": "/psots/hello-world"
"permalink": "/psots/hello-world",
"date": "March 15, 2022"
}
]
}