From 39ed62b9b218242775b043e9eff3e76bb430602d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Michonneau?= Date: Wed, 22 Aug 2018 20:08:58 -0400 Subject: [PATCH] Replace page.root (#310) * replace page.root with 'base' variable that knows path level * deal with case of trailing / in URL * use link to figure out path for logos * simplify path building for favicons * baseurl isn't used in our template so it can removed * use 'base' variable for path root instead of unecessary http request to site.url * replace page.root with 'base' variable that knows path level * deal with case of trailing / in URL * use link to figure out path for logos * simplify path building for favicons * baseurl isn't used in our template so it can removed * use 'base' variable for path root instead of unecessary http request to site.url * rename variable, consolidate comments * rename variable in template files --- _includes/all_keypoints.html | 2 +- _includes/base_path.html | 27 +++++++++++++++++++++++++++ _includes/carpentries.html | 8 ++++---- _includes/episode_navbar.html | 10 +++++----- _includes/favicons.html | 2 +- _includes/javascript.html | 6 +++--- _includes/main_title.html | 2 +- _includes/navbar.html | 28 ++++++++++++++-------------- _includes/syllabus.html | 4 ++-- _layouts/base.html | 11 ++++++----- _layouts/workshop.html | 7 ++++--- bin/boilerplate/_extras/figures.md | 2 +- bin/boilerplate/aio.md | 2 +- 13 files changed, 70 insertions(+), 41 deletions(-) create mode 100644 _includes/base_path.html diff --git a/_includes/all_keypoints.html b/_includes/all_keypoints.html index 8563df3..2af5900 100644 --- a/_includes/all_keypoints.html +++ b/_includes/all_keypoints.html @@ -7,7 +7,7 @@ {% unless episode.break %} - {{ episode.title }} + {{ episode.title }}