Remove jekyll-archives, blog and archive-*
This commit is contained in:
parent
d0a9326be0
commit
6de83fe34c
1
Gemfile
1
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'
|
||||
|
|
36
_config.yml
36
_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
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -25,15 +25,6 @@
|
|||
{%- endif -%}
|
||||
</a>
|
||||
</li>
|
||||
{% if site.blog_name %}
|
||||
<li class="nav-item {% if page.url contains 'blog' %}active{% endif %}">
|
||||
<a class="nav-link" href="{{ '/blog/' | relative_url }}">blog
|
||||
{%- if page.title == "blog" -%}
|
||||
<span class="sr-only">(current)</span>
|
||||
{%- endif -%}
|
||||
</a>
|
||||
</li>
|
||||
{%- endif %}
|
||||
|
||||
{%- assign sorted_pages = site.pages | sort: "title" -%}
|
||||
{%- for p in sorted_pages -%}
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
{%- if paginator.total_pages > 1 -%}
|
||||
<nav aria-label="Blog page naviation">
|
||||
<ul class="pagination pagination-lg justify-content-center">
|
||||
<li class="page-item {% unless paginator.previous_page %}disabled{% endunless %}">
|
||||
<a class="page-link" href="{{ paginator.previous_page_path | relative_url }}" tabindex="-1" aria-disabled="{{ paginator.previous_page }}">Newer</a>
|
||||
</li>
|
||||
{%- if paginator.page_trail -%}
|
||||
{% for trail in paginator.page_trail -%}
|
||||
<li class="page-item {% if page.url == trail.path %}active{% endif %}"><a class="page-link" href="{{ trail.path | relative_url }}" title="{{trail.title}}">{{ trail.num }}</a></li>
|
||||
{% endfor -%}
|
||||
{%- endif -%}
|
||||
<li class="page-item {% unless paginator.next_page %}disabled{% endunless %}">
|
||||
<a class="page-link" href="{{ paginator.next_page_path | relative_url }}">Older</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{%- endif -%}
|
|
@ -1,27 +0,0 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title"> <i class="fas fa-tag fa-sm"></i> {{ page.title }} </h1>
|
||||
<p class="post-description"> an archive of posts in this category </p>
|
||||
</header>
|
||||
|
||||
<article>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm table-borderless">
|
||||
{% for post in page.posts %}
|
||||
<tr>
|
||||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
||||
<td>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
</div>
|
|
@ -1,27 +0,0 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title"> <i class="fas fa-hashtag fa-sm"></i> {{ page.title }} </h1>
|
||||
<p class="post-description"> an archive of posts with this tag </p>
|
||||
</header>
|
||||
|
||||
<article>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm table-borderless">
|
||||
{% for post in page.posts %}
|
||||
<tr>
|
||||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
||||
<td>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
</div>
|
|
@ -1,27 +0,0 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title"> <i class="fas fa-calendar fa-sm"></i> {{ page.date | date: "%Y" }} </h1>
|
||||
<p class="post-description"> an archive of posts from this year </p>
|
||||
</header>
|
||||
|
||||
<article>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm table-borderless">
|
||||
{% for post in page.posts %}
|
||||
<tr>
|
||||
<th scope="row">{{ post.date | date: "%b %-d, %Y" }}</th>
|
||||
<td>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
</div>
|
|
@ -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
|
||||
---
|
||||
|
||||
<div class="post">
|
||||
|
||||
<div class="header-bar">
|
||||
<h1>{{ site.blog_name }}</h1>
|
||||
<h2>{{ site.blog_description }}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
<ul class="post-list">
|
||||
{% for post in paginator.posts %}
|
||||
|
||||
{% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %}
|
||||
{% assign year = post.date | date: "%Y" %}
|
||||
{% assign tags = post.tags | join: "" %}
|
||||
{% assign categories = post.categories | join: "" %}
|
||||
|
||||
<li>
|
||||
<h3><a class="post-title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
||||
</h3>
|
||||
<p>{{ post.description }}</p>
|
||||
<p class="post-meta"> {{read_time}} min read ·
|
||||
{{ post.date | date: '%B %-d, %Y' }}
|
||||
</p>
|
||||
<p class="post-tags">
|
||||
<a href="{{ year | prepend: '/blog/' | prepend: site.baseurl}}">
|
||||
<i class="fas fa-calendar fa-sm"></i> {{ year }} </a>
|
||||
|
||||
{% if tags != "" %}
|
||||
·
|
||||
{% for tag in post.tags %}
|
||||
<a href="{{ tag | prepend: '/blog/tag/' | prepend: site.baseurl}}">
|
||||
<i class="fas fa-hashtag fa-sm"></i> {{ tag }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if categories != "" %}
|
||||
·
|
||||
{% for category in post.categories %}
|
||||
<a href="{{ category | prepend: '/blog/category/' | prepend: site.baseurl}}">
|
||||
<i class="fas fa-tag fa-sm"></i> {{ category }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
||||
</li>
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% include pagination.html %}
|
||||
|
||||
</div>
|
Loading…
Reference in New Issue