diff options
author | Durand D'souza <durand1@gmail.com> | 2016-10-18 06:21:16 +0300 |
---|---|---|
committer | Durand D'souza <durand1@gmail.com> | 2016-10-18 06:21:16 +0300 |
commit | 63dc3cd43d9144ad313e292d55d44802a207d319 (patch) | |
tree | 523488b088615b56bd5c624199ea4b21a28924eb | |
parent | dc139bee47a438a91e03902cd3371a42e228ec54 (diff) |
In list view, filter out posts of type "page" - eg. the about page
Rename example content
-rw-r--r-- | exampleSite/content/posts/background-image.md (renamed from exampleSite/content/posts/2013-10-26-background-image.md) | 1 | ||||
-rw-r--r-- | exampleSite/content/posts/code-highlighting-post.md (renamed from exampleSite/content/posts/2013-08-16-code-highlighting-post.md) | 3 | ||||
-rw-r--r-- | exampleSite/content/posts/readability-feature-post.md (renamed from exampleSite/content/posts/2013-05-23-readability-feature-post.md) | 2 | ||||
-rw-r--r-- | exampleSite/content/posts/readability-post.md (renamed from exampleSite/content/posts/2012-05-22-readability-post.md) | 1 | ||||
-rw-r--r-- | exampleSite/content/posts/sample-link-post.md (renamed from exampleSite/content/posts/2013-08-12-sample-link-post.md) | 3 | ||||
-rw-r--r-- | exampleSite/content/posts/sample-post-images.md (renamed from exampleSite/content/posts/2013-05-22-sample-post-images.md) | 1 | ||||
-rw-r--r-- | exampleSite/content/posts/sample-post.md (renamed from exampleSite/content/posts/2011-03-10-sample-post.md) | 2 | ||||
-rw-r--r-- | exampleSite/content/posts/video-post.md (renamed from exampleSite/content/posts/2013-06-25-video-post.md) | 3 | ||||
-rw-r--r-- | layouts/_default/list.html | 4 |
9 files changed, 13 insertions, 7 deletions
diff --git a/exampleSite/content/posts/2013-10-26-background-image.md b/exampleSite/content/posts/background-image.md index ff9ca26..fa77211 100644 --- a/exampleSite/content/posts/2013-10-26-background-image.md +++ b/exampleSite/content/posts/background-image.md @@ -3,6 +3,7 @@ layout: post title: Post with a Background Image description: "Sample post with a background image CSS override." tags: [sample post] +date: 2013-10-26 background: /images/triangular.png --- diff --git a/exampleSite/content/posts/2013-08-16-code-highlighting-post.md b/exampleSite/content/posts/code-highlighting-post.md index 6530ce0..b3388f3 100644 --- a/exampleSite/content/posts/2013-08-16-code-highlighting-post.md +++ b/exampleSite/content/posts/code-highlighting-post.md @@ -2,7 +2,8 @@ layout: post title: Syntax Highlighting Post description: "Demo post displaying the various ways of highlighting code in Markdown." -lastmod: 2016-06-01T15:27:45-04:00 +date: 2013-08-16 +lastmod: 2016-09-05 tags: [sample post, code, highlighting] image: feature: /images/abstract-10.jpg diff --git a/exampleSite/content/posts/2013-05-23-readability-feature-post.md b/exampleSite/content/posts/readability-feature-post.md index e84c32b..78a5edc 100644 --- a/exampleSite/content/posts/2013-05-23-readability-feature-post.md +++ b/exampleSite/content/posts/readability-feature-post.md @@ -3,7 +3,7 @@ layout: post title: "Post with Large Feature Image and Text" description: "Custom written post descriptions are the way to go... if you're not lazy." tags: [sample post, readability] -date: 2013-06-30 +date: 2013-05-23 image: feature: /images/abstract-7.jpg credit: dargadgetz diff --git a/exampleSite/content/posts/2012-05-22-readability-post.md b/exampleSite/content/posts/readability-post.md index 452ea80..ebb1c2b 100644 --- a/exampleSite/content/posts/2012-05-22-readability-post.md +++ b/exampleSite/content/posts/readability-post.md @@ -3,6 +3,7 @@ layout: post title: "Testing Readability with a Bunch of Text" description: "A ton of text to test readability." tags: [sample post, readability, test, intro] +date: 2012-05-22 image: feature: /images/abstract-6.jpg credit: dargadgetz diff --git a/exampleSite/content/posts/2013-08-12-sample-link-post.md b/exampleSite/content/posts/sample-link-post.md index c54ffd1..b12f615 100644 --- a/exampleSite/content/posts/2013-08-12-sample-link-post.md +++ b/exampleSite/content/posts/sample-link-post.md @@ -3,8 +3,9 @@ layout: post title: "Sample Link Post" description: "Example and code for using link posts." tags: [sample post, link post] +date: 2013-08-12 comments: true link: http://mademistakes.com --- -This theme supports **link posts**, made famous by John Gruber. To use, just add `link: http://url-you-want-linked` to the post's YAML front matter and you're done.
\ No newline at end of file +This theme supports **link posts**, made famous by John Gruber. To use, just add `link: http://url-you-want-linked` to the post's YAML front matter and you're done. diff --git a/exampleSite/content/posts/2013-05-22-sample-post-images.md b/exampleSite/content/posts/sample-post-images.md index 415542b..de7b31a 100644 --- a/exampleSite/content/posts/2013-05-22-sample-post-images.md +++ b/exampleSite/content/posts/sample-post-images.md @@ -3,6 +3,7 @@ layout: post title: "A Post with Images" description: "Examples and code for displaying images in posts." tags: [sample post, images, test] +date: 2013-05-22 --- Here are some examples of what a post with images might look like. If you want to display two or three images next to each other responsively use `figure` with the appropriate `class`. Each instance of `figure` is auto-numbered and displayed in the caption. diff --git a/exampleSite/content/posts/2011-03-10-sample-post.md b/exampleSite/content/posts/sample-post.md index 120c668..c8c55ac 100644 --- a/exampleSite/content/posts/2011-03-10-sample-post.md +++ b/exampleSite/content/posts/sample-post.md @@ -2,7 +2,7 @@ layout: post title: Sample Post description: "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more." -lastmod: 2014-12-24 +date: 2011-03-10 tags: [sample post] image: feature: /images/abstract-3.jpg diff --git a/exampleSite/content/posts/2013-06-25-video-post.md b/exampleSite/content/posts/video-post.md index 9a0d217..116af8a 100644 --- a/exampleSite/content/posts/2013-06-25-video-post.md +++ b/exampleSite/content/posts/video-post.md @@ -3,6 +3,7 @@ layout: post title: "A Post with a Video" description: "Custom written post descriptions are the way to go... if you're not lazy." tags: [sample post, video] +date: 2013-06-25 --- <iframe width="560" height="315" src="//www.youtube.com/embed/SU3kYxJmWuQ" frameborder="0"></iframe> @@ -11,4 +12,4 @@ Video embeds are responsive and scale with the width of the main content block w ```html <iframe width="560" height="315" src="//www.youtube.com/embed/SU3kYxJmWuQ" frameborder="0"></iframe> -```
\ No newline at end of file +``` diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5c3bb8e..0a37173 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,7 +4,7 @@ <div class="entry-header"> {{ if isset ($.Scratch.Get "Params") "image" }} {{ $imageparams := index ($.Scratch.Get "Params") "image" }} - {{ if $imageparams.credit }}<div class="image-credit">Image source: <a href="{{ $imageparams.creditlink }}">{{ $imageparams.credit }}</a></div><!-- /.image-credit -->{{ end }} + {{ if $imageparams.credit }}<div class="image-credit">Image credit: <a href="{{ $imageparams.creditlink }}">{{ $imageparams.credit }}</a></div><!-- /.image-credit -->{{ end }} <div class="entry-image"> <img src="{{ $imageparams.feature | absURL }}" alt="{{ .Title }}"> </div><!-- /.entry-image --> @@ -29,7 +29,7 @@ </div><!-- /.entry-header --> <div id="main" role="main"> -{{ range .Paginator.Pages }} +{{ range where .Paginator.Pages "Type" "!=" "page" }} <article class="hentry"> <header> {{ if .Params.image.feature }} |