Verified Commit 1cae3482 authored by Louis-Philippe Véronneau's avatar Louis-Philippe Véronneau
Browse files

do the same thing for blog + all_posts

parent b70dee27
...@@ -4,10 +4,12 @@ ...@@ -4,10 +4,12 @@
<title>{% block title %}{{ SITENAME }} - {{ page.title }}{% endblock title %}</title> <title>{% block title %}{{ SITENAME }} - {{ page.title }}{% endblock title %}</title>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div id="article">
<h1>All posts</h1> <h1>All posts</h1>
<ul id="post-list"> <ul id="post-list">
{% for article in articles %} {% for article in articles %}
<li>{{ article.date|strftime('%Y-%m-%d') }} - <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li> <li>{{ article.date|strftime('%Y-%m-%d') }} - <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
</div>
{% endblock content %} {% endblock content %}
...@@ -4,25 +4,27 @@ ...@@ -4,25 +4,27 @@
<title>{% block title %}{{ SITENAME }} - Blog{% endblock title %}</title> <title>{% block title %}{{ SITENAME }} - Blog{% endblock title %}</title>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<h1>This is my blog!</h1> <div id="article">
<p>This blog has no common thread, but there are good chances you&#39;ll find some post about:</p> <h1>This is my blog!</h1>
<ul> <p>This blog has no common thread, but there are good chances you&#39;ll find some post about:</p>
<li>free software (mainly about free software in fact)</li> <ul>
<li>some of other slice of life things, often food related</li> <li>free software (mainly about free software in fact)</li>
<li>some of other slice of life things, often food related</li>
</ul> </ul>
<p>Some of the post are also aggregated from my <a href="https://libre.sogeecom.org/blog">job&#39;s tech blog</a>.</p> <p>Some of the post are also aggregated from my <a href="https://libre.sogeecom.org/blog">job&#39;s tech blog</a>.</p>
<h1>Recent posts</h1> <h1>Recent posts</h1>
<ul id="post-list"> <ul id="post-list">
{% for article in articles_page.object_list %} {% for article in articles_page.object_list %}
<li>{{ article.date|strftime('%Y-%m-%d') }} - <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li> <li>{{ article.date|strftime('%Y-%m-%d') }} - <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
<p>See <a href="{{ SITEURL }}/blog-all">all the posts</a>. <p>See <a href="{{ SITEURL }}/blog-all">all the posts</a>.
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
</div>
{% endblock content %} {% endblock content %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment