Skip to content

Commit e83a79b

Browse files
authored
Merge pull request #67 from gregology/updating_tags_categories_and_add_descriptions
audited tags & categories and adding descriptions
2 parents ed9a809 + 3ba8190 commit e83a79b

475 files changed

Lines changed: 1498 additions & 960 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ defaults:
8383
layout: "page"
8484
show-avatar: true
8585

86-
link-tags: false
86+
link-tags: true
8787

8888
exclude:
8989
- Gemfile

_includes/head.html

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
55
<meta name="google-site-verification" content="8zE_jkCHHlmp8mLItr7EvVzSutuT6dv7z3tW9oqd8oo" />
66

7-
<title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
87
{% if page.charts %}<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>{% endif %}
9-
<meta name="author" content="{{ site.author.name }}" />
10-
11-
{% if page.subtitle %}
12-
<meta name="description" content="{{ page.subtitle }}">
13-
{% endif %}
148

159
{% if page.chart %}
1610
<script src="/js/Chart.bundle.min.js"></script>
@@ -57,71 +51,5 @@
5751
{% endfor %}
5852
{% endif %}
5953

60-
<!-- Facebook OpenGraph tags -->
61-
{% if site.fb_app_id %}
62-
<meta property="fb:app_id" content="{{ site.fb_app_id }}" />
63-
{% endif %}
64-
65-
{% if page.meta-title %}
66-
<meta property="og:title" content="{{ page.meta-title }}" />
67-
{% elsif page.title %}
68-
<meta property="og:title" content="{{ page.title }}" />
69-
{% else %}
70-
<meta property="og:title" content="{{ site.title }}" />
71-
{% endif %}
72-
73-
{% if page.meta-description %}
74-
<meta property="og:description" content="{{ page.meta-description }}">
75-
{% elsif page.subtitle %}
76-
<meta property="og:description" content="{{ page.subtitle }}">
77-
{% else %}
78-
<meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
79-
{% endif %}
80-
81-
82-
<meta property="og:type" content="website" />
83-
84-
{% if page.id %}
85-
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
86-
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
87-
{% else %}
88-
<meta property="og:url" content="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" />
89-
<link rel="canonical" href="{{ site.url }}{{ page.url | remove: '/index.html' | remove: '.html' }}" />
90-
{% endif %}
91-
92-
{% if page.share-img %}
93-
<meta property="og:image" content="{{ page.share-img }}" />
94-
{% elsif site.avatar %}
95-
<meta property="og:image" content="{{ site.url }}{{ site.avatar }}" />
96-
{% endif %}
97-
98-
99-
<!-- Twitter summary cards -->
100-
<meta name="twitter:card" content="summary" />
101-
<meta name="twitter:site" content="@{{ site.author.twitter }}" />
102-
<meta name="twitter:creator" content="@{{ site.author.twitter }}" />
103-
104-
{% if page.meta-title %}
105-
<meta name="twitter:title" content="{{ page.meta-title }}" />
106-
{% elsif page.title %}
107-
<meta name="twitter:title" content="{{ page.title }}" />
108-
{% else %}
109-
<meta name="twitter:title" content="{{ site.title }}" />
110-
{% endif %}
111-
112-
{% if page.meta-description %}
113-
<meta name="twitter:description" content="{{ page.meta-description }}">
114-
{% elsif page.subtitle %}
115-
<meta name="twitter:description" content="{{ page.subtitle }}">
116-
{% else %}
117-
<meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
118-
{% endif %}
119-
120-
{% if page.share-img %}
121-
<meta name="twitter:image" content="{{ page.share-img }}" />
122-
{% elsif site.avatar %}
123-
<meta name="twitter:image" content="{{ site.url }}{{ site.avatar }}" />
124-
{% endif %}
125-
12654
<a rel="me" href="https://clar.ke/@greg">Mastodon</a>
12755
</head>

_layouts/post.html

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@
22
layout: base
33
---
44

