init zola
This commit is contained in:
parent
eca1372c58
commit
bca79105f2
14 changed files with 158 additions and 0 deletions
17
templates/base.html
Normal file
17
templates/base.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script src="https://unpkg.com/hyperscript.org@0.9.12"></script>
|
||||
<link rel="stylesheet" href="./style.css">
|
||||
<title>Sondell</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
5
templates/footer.html
Normal file
5
templates/footer.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% endblock content %}
|
||||
32
templates/index.html
Normal file
32
templates/index.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title">
|
||||
Selfhosted Services
|
||||
</h1>
|
||||
|
||||
<ul class="list">
|
||||
{% for card_path in section.subsections %}
|
||||
{% set card = get_section(path=card_path) %}
|
||||
<div class="card trunc" _="on click toggle .trunc on me">
|
||||
<img class="icon" src="{{ card.extra.icon }}">
|
||||
<h2> {{ card.title }} </h2>
|
||||
<p class="text">
|
||||
{{ card.content | markdown(inline=true) | safe }}
|
||||
</p>
|
||||
<div class="footer" _="on click halt the event's bubbling">
|
||||
{% set footer = get_section(path=card.subsections[0]) %}
|
||||
{{ footer.content | markdown(inline=true) | safe }}
|
||||
<div>
|
||||
{% for page in footer.pages %}
|
||||
{{ page.content | markdown(inline=true) | safe }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue