From 1ba272b73b475f6968caf1b2e1d58dfeca3e6d67 Mon Sep 17 00:00:00 2001 From: Durand D'souza Date: Wed, 5 Oct 2016 13:31:12 +0200 Subject: Remove /images/ from image urls so that any folder can be used. --- .tern-project | 7 +++++++ exampleSite/content/posts/2013-08-16-code-highlighting-post.md | 4 ++-- layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 2 +- layouts/partials/head.html | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .tern-project diff --git a/.tern-project b/.tern-project new file mode 100644 index 0000000..22bd8f4 --- /dev/null +++ b/.tern-project @@ -0,0 +1,7 @@ +{ + "ecmaVersion": 6, + "libs": [ + "browser" + ], + "plugins": {} +} \ No newline at end of file diff --git a/exampleSite/content/posts/2013-08-16-code-highlighting-post.md b/exampleSite/content/posts/2013-08-16-code-highlighting-post.md index 521d9ad..6530ce0 100644 --- a/exampleSite/content/posts/2013-08-16-code-highlighting-post.md +++ b/exampleSite/content/posts/2013-08-16-code-highlighting-post.md @@ -5,7 +5,7 @@ description: "Demo post displaying the various ways of highlighting code in Mark lastmod: 2016-06-01T15:27:45-04:00 tags: [sample post, code, highlighting] image: - feature: abstract-10.jpg + feature: /images/abstract-10.jpg credit: dargadgetz creditlink: http://www.dargadgetz.com/ios-7-abstract-wallpaper-pack-for-iphone-5-and-ipod-touch-retina/ --- @@ -117,4 +117,4 @@ end An example of a Gist embed below. - \ No newline at end of file + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2a11c88..b376cb1 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,7 +6,7 @@ {{ $imageparams := index ($.Scratch.Get "Params") "image" }} {{ if $imageparams.credit }}
Image source: {{ $imageparams.credit }}
{{ end }}
- {{ .Title }} + {{ .Title }}
{{ end }}
@@ -34,7 +34,7 @@
{{ if .Params.image.feature }}
- {{ .Title }} + {{ .Title }}
{{ end }} {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f8da399..b7edc5b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -48,6 +48,6 @@ {{ $.Scratch.Set "Params" .Params }} {{ end }} {{ with .Params.background }} - + {{ end }} -- cgit v1.2.3