Skip to content

Commit f5014ca

Browse files
committed
feat: Adds descriptions and meta data
1 parent 99532ba commit f5014ca

27 files changed

Lines changed: 161 additions & 47 deletions

eleventy.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import { eleventyImageTransformPlugin } from "@11ty/eleventy-img";
55
import site from "./src/_data/site.js";
66

77
export default async function (eleventyConfig) {
8+
eleventyConfig.setFrontMatterParsingOptions({
9+
excerpt: true,
10+
excerpt_separator: "---",
11+
});
12+
813
eleventyConfig.addTemplateFormats("xml");
914

1015
eleventyConfig.addExtension("xml", {

src/_includes/default.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en-GB">
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width" />
66

7-
<meta name="author" content="{{ site.title }}" />
8-
<meta name="description" content="{{ site.description}}" />
9-
<meta name="theme-color" content="#359567" />
7+
{% include 'meta.html' %}
108

119
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1210
<link

src/_includes/meta.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<meta name="author" content="{{ site.title }}" />
2+
{%- if summary -%}
3+
<meta name="description" content="{{ summary }}" />
4+
{% else %}
5+
<meta name="description" content="{{ site.description }}" />
6+
{% endif %}
7+
<meta name="theme-color" content="#359567" />
8+
9+
<meta property="og:site_name" content="{{ site.title }}" />
10+
{% if title %}
11+
<meta property="og:title" content="{{ title }}" />
12+
{% else %}
13+
<meta property="og:title" content="{{ site.title }}" />
14+
{%endif %} {%- if summary -%}
15+
<meta name="og:description" content="{{ summary }}" />
16+
{% else %}
17+
<meta name="og:description" content="{{ site.description }}" />
18+
{% endif %}
19+
<meta property="og:url" content="{{ site.url }}{{ page.url }}" />
20+
{% if tags contains "post" %}
21+
<meta property="og:type" content="article" />
22+
{% else %}
23+
<meta property="og:type" content="website" />
24+
{% endif %} <meta property="og:locale" content="{{ "en_GB" }}" />{% if tags
25+
contains "post" %}
26+
<meta
27+
property="article:published_time"
28+
content="{{ page.date|date_to_xmlschema }}"
29+
/>
30+
{%- endif -%}
31+
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,44 @@
11
So finally, after many years of world class procrastination I finally have my first site
22

3+
---
4+
35
And what a beauty she is! From start to finish this site has taken me about 2 days to complete _(and many more tinkering)_. To say I'm pleased is an understatement, not only because it has taken me so long to get this far but also because I did it under my own steam.
46

57
I'd like to send out a special thanks to [David Darnes], for helping me not only with my snazzy logo but also solving a few of the irritating bugs webkit and friends threw my way.
68

79
### So who am I?
10+
811
I'm Rob, a developer from Great Britain. I started coding in 2007 while at school with ASP.NET, a lot of people dislike .net and personally I don't blame them. But looking back there was a lot of good stuff in the .net framework if you knew what you were doing from the outset... I clearly didn't!
912

1013
So one thing lead to another and I made the switch to PHP. Moving over was a breath of fresh air from the often complicated world of xml config files and code behind files. Initially I started using Kohana after being recommended by [Richard Standbrook], but I also dabbled in WordPress after discovering its ability to get a basic site up in minutes.
1114

1215
It wasn't until working on the famed Jigoshop plugin that I discovered all the new things that WordPress could do such as custom post types, routing to name just a few. I also had good fun learning about working on a distributed product to boot!
1316

1417
### What's occurring
15-
Like many in my world I decided I should start writing some of my *eureka* moments down so:
18+
19+
Like many in my world I decided I should start writing some of my _eureka_ moments down so:
1620

1721
1. I now have a reference to check incase I've forgotten how to do something.
1822
2. Hopefully I can save someone else who's in the same boat some bother.
1923
3. Finally, so I can share some my ideas with the rest of the world.
2024

2125
### Credit where due
2226

23-
* [Peter Rhoades] - for helping with the logo and setting up the site.
24-
* [Matt Kersley] - for providing some much needed illustrator help.
25-
* [Laura Kalbag], [Jack Franklin] and [Rachel Shillcock] - for motivating me to finally get around to creating this blog.
26-
* [Chris Coyier] - for providing the fantastic tutorials on [CSS-Tricks].
27-
* [Github] - for providing a platform for me to use and just generally being awesome!
27+
- [Peter Rhoades] - for helping with the logo and setting up the site.
28+
- [Matt Kersley] - for providing some much needed illustrator help.
29+
- [Laura Kalbag], [Jack Franklin] and [Rachel Shillcock] - for motivating me to finally get around to creating this blog.
30+
- [Chris Coyier] - for providing the fantastic tutorials on [CSS-Tricks].
31+
- [Github] - for providing a platform for me to use and just generally being awesome!
2832

2933
It's going to be a fun ride and I hope you enjoy reading my posts as much as I enjoyed creating them :)
3034

31-
[David Darnes]: https://twitter.com/daviddarnes
35+
[David Darnes]: https://twitter.com/daviddarnes
3236
[Richard Standbrook]: https://twitter.com/richstandbrook
33-
[Peter Rhoades]: https://twitter.com/createdbypete
34-
[Matt Kersley]: https://twitter.com/kersley
35-
[Laura Kalbag]: https://twitter.com/laurakalbag
36-
[Jack Franklin]: https://twitter.com/Jack_Franklin
37-
[Rachel Shillcock]: https://twitter.com/missrachilli
38-
[Chris Coyier]: https://twitter.com/chriscoyier
39-
[Github]: https://github.com
37+
[Peter Rhoades]: https://twitter.com/createdbypete
38+
[Matt Kersley]: https://twitter.com/kersley
39+
[Laura Kalbag]: https://twitter.com/laurakalbag
40+
[Jack Franklin]: https://twitter.com/Jack_Franklin
41+
[Rachel Shillcock]: https://twitter.com/missrachilli
42+
[Chris Coyier]: https://twitter.com/chriscoyier
43+
[Github]: https://github.com
4044
[CSS-Tricks]: https://css-tricks.com

src/posts/2012-10-11-pattern-passwords.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
summary: An exploration into different authentication techniques
3+
---
4+
15
Let's face it we all hate coming up with a password, especially if we forget what it is!
26

37
Meet my old password, it was a 12 character monstrosity full of numbers, punctuation and buckets of frustration! In the end I decided enough was enough this password had to go, but what would be it's replacement? The answer lay in Android's pattern lock screen.

src/posts/2012-10-22-deue-1-2.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ It's been a while but Deue's finally been in for a facelift. Say hello to 1.2
66

77
This update brings with it a new shortcode which allows you to show when the post is expiring either as a date or a really simple javascript powered countdown
88

9+
---
10+
911
<del>You can grab the latest over at codecanyon, that's all folks!</del>
1012

11-
__I'm sorry, Deue is no longer available on codecanyon.__
13+
**I'm sorry, Deue is no longer available on codecanyon.**

src/posts/2013-02-28-suit-and-tie.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ So I realise it's been a fair while since my last post here, but I have been bus
66

77
With 2013 (now in full swing) I wanted to repaint my little corner of the internet. I probably did it out of habit, I tend to get the paint & brush out during this time of year.
88

9+
---
10+
911
I liked my old colour scheme, it was a good footing and was leaps & bounds ahead of the blank page previous to it. But as with all initial versions there were a few problems.
1012

1113
![Screenshot of my first design](/img/2013/master.jpg)

src/posts/2013-04-24-small-tool-to-help-look-after-your-eyes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: A small tool to help look after your eyes
44

55
Both my parents have to wear glasses and a number of my friends do too and while it's recommended that we all take a 5 minute break for every hour we work at a computer very few of us really do.
66

7+
---
8+
79
There are a bunch of mac apps out there that do the job, one that comes to mind is [Time Out](https://www.dejal.com/timeout/). While it does the job it did get a little annoying after a month or so. Instead I decided to use my screens brightness to dictate when I should take a break.
810

911
After some searching I found a great [little terminal app](https://hints.macworld.com/article.php?story=20090901021817717) which wraps OSX's brightness settings into something I can work with.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
---
2+
summary: Earlier this evening Pippin, author of Easy Digital Downloads tweeted about an idea for a simple little plugin to extend EDD's customer receipts
3+
---
4+
15
Earlier this evening Pippin, author of Easy Digital Downloads tweeted about [an idea](https://easydigitaldownloads.com/support/topic/send-a-copy-of-the-receipt-to-another-address/) for a simple little plugin to extend EDD's customer receipts, sending blind copies to email addresses specified in the admin.
26

7+
---
8+
39
Interested to have a go I opened up my code editor and got cracking. After a while I had myself a working plugin which is now [available on github](https://github.com/studioromeo/edd-bcc)!
410

511
Cheers guys!

src/posts/2013-06-11-using-guard-phpunit-with-composer.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: Using guard-phpunit with composer
44

55
While reading through a book on unit testing with PHP I ran into a few issues using guard with phpunit. This article guides me (and maybe you) through the process of installing & configuring guard with PHPUnit.
66

7+
---
8+
79
First of we need to install phpunit globally using composer. To do this create a new hidden directory called .composer/packages in your home folder
810

911
```bash
@@ -20,7 +22,7 @@ Then inside that directory create a new composer.json file and fill it with your
2022
}
2123
```
2224

23-
Install phpunit by running composer install, this will install phpunit and all of its dependencies. After its completed we then need to edit our __$PATH__ variable so we need to edit our `~/.bash_profile` with the following
25+
Install phpunit by running composer install, this will install phpunit and all of its dependencies. After its completed we then need to edit our **$PATH** variable so we need to edit our `~/.bash_profile` with the following
2426

2527
```bash
2628
export PATH=$HOME/.composer/packages/vendor/bin:$PATH

0 commit comments

Comments
 (0)