[01/05/23] added new jekyll plugins for read time, sitemap, seo and rss feed

This commit is contained in:
Andrew Conlin 2023-05-01 17:35:50 +01:00
parent 547dfe4eb3
commit e66097a7c6
18 changed files with 376 additions and 31 deletions

View file

@ -4,9 +4,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="{{ page.title }}">
<meta property="og:image" content="https://andrewconl.in/assets/images/og-image-template.jpg">
<meta property="og:url" content="{{ page.url }}">
<title>andrew conlin</title>
<link href="https://use.fontawesome.com/releases/v6.0.0/css/all.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">

View file

@ -2,13 +2,18 @@
layout: default
---
{% capture time %}{{ content | reading_time }}{% endcapture %}
{% assign categories = page.categories %}
{% assign category = site.data.categories[categories.first] %}
{% assign tags = page.tags %}
<p style="font-family:Rubik;font-weight:500;">
<i class="fas fa-calendar"></i>&nbsp;{{ page.date | date_to_string }}&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<i class="fas fa-calendar"></i>&nbsp;{{ page.date | date_to_string }}
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<i class="fas fa-clock"></i>&nbsp;{{ content | reading_time | pluralize: "minute" }}
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<span style="background-color:{{category.backColor}};color:{{category.textColor}};">&nbsp;<a class="text-decoration-none" style="color:{{category.textColor}}" href="/blog/category/{{ categories.first }}"><i class="fas fa-folder"></i>&nbsp;{{ categories.first }}</a>&nbsp;</span>
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<i class="fas fa-tag"></i>

27
_layouts/til-post.html Normal file
View file

@ -0,0 +1,27 @@
---
layout: default
---
{% assign categories = page.categories %}
{% assign category = site.data.categories[categories.first] %}
{% assign tags = page.tags %}
<p style="font-family:Rubik;font-weight:500;">
<i class="fas fa-calendar"></i>&nbsp;{{ page.date | date_to_string }}
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<i class="fas fa-clock"></i>&nbsp;{{ content | reading_time | pluralize: "minute" }}
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<span style="background-color:{{category.backColor}};color:{{category.textColor}};">&nbsp;<a class="text-decoration-none" style="color:{{category.textColor}}" href="/til/"><i class="fas fa-folder"></i>&nbsp;{{ categories.first }}</a>&nbsp;</span>
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<i class="fas fa-tag"></i>
{% for tag in tags %}
<span style="background-color:#171717;color:white;font-family:Rubik;padding:3px;border-radius:10px;"><a class="text-decoration-none" href="/blog/tag/{{ tag }}">{{ tag }}</a></span>
{% if tag != tags.last %}
,
{% endif %}
{% endfor %}
</p>
<hr>
{{ content }}