From a9acaa669d152e11016022629a9a9a7beb434bee Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 19 Apr 2021 15:01:07 +0800 Subject: [PATCH] Reduce the external files required for gem installation --- 404.html => assets/404.html | 0 feed.xml => assets/feed.xml | 1 + app.js => assets/js/pwa/app.js | 1 + sw.js => assets/js/pwa/sw.js | 1 + robots.txt => assets/robots.txt | 2 +- jekyll-theme-chirpy.gemspec | 2 +- 6 files changed, 5 insertions(+), 2 deletions(-) rename 404.html => assets/404.html (100%) rename feed.xml => assets/feed.xml (99%) rename app.js => assets/js/pwa/app.js (88%) rename sw.js => assets/js/pwa/sw.js (98%) rename robots.txt => assets/robots.txt (82%) diff --git a/404.html b/assets/404.html similarity index 100% rename from 404.html rename to assets/404.html diff --git a/feed.xml b/assets/feed.xml similarity index 99% rename from feed.xml rename to assets/feed.xml index d11f54a..7e2f4e7 100644 --- a/feed.xml +++ b/assets/feed.xml @@ -1,5 +1,6 @@ --- layout: compress +permalink: /feed.xml # Atom Feed, reference: https://validator.w3.org/feed/docs/atom.html --- diff --git a/app.js b/assets/js/pwa/app.js similarity index 88% rename from app.js rename to assets/js/pwa/app.js index b821164..fff0cc6 100644 --- a/app.js +++ b/assets/js/pwa/app.js @@ -1,5 +1,6 @@ --- layout: compress +permalink: '/app.js' --- /* Registering Service Worker */ diff --git a/sw.js b/assets/js/pwa/sw.js similarity index 98% rename from sw.js rename to assets/js/pwa/sw.js index c8074db..1f85e3b 100644 --- a/sw.js +++ b/assets/js/pwa/sw.js @@ -1,5 +1,6 @@ --- layout: compress +permalink: '/sw.js' # PWA service worker --- diff --git a/robots.txt b/assets/robots.txt similarity index 82% rename from robots.txt rename to assets/robots.txt index 681b4c6..45c34e0 100644 --- a/robots.txt +++ b/assets/robots.txt @@ -1,5 +1,5 @@ --- -permalink: robots.txt +permalink: /robots.txt # The robots rules --- diff --git a/jekyll-theme-chirpy.gemspec b/jekyll-theme-chirpy.gemspec index 79bef12..6b1add4 100644 --- a/jekyll-theme-chirpy.gemspec +++ b/jekyll-theme-chirpy.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0").select { |f| - f.match(%r!^((assets\/(css|img|js\/[a-z])|_(includes|layouts|sass|config|data|tabs|plugins))|README|LICENSE|index|feed|app|sw|404|robots)!i) + f.match(%r!^((assets\/(css|img|js\/[a-z])|_(includes|layouts|sass|config|data|tabs|plugins))|README|LICENSE|index)!i) } spec.metadata = {