diff options
author | Nicolas Dato <nicolas.dato@gmail.com> | 2023-06-03 23:11:42 -0300 |
---|---|---|
committer | Nicolas Dato <nicolas.dato@gmail.com> | 2023-06-03 23:11:42 -0300 |
commit | 6e4ba7778578e32f6bad2fd67025cbbad7bce7d9 (patch) | |
tree | 9962dbc77d9164f580c09e3be30d2f79a408caf5 /zola/templates | |
parent | 2cd04f90a08c18b586c9c973a2c21587125ed72f (diff) | |
download | ndato.com-6e4ba7778578e32f6bad2fd67025cbbad7bce7d9.tar.gz ndato.com-6e4ba7778578e32f6bad2fd67025cbbad7bce7d9.tar.bz2 |
agrego archivos para zola
Diffstat (limited to 'zola/templates')
-rw-r--r-- | zola/templates/404.html | 7 | ||||
-rw-r--r-- | zola/templates/base.html | 51 | ||||
-rw-r--r-- | zola/templates/index.html | 11 | ||||
-rw-r--r-- | zola/templates/page.html | 17 | ||||
-rw-r--r-- | zola/templates/section.html | 24 |
5 files changed, 110 insertions, 0 deletions
diff --git a/zola/templates/404.html b/zola/templates/404.html new file mode 100644 index 0000000..2cc8577 --- /dev/null +++ b/zola/templates/404.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block title %}404 - Not Found{% endblock %} +{% block header %}404 - Not Found{% endblock %} +{% block navigation %}<a href="/">Home</a>{% endblock %} +{% block content %}{% endblock %} + diff --git a/zola/templates/base.html b/zola/templates/base.html new file mode 100644 index 0000000..6871cbe --- /dev/null +++ b/zola/templates/base.html @@ -0,0 +1,51 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8" /> + <link rel="icon" type="image/x-icon" sizes="256x256" href="/favicon.ico"> + <link rel="stylesheet" href="/style.css" type="text/css"> + <title>ndato - {% block title %}{% endblock %}</title> + </head> + <body> + <section class="header" title="Header"> + <header> + <img src="/lambda.svg" class="logo" alt="Lambda" title="Lambda Logo"> + ndato.com.ar + </header> + <nav class="navigation">{% block navigation %}{% endblock %}</nav> + </section> + <div class="main"> + <section class="left column" title="Left Column"> + <header>Menu</header> + <nav title="Navigation Menu"> + <menu> + <li><a href="/">Home</a></li> + <li><a href="/cv">CV</a></li> + <li><a href="/articles">Articles</a></li> + <li><a href="/blog">Blog</a></li> + <li><a href="/gitweb">Git</a></li> + <li><a href="/etc">Etc</a></li> + <li><a href="/contact">Contact</a></li> + </menu> + </nav> + <header>Links</header> + <nav title="Extra Links"> + <ul> + <li><a href="https://robertoaley.com/">Roberto Aley</a></li> + </ul> + </nav> + + </section> + <section class="content column" title="Content Column"> + <header>{% block header %}{% endblock %}</header> + <main title="Main Content"> + {% block content %}{% endblock %} + </main> + </section> + </div> + <section title="Footer"> + <footer>ndato.com.ar - Nicolás Dato - 2023</footer> + </section> + </body> +</html> + diff --git a/zola/templates/index.html b/zola/templates/index.html new file mode 100644 index 0000000..56e1b75 --- /dev/null +++ b/zola/templates/index.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block title %}{{ section.title }}{% endblock %} +{% block header %}{{ section.title }}{% endblock %} +{% block navigation %}<a href="{{ section.path | safe }}">{{ section.title }}</a>{% endblock %} +{% block content %} +<article title="{{ section.title }}"> + {{ section.content | safe }} +</article> +{% endblock %} + diff --git a/zola/templates/page.html b/zola/templates/page.html new file mode 100644 index 0000000..180bd84 --- /dev/null +++ b/zola/templates/page.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block title %}{{ page.title }}{% endblock %} +{% block header %}{{ page.title }}{% endblock %} +{% block navigation %} + {% for a in page.ancestors %} + {% set s = get_section(path=a) %} + {% if loop.index != 1 %} > {% endif %}<a href="{{ s.path | safe }}">{{ s.title }}</a> + {% endfor %} + > <a href="{{ page.path | safe }}">{{ page.title }}</a> +{% endblock %} +{% block content %} +<article title="{{ page.title }}"> + {{ page.content | safe }} +</article> +{% endblock %} + diff --git a/zola/templates/section.html b/zola/templates/section.html new file mode 100644 index 0000000..11e7e6a --- /dev/null +++ b/zola/templates/section.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} + +{% block title %}{{ section.title }}{% endblock %} +{% block header %}{{ section.title }}{% endblock %} +{% block navigation %} + {% for a in section.ancestors %} + {% set s = get_section(path=a) %} + {% if loop.index != 1 %} > {% endif %}<a href="{{ s.path | safe }}">{{ s.title }}</a> + {% endfor %} + > <a href="{{ section.path | safe }}">{{ section.title }}</a> +{% endblock %} +{% block content %} +<dl title="List of {{ section.title }} entries"> +{% for page in section.pages %} +<dt> + <p><a href="{{ page.path | safe}}">{{ page.title }}</a></p> +</dt> +<dd> + <p>{{ page.description }} <em><date datetime="{{ page.updated }}">{{ page.updated }}</date></em></p> +</dd> +{% endfor %} +</dl> +{% endblock %} + |