From e68e992d700d071b5daff740aeb08d74a9f345b6 Mon Sep 17 00:00:00 2001 From: James Shuttleworth Date: Fri, 26 Feb 2021 11:25:17 +0000 Subject: [PATCH] Updated for new material theme file layout --- custom_theme/main.html | 8 -- custom_theme/partials/header.html | 141 +++++++++++-------------- custom_theme/partials/themetoggle.html | 4 +- 3 files changed, 66 insertions(+), 87 deletions(-) delete mode 100644 custom_theme/main.html diff --git a/custom_theme/main.html b/custom_theme/main.html deleted file mode 100644 index 90ca5c3..0000000 --- a/custom_theme/main.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base.html" %} - -{% block scripts %} - {{ super() }} {# Call super to load the parent version of this #} - - {# Then add our part of the script to the end of it #} - -{% endblock %} \ No newline at end of file diff --git a/custom_theme/partials/header.html b/custom_theme/partials/header.html index 222917d..738ba8d 100644 --- a/custom_theme/partials/header.html +++ b/custom_theme/partials/header.html @@ -1,84 +1,71 @@ - - - +{#- + This file was automatically generated - do not edit +-#} +{% set site_url = config.site_url | d(nav.homepage.url, true) | url %} +{% if not config.use_directory_urls and site_url[0] == site_url[-1] == "." %} + {% set site_url = site_url ~ "/index.html" %} +{% endif %}
- - -
\ No newline at end of file + + + + diff --git a/custom_theme/partials/themetoggle.html b/custom_theme/partials/themetoggle.html index 037d0aa..6d9cd45 100644 --- a/custom_theme/partials/themetoggle.html +++ b/custom_theme/partials/themetoggle.html @@ -1,5 +1,4 @@ -
@@ -13,4 +12,5 @@ {% set icon = "octicons/moon-24" %} {% include ".icons/" ~ icon ~ ".svg" %} - \ No newline at end of file + +