From e383aed2c259350987c09d199405866707f88005 Mon Sep 17 00:00:00 2001 From: southerntofu Date: Sun, 29 Mar 2020 19:16:45 +0200 Subject: [PATCH] Moved menu and added almost-working source file on every page --- content/_common/{menus/main.md => menu.md} | 4 ++++ templates/index.html | 21 +++++++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) rename content/_common/{menus/main.md => menu.md} (83%) diff --git a/content/_common/menus/main.md b/content/_common/menu.md similarity index 83% rename from content/_common/menus/main.md rename to content/_common/menu.md index 5a70d7f..f6f3b22 100644 --- a/content/_common/menus/main.md +++ b/content/_common/menu.md @@ -5,6 +5,10 @@ --- +[Blog](DUMMIE) + +--- + [Source](https://github.com/kaneroot/dnsmanager) --- diff --git a/templates/index.html b/templates/index.html index 21a6730..2574e3a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,25 +1,22 @@ {% import "widgets.html" as widgets %} {% if section %}{% set lang = section.lang %}{% elif page %}{% set lang = page.lang %}{% else %}{% set lang = false %}{% endif %} - + {{ config.extra.title }} - +
- {{ widgets::menu(content="_common/menus/main.md") }} - {% set header = get_page(path="_common/header.md") %} {{ header.content | markdown | safe }} + {{ widgets::menu(content="_common/menu.md") }}
-
+
{% block main %} {#{% set home = get_section(path="_index.md").content %}#} {% set home = load_data(url="https://raw.githubusercontent.com/KaneRoot/dnsmanager/master/readme.markdown") %} @@ -27,7 +24,15 @@ {% endblock %}