5+
{% if page.tags.size > 0 or page.categories.size > 0 %}
6+
<script type="application/ld+json">
7+
{
8+
"@context": "https://schema.org",
9+
"@type": "BlogPosting",
10+
"headline": {{ page.title | jsonify }},
11+
"datePublished": "{{ page.date | date_to_xmlschema }}",
12+
{% if page.last_modified_at %}"dateModified": "{{ page.last_modified_at | date_to_xmlschema }}",{% endif %}
13+
"author": {
14+
"@type": "Person",
15+
"name": "{{ site.author.name }}",
16+
"url": "{{ site.url }}"
17+
},
18+
"description": {{ page.content | strip_html | truncatewords: 50 | jsonify }},
19+
"mainEntityOfPage": {
20+
"@type": "WebPage",
21+
"@id": "{{ page.url | absolute_url }}"
22+
}{% if page.categories.size > 0 %},
23+
"articleSection": {{ page.categories[0] | jsonify }}{% endif %}{% if page.tags.size > 0 %},
24+
"keywords": {{ page.tags | join: ', ' | jsonify }}{% endif %}
25+
}
26+
</script>
27+
{% endif %}
28+
529
{% include header.html type="post" %}
630

731
<div class="container">
@@ -22,7 +46,7 @@
2246
Tags:
2347
{% if site.link-tags %}
2448
{% for tag in page.tags %}
25-
<a href="/tag/{{ tag }}">{{ tag }}</a>
49+
<a href="/tag/{{ tag | slugify }}">{{ tag }}</a>
2650
{% endfor %}
2751
{% else %}
2852
{{ page.tags | join: ", " }}

_layouts/tag_index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
layout: default
33
---
44

5-
<h2 class="post_title">{{page.title}}:</h2>
5+
{% if page.robots %}
6+
<meta name="robots" content="{{ page.robots }}">
7+
{% endif %}
8+
9+
<h2 class="post_title">{{ page.tag }}</h2>
610

711
<div class="posts-list">
812
{% for post in site.posts %}
@@ -29,9 +33,9 @@ <h4 class="post-subtitle">
2933
</div>
3034

3135
<div class="blog-tags">
32-
Tags:
36+
Tags:
3337
{% for tag in post.tags %}
34-
<a href="/tag/{{ tag }}">{{ tag }}</a>
38+
<a href="/tag/{{ tag | slugify }}">{{ tag }}</a>
3539
{% endfor %}
3640
</div>
3741
</article>

_posts/1983-05-03-born.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ date: 1983-05-03 06:05:00 +0100
77
comments: True
88
licence: Creative Commons
99
categories:
10-
- life events
10+
- personal
1111
tags:
12-
- born
12+
- family
1313
---
1414

1515
Today I was born. Waaaaaa!

_posts/2005-01-01-pocket-bike.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ published_at: 2005-01-01 00:00:00 UTC
77
comments: True
88
licence: Creative Commons
99
categories:
10-
- YouTube
10+
- creative
1111
tags:
12-
- motor bike
12+
- video
1313
---
1414

1515
{% include youtube_player.html id='zpscuMoeF0M' %}

_posts/2005-01-01-toast-rider.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ published_at: 2005-01-01 00:00:00 UTC
77
comments: True
88
licence: Creative Commons
99
categories:
10-
- YouTube
10+
- creative
1111
tags:
12-
- motor bike
12+
- video
1313
---
1414

1515
{% include youtube_player.html id='aCWU55Fwzu8' %}

_posts/2006-10-03-ive-got-a-blog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ layout: post
55
permalink: /2006/10/ive-got-a-blog/
66
comments: True
77
categories:
8-
- Uncategorized
8+
- personal
99
---
1010
It's about time but now I've got a Blog to keep you all up to date with everything that is going in the world of Greg. YAY!

_posts/2006-10-04-no-bike-ride.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ layout: post
55
permalink: /2006/10/no-bike-ride/
66
comments: True
77
categories:
8-
- Army
8+
- military
99
---
1010
On the weekend I was going to be involved in a 24 hour mountain bike race with the Army. A team of 6 have 24 hours to ride as many laps as possible. But I just received a phone call from my Sgt that we're not going any more :,( Stupid unorganised army.

_posts/2006-10-04-still-sick.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ layout: post
55
permalink: /2006/10/still-sick/
66
comments: True
77
categories:
8-
- Play
9-
- Work
8+
- personal
9+
tags:
10+
- dog
1011
---
1112
I'm still sick :( I need sympathy... I bought natural yogurt. I thought I'd be healthy, get some good cultures while I'm taking antibiotics. I figured natural yogurt would be really nice but no, no it isn't. It doesn't have any sugar in it :( it's so plan and boring. It's just milk and cultures. Who came up with that? It's ridiculous!
1213

0 commit comments

Comments
 (0)