From 5e7820f8eb8140142865f05ff784ea14f2ed0579 Mon Sep 17 00:00:00 2001 From: Cassidy James Blaede Date: Tue, 5 Nov 2024 16:44:09 -0700 Subject: [PATCH] Config: default to no trailing slash --- _config.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/_config.yaml b/_config.yaml index 8c54c839..0dadb7ad 100644 --- a/_config.yaml +++ b/_config.yaml @@ -3,7 +3,7 @@ title: Endless Apps summary: Learning and educational apps created specifically for Endless OS image: "/images/endless.png" separator: "⋅" -baseurl: "/" +baseurl: "" color: primary: "#f15a22" primary-text: "#fff" @@ -12,7 +12,13 @@ collections: apps: title: Apps output: true - permalink: /:path/ + # Omit the trailing slash to create slightly cleaner links and make it a bit + # easier to grab the app ID off the end of the URL. This causes Jekyll to + # generate pages as `com.example.app.html` instead of `com.example.app/index.html`. + # Since Jekyll and GitHub Pages allow omitting the extension, URLs become + # `/com.example.app` instead of `/com.example.app/`. Jekyll and GitHub Pages + # still redirect `/com.example.app/` to `/com.example.app` for us. + permalink: /:path defaults: - scope: @@ -23,7 +29,6 @@ defaults: markdown: kramdown -permalink: pretty sass: style: compressed