dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
site/templates/index.html (637B)
1{%- extends "base.html" -%} {%- block title %}
2<title>{{ config.extra.author }}</title>
3{%- endblock title -%} {%- block main -%}
4<article class="post">
5 <h1 class="post-title">{{ section.title }}</h1>
6 <article class="post">
7 <div class="post-content">{{ section.content | safe }}</div>
8 </article>
9
10 <h2 class="post-title post-title-sub">Recent Posts</h2>
11 {% set section = get_section(path="blog/_index.md") %}
12 <ul class="post-list">
13 {% for page in section.pages -%} {%- if loop.index0 < 5 -%}
14 <li>{{ posts::meta(page=page, list=true) }}</li>
15 {%- endif -%} {%- endfor %}
16 </ul>
17</article>
18{%- endblock main -%}