all repos — homestead @ b5b64f817f5e62323aff60681a343976a5c54a62

Code for my website

Port theme to zola template

Alan Pearce
commit

b5b64f817f5e62323aff60681a343976a5c54a62

parent

9e83e3da5af480f5ce1492f820ad035c7a5ea9b4

1 file changed, 25 insertions(+), 0 deletions(-)

changed files
A templates/base.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html> +<html lang="{{ config.default_language }}"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title {%- if current_path == '/' %} class="p-name"{% endif %}>{% block title %}{{ section.title }} | {{ config.title }}{% endblock %}</title> + <link rel="stylesheet" href="/css/style.css" /> + {%- if config.generate_feed %} + {%- block rss %} + <link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}"> + {%- endblock %} + {%- endif %} + </head> + <body> + <nav> + <ul> + {%- for item in config.extra.menu.main %} + <li><a {%- if item.url == "/" %} class="author"{% endif %} href="{{ item.url | safe }}">{{ item.name }}</a></li> + {%- endfor %} + </ul> + </nav> + {% block main %}{% endblock %} + <footer>{{ config.extra.footer | safe }}</footer> + </body> +</html>