lightspeed/templates/index.html

72 lines
2.3 KiB
HTML
Raw Normal View History

2020-04-13 19:19:58 +00:00
{% import "macros.html" as macros %}
<!DOCTYPE html>
<html lang="en">
{% block head %}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% block title %}{{ config.title }} &middot; {{ config.description }}{% endblock title %}</title>
<meta name="description" content="{% block description %}{{ config.description }}{% endblock description %}" />
2020-04-18 14:49:03 +00:00
{% if config.extra.author %}<meta name="author" content="{{ config.extra.author }}" />{% endif %}
2020-04-13 19:19:58 +00:00
<link rel="shortcut icon" href="{{ get_url(path="favicon.ico") | safe }}" />
2020-08-29 16:22:52 +00:00
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml") | safe }}">
2020-04-13 19:19:58 +00:00
2020-04-18 14:49:03 +00:00
{% set data = load_data(path="public/style.css", format="plain") -%}
2020-04-13 19:19:58 +00:00
<style>{{ data | safe }}</style>
2020-07-18 17:24:55 +00:00
{% block extra_head %}
{% endblock extra_head %}
2020-04-13 19:19:58 +00:00
</head>
{% endblock head %}
<body>
<main id="main" role="main">
{% block header %}
<header role="banner">
<h3 style="margin-top:0;">
<a href="{{ config.base_url | safe }}" title="Home">{{ config.title }}</a>
<br /><small>{{ config.description }}</small>
</h3>
</header>
<hr />
{% endblock header %}
{% block content %}
<ul class="homepage-list" style="list-style:none;padding:1rem 0;">
2020-04-14 18:42:35 +00:00
{% for post in section.pages %}
{{ macros::post_in_list(post=post) }}
2020-04-13 19:19:58 +00:00
{% endfor %}
</ul>
{% endblock content %}
{% block footer %}
<footer role="contentinfo">
<hr />
2020-04-19 09:03:16 +00:00
{% if config.extra.footer_links %}
2020-04-13 19:19:58 +00:00
<nav style="margin-bottom:1rem;" role="navigation">
{% for item in config.extra.footer_links %}
<a href="{{ item.url | safe | replace(from="$BASE_URL", to=config.base_url) }}">{{ item.name }}</a>
{% if loop.last %}{% else %}
<span>&middot;</span>
{% endif %}
{% endfor %}
</nav>
2020-04-19 09:03:16 +00:00
{% endif %}
2020-04-13 19:19:58 +00:00
<small>
2020-04-14 18:42:35 +00:00
Built with <a href="https://www.getzola.org/">Zola</a>
2020-04-18 14:49:03 +00:00
{%- if config.extra.netlify %} & hosted on <a href="https://netlify.com">Netlify</a>{% endif -%}
2020-04-14 18:42:35 +00:00
.<br />
2020-04-13 19:19:58 +00:00
Maintained with &hearts; for the web.
</small>
</footer>
{% endblock footer %}
</main>
</body>
</html>