feat: Update templates and styling
All checks were successful
Build / build (push) Successful in 18s
All checks were successful
Build / build (push) Successful in 18s
This commit is contained in:
parent
b834fbac92
commit
ab79feb4ab
1 changed files with 432 additions and 203 deletions
|
|
@ -3,7 +3,7 @@
|
|||
{% block content %}
|
||||
<div class="index-content">
|
||||
<div class="title">
|
||||
<img src="/images/logo.png" alt="logo" />
|
||||
<img src="/images/logo.png" alt="" />
|
||||
<h1>{{ config.title }}</h1>
|
||||
</div>
|
||||
<div>
|
||||
|
|
@ -15,13 +15,15 @@
|
|||
<h2>Latest blog posts</h2>
|
||||
<ul class="blog-list">
|
||||
{% set blog = get_section(path="blog/_index.md") %}
|
||||
{% for page in blog.pages | slice(end=5) %}
|
||||
<li class="blog-item">
|
||||
<div>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||
</div>
|
||||
<span class="blog-item-meta">{{ page.date }}</span>
|
||||
</li>
|
||||
{% for page in blog.pages %}
|
||||
{% if loop.index <= 5 %}
|
||||
<li class="blog-item">
|
||||
<div>
|
||||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||
</div>
|
||||
<span class="blog-item-meta">{{ page.date | date(format="%Y-%m-%d") }}</span>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue