From 73cc0bfc891b93111dcb636f2862bd9cb47e519b Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Fri, 24 Nov 2017 11:39:58 +0100 Subject: [PATCH] Make use of proper relURL everywhere so site works in sub directory. Fix for setting custom height in figure shortcode. --- README.md | 1 + layouts/_default/baseof.html | 4 ++-- layouts/partials/menu.html | 5 +++-- layouts/partials/meta.html | 2 +- layouts/partials/meta_cache.html | 6 +++--- layouts/partials/scripts.html | 2 +- layouts/partials/scripts_cache.html | 2 +- layouts/shortcodes/figure.html | 11 +++++++++-- 8 files changed, 21 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 169fd03..ef1366c 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ params: feedlinks: true # Show feed links in the footer. footer: "A [example.org](https://example.org/) production." icon: "" # Relative path to icon in json feed, no leading slash. + imageMaxWidth: "" # Max width for images added via figure shortcode. jquery: true # Add jQuery languageDir: "" # Set ltr or rtl, defaults to ltr. logo: false # Turn off the logo. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e684f98..b7ebf0e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,9 +14,9 @@
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 723f586..666e1d8 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,11 +1,12 @@ +{{ $home := relURL "/" }} {{ $currentSection := .Section }} {{ $currentID := .UniqueID }}