Initial Commit
This commit is contained in:
7
templates/404.html
Normal file
7
templates/404.html
Normal file
@ -0,0 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block main %}
|
||||
<h1>404</h1>
|
||||
|
||||
<p>The page you requested has not been found in this website.</p>
|
||||
{% endblock %}
|
24
templates/base.html
Normal file
24
templates/base.html
Normal file
@ -0,0 +1,24 @@
|
||||
{% set root = get_section(path = "_index.md") %}
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="generator" content="zola" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
<title>fmouhart.epheme.re</title>
|
||||
<link rel="stylesheet" href="{{ get_url(path="/style.css") }}" />
|
||||
</head>
|
||||
<body>
|
||||
{% block header %}
|
||||
{% include "header.html" ignore missing %}
|
||||
{% endblock %}
|
||||
{% block nav %}
|
||||
{% include "nav.html" ignore missing %}
|
||||
{% endblock %}
|
||||
{% block main %}
|
||||
{% endblock %}
|
||||
{% block footer %}
|
||||
{% include "footer.html" ignore missing %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
3
templates/footer.html
Normal file
3
templates/footer.html
Normal file
@ -0,0 +1,3 @@
|
||||
<footer>
|
||||
fmouhart.epheme.re
|
||||
</footer>
|
3
templates/header.html
Normal file
3
templates/header.html
Normal file
@ -0,0 +1,3 @@
|
||||
<header id="title-block-header">
|
||||
<h1 class="title">Fabrice Mouhartem</h1>
|
||||
</header>
|
5
templates/index.html
Normal file
5
templates/index.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block main %}
|
||||
{{ section.content | markdown(inline = true) | safe }}
|
||||
{% endblock %}
|
9
templates/nav.html
Normal file
9
templates/nav.html
Normal file
@ -0,0 +1,9 @@
|
||||
<nav>
|
||||
<menu>
|
||||
<li><a class="nav_selected" href="/">Home</a></li>
|
||||
{% for subsection in root.subsections %}
|
||||
{% set subsection = get_section(path=subsection, metadata_only=true) %}
|
||||
<li><a href="{{ subsection.permalink }}">{{ subsection.title }}</a></li>
|
||||
{% endfor %}
|
||||
</menu>
|
||||
</nav>
|
14
templates/page.html
Normal file
14
templates/page.html
Normal file
@ -0,0 +1,14 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}
|
||||
<header id="title-block-header">
|
||||
<h1 class="title">Fabrice Mouhartem's Webpage</h1>
|
||||
<p class="date">{{ page.date }}</p>
|
||||
</header>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<h1>{{ section.extra.hero.title | markdown(inline = true) | safe }}</h1>
|
||||
<p>{{ section.extra.hero.description | markdown(inline = true) | safe }}</p>
|
||||
<h1>{{ section.extra.news.title | safe }}</h1>
|
||||
{% endblock %}
|
5
templates/section.html
Normal file
5
templates/section.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block main %}
|
||||
{{ section.content | markdown(inline = true) | safe }}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user