From feba36a4675f996bf93b921bd6e6d8c5a9203ad1 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Fri, 13 Aug 2021 11:42:54 -0700 Subject: [PATCH] Make css and js load correctly if site rendered in a subdirectory to make showig changes from {user}.github.io/choosealicense.com possible, as suggested by @waldyrious in https://github.com/github/choosealicense.com/pull/833#issuecomment-860777503 Note links within the site will still break in this scenario, would need relative_url sprinkled in all internal links to avoid. Non-goal for now. --- _includes/footer.html | 8 ++++---- _includes/header.html | 4 ++-- assets/css/application.scss | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index 220b2e9..5c4d88d 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -16,9 +16,9 @@ {% if page.collection == "licenses" or page.class == "license-types" %} - - - + + + - + {% endif %} diff --git a/_includes/header.html b/_includes/header.html index 06ee4e0..a3d4f57 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -5,8 +5,8 @@ - - + +