From 7a8925743878d96a2cef0ec61b13356985962bf8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 29 Dec 2024 09:51:08 -0800 Subject: format: templates --- templates/base.html | 16 +++------------- templates/index.html | 3 +-- templates/page.html | 6 +----- templates/resume.html | 8 +------- 4 files changed, 6 insertions(+), 27 deletions(-) diff --git a/templates/base.html b/templates/base.html index 729abb9..5537a36 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,23 +1,13 @@ - + - + - + {% block title %}{{- config.title -}}{% endblock title %} diff --git a/templates/index.html b/templates/index.html index a488970..cf83d26 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,4 @@ -{% extends "base.html" %} {%- block content -%} {% if section.content %} {{ -section.content | safe }} {% endif %} +{% extends "base.html" %} {%- block content -%} {% if section.content %} {{ section.content | safe }} {% endif %}
diff --git a/templates/page.html b/templates/page.html index f0f9556..c29d871 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,8 +1,4 @@ -{% extends "base.html" %} - -{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} - -{% block content-%} +{% extends "base.html" %} {% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} {% block content-%}

{{ page.title }}

diff --git a/templates/resume.html b/templates/resume.html index f64f631..84449c5 100644 --- a/templates/resume.html +++ b/templates/resume.html @@ -1,7 +1 @@ -{% extends "base.html" %} - -{% block content %} - -{{ section.content | safe }} - -{% endblock %} +{% extends "base.html" %} {% block content %} {{ section.content | safe }} {% endblock %} -- cgit v1.2.3