From 69987faa91e1175a3a26b090d759de84e8573360 Mon Sep 17 00:00:00 2001 From: "F. Malina" Date: Sun, 24 Nov 2024 22:37:57 +0100 Subject: [PATCH] Updated default template --- page.yml | 12 ++++++------ page/templates/page.html | 39 ++++++++++++++++++--------------------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/page.yml b/page.yml index a5f4d1d..4d1d52a 100755 --- a/page.yml +++ b/page.yml @@ -1,12 +1,12 @@ # An example config to generate your site # Copy it and change variables as needed -source: . # Source folder with markdown files, '.' means current folder -target: ../my_site # Destination folder for static site, .. means level up relative to current folder -tpl: ./_tpl # Custom template folder, './_tpl' is a good convention -ext: '' # File extension, can be '.htm'/'.html', empty is best +source: . # Source folder with markdown files, '.' is current folder +target: my_site # Destination folder for static site +tpl: templates # Custom template folder +ext: '.html' # File extension, can be '.htm', '.html' or empty '' ctx: # Extra context to pass to templates - site_name: My site - site_url: https://unilexicon.com + site_name: My site powered by page + site_url: https://fmalina.github.io/page repo_url: https://github.com/[github username]/[repo name]/blob/main/ # for edit links in development dev: true # show/hide editing links diff --git a/page/templates/page.html b/page/templates/page.html index e7787a2..5affd92 100755 --- a/page/templates/page.html +++ b/page/templates/page.html @@ -1,47 +1,44 @@ - + {% block title %}{{ page.title }}{% if page.author %} by {{ page.author }}{% endif %} - {{ site_name }}{% endblock %} - + {% block head %} - + {% endblock %}
{{ site_name }}
- {% block breadcrumb %} {% if page.parent %} {% endif %} {% endblock %} {% block content %} -

{{ page.title }}

- {% if page.author %} -
By {{ page.author }}
- {% endif %} - - {% if page.slug == 'this' %} - - {% endif %} - - {{ page.body }} - {% include 'nav.html' %} - {% if dev %}

edit{% endif %} +

{{ page.title }}

+{% if page.author %} +
By {{ page.author }}
+{% endif %} +{% if page.slug == 'this' %} {% endif %} +{{ page.body|safe }} +{% include 'nav.html' %} +{% if dev %}

edit{% endif %} {% endblock %} -

- +