this repo has no description

chore: update layout of the blog

Changed files
+57 -6
content
sass
templates
macros
shortcodes
+2 -1
config.toml
···
# Menu items to display. You define a url and the name of the menu item.
# NOTE: `$BASE_URL/` must be included in the url name.
main_menu = [
-
{url="/post/", name="blog"},
+
{url="https://plan.cat/~hauleth", name=".plan", rel="me"},
{url="https://twitter.com/hauleth", name="twitter", rel="me"},
{url="https://github.com/hauleth", name="github", rel="me"},
+
{url="https://gitlab.com/hauleth", name="gitlab", rel="me"},
]
# Displayed after teaser text for a blog post.
+5 -1
content/_index.md
···
+++
title = "Hauleth"
-
template = "section.html"
+
template = "landing.html"
+
+
sort_by = "date"
+
paginate_by = 1000
+
insert_anchor_links = "right"
+++
{{ readme() }}
+2 -1
content/post/_index.md
···
sort_by = "date"
paginate_by = 1000
insert_anchor_links = "right"
-
template = "index.html"
+
transparent = true
+
redirect_to = "/"
+++
+4
netlify.toml
···
[context.deploy-preview]
command = "zola build --drafts"
+
+
[[redirects]]
+
from = "/post"
+
to = "/"
+2 -1
sass/_main.scss
···
h1, h2, h3, h4, h5, h6 {
line-height: 1.3;
-
&:not(first-child) {
+
&:not(:first-child) {
margin-top: 40px;
}
···
.content {
display: flex;
+
flex-direction: column;
}
hr {
+2
sass/_post.scss
···
}
}
+
&.on-list &-title { --border: none; }
+
&-tags {
display: block;
margin-bottom: 20px;
-1
sass/style.scss
···
--phoneWidth: (max-width: #{$phone-max-width + 1px});
--tabletWidth: (max-width: #{$tablet-max-width + 1px});
}
-
+14
templates/landing.html
···
+
{% extends "index.html" -%}
+
+
{%- block main -%}
+
<section>
+
<article>
+
{{ section.content | safe }}
+
</article>
+
</section>
+
+
<div>
+
<h2>blog</h2>
+
{{ lists::list_pages() }}
+
</div>
+
{%- endblock main -%}
+25
templates/macros/lists.html
···
+
{% macro list_pages() %}
+
<section class="posts">
+
+
{%- for page in paginator.pages -%}
+
+
<div class="post on-list">
+
<h3 class="post-title">
+
<a href="{{ page.permalink }}">{{ page.title }}</a>
+
</h3>
+
+
{{ posts::meta(page=page, author=config.extra.show_author) }}
+
+
<div class="post-content">
+
{% if page.description -%}
+
{{ page.description }}
+
{#- end if-check for description -#}
+
{% elif page.summary -%}
+
{{ page.summary | safe }}
+
{% endif -%}
+
</div>
+
</div>
+
{# End of pagination for-loop #}
+
{%- endfor -%}
+
</section>
+
{% endmacro list_pages %}
+1 -1
templates/shortcodes/readme.md
···
-
## hello
+
# hello
<div class="h-card">