~williamvds/website

website/templates/section.html -rw-r--r-- 743 bytes
54454d97williamvds Update CV and PDF 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% extends "base.html" %}
{% import "macros.html" as macros %}

{% block head %}
	<meta name="description" content="{{ section.description }}">
	<link rel="stylesheet" href="{{get_url(path="section.css")}}"/>
{% endblock head %}

{% block header %}
	{{ macros::nav(path="/" ~ section.path) }}
	<h1>{{ section.title }}</h1>
	<p>{{ section.description }}</p>
{% endblock header %}

{% block content %}
	<main>
		{% for post in section.pages %}
			<div>
				<h2><a href="{{ post.permalink }}">{{ post.title }}</a></h2>
				{%- if post.date -%}
					<span class=date>
						{{ post.date | date(format=config.extra.dateFmt) }}
					</span>
				{%- endif %}
				<p>{{ post.description }}</p>
			</div>
		{% endfor %}
	</main>
{% endblock content %}