Commit edc18618 authored by Mike Street's avatar Mike Street
Browse files

Feat: Add notes

parent 526b8318
......@@ -6,6 +6,7 @@ module.exports = function (config) {
config.addFilter('isoDate', require('./app/filters/isoDate.js'));
config.addFilter('limit', require('./app/filters/limit.js'));
config.addFilter('readableDate', require('./app/filters/readableDate.js'));
config.addFilter('slugify', require('./app/filters/slugify.js'));
const livePosts = p => p.date <= now && !p.data.draft;
const now = new Date();
......@@ -17,6 +18,13 @@ module.exports = function (config) {
.reverse();
});
config.addCollection('notes', collection => {
return collection
.getFilteredByGlob('./app/content/notes/*.md')
.filter(livePosts)
.reverse();
});
config.addPlugin(eleventyNavigationPlugin);
config.setDataDeepMerge(true);
......
......@@ -11,11 +11,11 @@ sitemapIgnore: true
<language>en-us</language>
<pubDate>{{ page.date.toUTCString() }}</pubDate>
<lastBuildDate>{{ page.date.toUTCString() }}</lastBuildDate>
<atom:link href="{{ siteUrl }}/{{ permalink }}" rel="alternate" type="application/xml" />
<atom:link href="{{ meta.site.url }}/{{ permalink }}" rel="alternate" type="application/xml" />
<image>
<url>{{ siteUrl }}assets/img/android-chrome-512x512.png</url>
<title>{{ siteName }}</title>
<link>{{ siteUrl }}</link>
<url>{{ meta.site.url }}assets/img/android-chrome-512x512.png</url>
<title>{{ meta.site.name }}</title>
<link>{{ meta.site.url }}</link>
<width>144</width>
<height>144</height>
<description>{{ description }}</description>
......@@ -23,9 +23,9 @@ sitemapIgnore: true
{% for entry in collections.blog %}
<item>
<title>{{ entry.data.title }}</title>
<link>{{ siteUrl }}/{{ entry.url }}</link>
<link>{{ meta.site.url }}{{ entry.url }}</link>
<pubDate>{{ entry.date | isoDate }}</pubDate>
<guid>{{ siteUrl }}/{{ entry.url }}</guid>
<guid>{{ meta.site.url }}{{ entry.url }}</guid>
<description><![CDATA[
]]></description>
......
---
title: 10 Moments I Hate About Cycling
date: 2016-03-07
date: 2014-06-19
updated: 2017-05-03
intro: A little while ago, Evans Cycles blogged 10 Moments Every Cyclist Hates and before I had even read the blog, plenty of moments popped into my head - but none of ...
tags:
......
---
title: 2017 in review
date: 2018-01-11
date: 2017-12-31
updated: 2020-01-20
intro: It seems to be the done thing to do a "year in review" post. I initially scoffed at the idea, but the more I thought about it, the more I thought about how keeping track of accomplishments can be a little encouragement and ego boost. So here goes!
tags:
......
---
title: 2018 in review
date: 2019-01-08
date: 2018-12-31
updated: 2020-01-20
intro: 2018 was a big year for me, in all sorts of ways. This blog post summarises one of the most life-changing years of my life.
tags:
......
---
title: 2019 In Review
date: 2020-01-06
date: 2019-12-31
updated: 2020-01-27
intro: 2019 was a strange year, new kitchen, bathroom car and bike. But overall it was good. I enjoyed it.
tags:
......
---
title: 2020 In Review
date: 2021-01-07
date: 2020-12-31
updated: 2021-01-11
intro: 2020 brought the first pandemic of my lifetime, but plenty of good things too
tags:
......
---
title: A placeholder mixin - for Less and Scss
date: 2016-03-07
updated: 2016-04-09
intro: I had a tricky predicament at work today - wanting to extend the boss framework with a placeholder styling attribute. After a lengthy twitter discussion with loads of people (most ...
tags:
- Web
- CSS
---
---
title: A placeholder mixin - for Less and Scss
date: 2013-10-23
updated: 2016-04-09
intro: I had a tricky predicament at work today - wanting to extend the boss framework with a placeholder styling attribute. After a lengthy twitter discussion with loads of people (most ...
tags:
- Web
- CSS
---
<p>I had a tricky predicament at work today - wanting to extend the <a href="https://github.com/bozboz/boss">boss framework</a> with a placeholder styling attribute.</p>
<p>After a lengthy twitter discussion with loads of people (most telling me to move to Scss!) I eventually figured out and solved it!</p>
<p>With my recent love of Coderwall emerging, <a href="https://coderwall.com/p/84hlga">I wrote it all up on there</a>, but have also included below.</p>
......@@ -76,4 +76,4 @@ input {
input {
@include placeholder(color red, font-style italic);
}</pre>
<p>As with the other one, a <a href="http://codepen.io/hugo/pen/qfuGB">Codepen</a> was created to demonstrate the code.</p>
<p>As with the other one, a <a href="http://codepen.io/hugo/pen/qfuGB">Codepen</a> was created to demonstrate the code.</p>
\ No newline at end of file
---
title: A simple Sass compilation gulpfile.js
date: 2016-03-07
date: 2014-03-17
updated: 2019-03-27
intro: This post is not about setting up gulp for the first time - as there are plenty of good blog posts out there explaining that. Instead, this is about getting ...
tags:
......
---
title: A world without the web
date: 2016-03-07
date: 2013-02-21
updated: 2016-04-08
intro: For those of you that know me, you would be aware that I have recently moved house. For those of you that don't, I have recently moved house. Why we ...
tags:
......
---
title: Advance mixin with Less && SCSS- Variable attributes
date: 2018-01-24
date: 2014-07-29
updated: 2018-01-24
intro: Setting many attributes via a mixin
tags:
......
---
title: Advanced Gulp File
date: 2016-03-07
date: 2014-05-22
updated: 2019-03-27
intro: With gulp starting to find itself into my everyday workflow - I've started to understand its quirks and twists, and how to get along with it. My baseline gulpfile.js ...
tags:
......
---
title: An Introduction to CSS Preprocessors
date: 2017-06-22
date: 2014-03-24
updated: 2017-06-22
intro: Writing and updating CSS can be a repetitive, tedious and arduous task - especially for big projects. CSS preprocessors can help with that - amalgamating related styles and helping you ...
tags:
......
---
title: Automatically deploying your Lumen App with PHP Deployer (and zero downtime) so you don't have to manually do it
date: 2021-02-08
date: 2021-03-22
updated: 2021-02-11
intro: PHP Deployer is a great little utility for deploying your PHP app via command line. It doesn't force you to use any specific tech stack and simplifies the process of getting your app live.
tags:
......
---
title: Be a Better Road User
date: 2016-03-07
date: 2014-02-18
updated: 2016-04-09
intro: Preface&#58; By writing this blog post I am no way saying that I am the best road user, but I believe I am more thoughtful than some The Blog Post&#58; ...
tags:
......
---
title: Bower
date: 2016-03-07
date: 2014-05-08
updated: 2016-06-17
intro: Please note&#58; When I have written commands for terminal/command line, I have preceded them with a $. This is not to be typed but signifies a terminal command I have ...
tags:
......
---
title: Building a 3D printer - tips, hints and links
date: 2016-03-08
date: 2015-12-10
updated: 2016-04-09
intro: Recently a friend, Chris, and I have embarked on the journey of building our own 3D printer. This is something I hugely recommend if you are into that kind of ...
tags:
......
---
title: Building a Vue v2 JS app using Vue-router
date: 2017-01-23
date: 2016-11-03
updated: 2019-03-27
intro: Vue is a great javascript framework which I picked up to learn a couple of weeks back. I was after a simple framework which I could build an internal ...
canonical: https://www.liquidlight.co.uk/blog/building-a-vue-v2-js-app-using-vue-router/
......
---
title: Change ownership of all folders and subfolders or files
date: 2017-07-25
date: 2017-09-05
updated: 2017-09-05
intro: Changing permissions on files and folders can be tedious, so why not do it in one fell swoop?
tags:
......
---
title: Chilly's Dip
date: 2016-03-08
date: 2011-05-19
updated: 2016-04-08
intro: I found this in an old recipe book I found in a charity shop. Not quite sure what happened to it, but I've tweaked the recipe ...
tags:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment