{{ page.title }}
+an archive of posts in this category
+{{ post.date | date: "%b %-d, %Y" }} | ++ {{ post.title }} + | +
---|
diff --git a/Gemfile b/Gemfile index bac9010a0936..31a554ce2bec 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,7 @@ source 'https://rubygems.org' group :jekyll_plugins do gem 'jekyll' + gem 'jekyll-archives' gem 'jekyll-diagrams' gem 'jekyll-email-protect' gem 'jekyll-feed' diff --git a/_config.yml b/_config.yml index 82ef47c5594a..85991e9f867b 100644 --- a/_config.yml +++ b/_config.yml @@ -134,21 +134,44 @@ keep_files: # Plug-ins plugins: - - jekyll/scholar + - jekyll-archives - jekyll-diagrams - jekyll-email-protect - jekyll-feed - jekyll-github-metadata - jekyll-paginate-v2 - jekyll-responsive-image + - jekyll/scholar - jekyll-sitemap - jekyll-target-blank - jekyll-twitter-plugin - jemoji +# Sitemap settings +defaults: + - scope: + path: "assets/**/*.*" + values: + sitemap: false + # Extras github: [metadata] +# ----------------------------------------------------------------------------- +# Jekyll Archives +# ----------------------------------------------------------------------------- + +jekyll-archives: + enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them). + layouts: + year: archive-year + tag: archive-tag + category: archive-category + permalinks: + year: '/blog/:year/' + tag: '/blog/tag/:name/' + category: '/blog/category/:name/' + # ----------------------------------------------------------------------------- # Jekyll Scholar # ----------------------------------------------------------------------------- diff --git a/_layouts/archive-category.html b/_layouts/archive-category.html new file mode 100644 index 000000000000..79aad74f923e --- /dev/null +++ b/_layouts/archive-category.html @@ -0,0 +1,27 @@ +--- +layout: default +--- + +
an archive of posts in this category
+{{ post.date | date: "%b %-d, %Y" }} | ++ {{ post.title }} + | +
---|
an archive of posts with this tag
+{{ post.date | date: "%b %-d, %Y" }} | ++ {{ post.title }} + | +
---|
an archive of posts from this year
+{{ post.date | date: "%b %-d, %Y" }} | ++ {{ post.title }} + | +
---|