From 563c82dd5201bef76f5a9fb683c097bc9127d001 Mon Sep 17 00:00:00 2001 From: Jeffrey Tse Date: Sat, 14 Sep 2019 12:57:55 +0800 Subject: feat: add website sitemap --- _config.yml | 4 ++++ jekyll-theme-yat.gemspec | 1 + 2 files changed, 5 insertions(+) diff --git a/_config.yml b/_config.yml index b8ce4a4..ba070b4 100644 --- a/_config.yml +++ b/_config.yml @@ -28,6 +28,9 @@ yat: # Google analytics # google_analytics: [Tracking ID] +# If you want to generate website sitemap, you can set true +# sitemap: true + # Translate languges # langs refer to https://cloud.google.com/translate/docs/languages # translate_langs: @@ -109,4 +112,5 @@ markdown: kramdown plugins: - jekyll-feed - jekyll-seo-tag + - jekyll-sitemap - jekyll-paginate diff --git a/jekyll-theme-yat.gemspec b/jekyll-theme-yat.gemspec index 8f3d8ea..de35ecf 100644 --- a/jekyll-theme-yat.gemspec +++ b/jekyll-theme-yat.gemspec @@ -20,5 +20,6 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency "jekyll", "~> 3.8" spec.add_runtime_dependency "jekyll-feed", "~> 0.9" spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.1" + spec.add_runtime_dependency "jekyll-sitemap", "~> 1.3" spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" end -- cgit v1.2.3