From 6de83fe34c0f815b009699c4886fcb31be4fe27a Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Thu, 10 Feb 2022 19:41:14 -0300 Subject: [PATCH] Remove jekyll-archives, blog and archive-* --- Gemfile | 1 - _config.yml | 36 ------------------- _includes/header.html | 9 ----- _includes/pagination.html | 17 --------- _layouts/archive-category.html | 27 -------------- _layouts/archive-tag.html | 27 -------------- _layouts/archive-year.html | 27 -------------- _pages/blog/index.html | 66 ---------------------------------- 8 files changed, 210 deletions(-) delete mode 100644 _includes/pagination.html delete mode 100644 _layouts/archive-category.html delete mode 100644 _layouts/archive-tag.html delete mode 100644 _layouts/archive-year.html delete mode 100644 _pages/blog/index.html diff --git a/Gemfile b/Gemfile index 248c9f6..99db2ab 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,6 @@ source 'https://rubygems.org' group :jekyll_plugins do gem 'jekyll' - gem 'jekyll-archives' gem 'jekyll-email-protect' gem 'jekyll-imagemagick' gem 'jekyll-paginate-v2' diff --git a/_config.yml b/_config.yml index 9109043..3374137 100644 --- a/_config.yml +++ b/_config.yml @@ -46,34 +46,15 @@ contact_note: google_analytics: google_site_verification: -# ----------------------------------------------------------------------------- -# Blog -# ----------------------------------------------------------------------------- - -# blog_name: blog -# blog_description: -# permalink: /blog/:year/:title/ - -# # Pagination -# pagination: -# enabled: true - # ----------------------------------------------------------------------------- # Collections # ----------------------------------------------------------------------------- collections: - news: - defaults: - layout: post - output: true - permalink: /news/:path/ projects: output: true permalink: /projects/:path/ -# news_limit: 5 - # ----------------------------------------------------------------------------- # Jekyll settings # ----------------------------------------------------------------------------- @@ -103,7 +84,6 @@ keep_files: - .git plugins: - - jekyll-archives - jekyll-email-protect - jekyll-imagemagick - jekyll-paginate-v2 @@ -128,22 +108,6 @@ minify: true sass: style: compressed -# ----------------------------------------------------------------------------- -# Jekyll Archives -# ----------------------------------------------------------------------------- - -jekyll-archives: - enabled: [year, tags, categories] - layouts: - year: archive-year - tag: archive-tag - category: archive-category - permalinks: - year: '/blog/:year/' - tag: '/blog/tag/:name/' - category: '/blog/category/:name/' - - # ----------------------------------------------------------------------------- # Responsive WebP Images # ----------------------------------------------------------------------------- diff --git a/_includes/header.html b/_includes/header.html index 78c7203..481174e 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -25,15 +25,6 @@ {%- endif -%} - {% if site.blog_name %} - - {%- endif %} {%- assign sorted_pages = site.pages | sort: "title" -%} {%- for p in sorted_pages -%} diff --git a/_includes/pagination.html b/_includes/pagination.html deleted file mode 100644 index 4b8d27e..0000000 --- a/_includes/pagination.html +++ /dev/null @@ -1,17 +0,0 @@ -{%- if paginator.total_pages > 1 -%} - -{%- endif -%} diff --git a/_layouts/archive-category.html b/_layouts/archive-category.html deleted file mode 100644 index 79aad74..0000000 --- a/_layouts/archive-category.html +++ /dev/null @@ -1,27 +0,0 @@ ---- -layout: default ---- - -
- -
-

{{ page.title }}

-

an archive of posts in this category

-
- -
-
- - {% for post in page.posts %} - - - - - {% endfor %} -
{{ post.date | date: "%b %-d, %Y" }} - {{ post.title }} -
-
-
- -
diff --git a/_layouts/archive-tag.html b/_layouts/archive-tag.html deleted file mode 100644 index 66abaeb..0000000 --- a/_layouts/archive-tag.html +++ /dev/null @@ -1,27 +0,0 @@ ---- -layout: default ---- - -
- -
-

{{ page.title }}

-

an archive of posts with this tag

-
- -
-
- - {% for post in page.posts %} - - - - - {% endfor %} -
{{ post.date | date: "%b %-d, %Y" }} - {{ post.title }} -
-
-
- -
diff --git a/_layouts/archive-year.html b/_layouts/archive-year.html deleted file mode 100644 index 8af1d29..0000000 --- a/_layouts/archive-year.html +++ /dev/null @@ -1,27 +0,0 @@ ---- -layout: default ---- - -
- -
-

{{ page.date | date: "%Y" }}

-

an archive of posts from this year

-
- -
-
- - {% for post in page.posts %} - - - - - {% endfor %} -
{{ post.date | date: "%b %-d, %Y" }} - {{ post.title }} -
-
-
- -
diff --git a/_pages/blog/index.html b/_pages/blog/index.html deleted file mode 100644 index de6e43c..0000000 --- a/_pages/blog/index.html +++ /dev/null @@ -1,66 +0,0 @@ ---- -layout: default -title: blog -pagination: - enabled: true - collection: posts - permalink: /page/:num/ - per_page: 5 - sort_field: date - sort_reverse: true - trail: - before: 1 # The number of links before the current page - after: 3 # The number of links after the current page ---- - -
- -
-

{{ site.blog_name }}

-

{{ site.blog_description }}

-
- - - - - {% include pagination.html %} - -