From eacbe5fb9e5e232892a359818bc5cac2b3d2a99f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 17 Nov 2017 20:27:46 +0000 Subject: [PATCH] Add page param shortcode --- content/projects/yoga-pal.md | 2 +- layouts/shortcodes/pageparam.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 layouts/shortcodes/pageparam.html diff --git a/content/projects/yoga-pal.md b/content/projects/yoga-pal.md index b52ede5..19a9147 100644 --- a/content/projects/yoga-pal.md +++ b/content/projects/yoga-pal.md @@ -28,4 +28,4 @@ $ yoga disable touch Problem solved! -Whilst I've only tested this on my laptop, there's no reason it shouldn't work on others too! If it doesn't, submit an [issue]({{ article.repo }}/issues/)! +Whilst I've only tested this on my laptop, there's no reason it shouldn't work on others too! If it doesn't, submit an [issue](https://github.com/{{% pageparam "repo" %}}/issues/)! diff --git a/layouts/shortcodes/pageparam.html b/layouts/shortcodes/pageparam.html new file mode 100644 index 0000000..48d404d --- /dev/null +++ b/layouts/shortcodes/pageparam.html @@ -0,0 +1 @@ +{{ .Page.Param (.Get 0) }}