init commit
This commit is contained in:
commit
52b82fe03f
13 changed files with 372 additions and 0 deletions
20
templates/index.html
Normal file
20
templates/index.html
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<article class="homepage">
|
||||
{{ section.content | safe }}
|
||||
</article>
|
||||
|
||||
<section class="recent-posts">
|
||||
<h2>Recent Posts</h2>
|
||||
{% set blog = get_section(path="blog/_index.md") %}
|
||||
<ul class="post-list">
|
||||
{% for page in blog.pages | slice(end=5) %}
|
||||
<li>
|
||||
<time datetime="{{ page.date }}">{{ page.date | date(format="%Y-%m-%d") }}</time>
|
||||
<a href="{{ page.permalink }}">{{ page.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue