Set defaults for _posts

- layout ~> post.html
- enable comments
This commit is contained in:
Michael Rose 2016-02-23 10:47:43 -05:00
parent 063bcd1dc3
commit 0bb176b456
10 changed files with 17 additions and 19 deletions

View file

@ -15,12 +15,12 @@ url : "http://localhost:4000" # the base hostname & protoco
baseurl : "/test" # the subpath of your site, e.g. /blog baseurl : "/test" # the subpath of your site, e.g. /blog
email : "your-email@domain.com" email : "your-email@domain.com"
logo : "default-thumb.png" logo : "default-thumb.png"
google_site_verification :
twitter: twitter:
username : site_twitter username : site_twitter
facebook: facebook:
app_id : app_id :
publisher : publisher :
disqus_shortname : "mmistakes-dev" # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
google_site_verification : google_site_verification :
bing_site_verification : bing_site_verification :
alexa_site_verification : alexa_site_verification :
@ -85,6 +85,17 @@ kramdown:
smart_quotes: lsquo,rsquo,ldquo,rdquo smart_quotes: lsquo,rsquo,ldquo,rdquo
enable_coderay: false enable_coderay: false
# Defaults
defaults:
# _posts
- scope:
path: ""
type: posts
values:
layout: post
comments: true
# Plugins # Plugins
gems: gems:
- jekyll-paginate - jekyll-paginate
@ -106,10 +117,9 @@ compress_html:
# Site Owner # Site Owner
owner: owner:
name : "Your Name" name : "Your Name"
avatar : "/images/bio-photo.jpg" # external URLs are also acceptable avatar : "bio-photo.jpg" # external URLs are also acceptable
bio : "Describe your self." bio : "Describe your self."
email : email :
disqus-shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
bing-verify : bing-verify :
codepen : codepen :
dribbble : dribbble :

View file

@ -1,7 +1,7 @@
{% if site.owner.disqus-shortname %} {% if site.disqus_shortname %}
<script type="text/javascript"> <script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ site.owner.disqus-shortname }}'; var disqus_shortname = '{{ site.disqus_shortname }}';
/* * * DON'T EDIT BELOW THIS LINE * * */ /* * * DON'T EDIT BELOW THIS LINE * * */
(function() { (function() {

View file

@ -32,7 +32,7 @@ layout: default
</footer> </footer>
</div><!-- /.article-wrap --> </div><!-- /.article-wrap -->
{% if site.owner.disqus-shortname and page.comments == true %} {% if site.disqus_shortname and page.comments %}
<section id="disqus_thread"></section><!-- /#disqus_thread --> <section id="disqus_thread"></section><!-- /#disqus_thread -->
{% endif %} {% endif %}
</article> </article>

View file

@ -1,10 +1,9 @@
--- ---
layout: post
title: Sample Post title: Sample Post
excerpt: "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more." excerpt: "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more."
modified: 2013-05-31 modified: 2013-05-31
tags: [intro, beginner, jekyll, tutorial] tags: [intro, beginner, jekyll, tutorial]
comments: true comments: false
image: image:
feature: sample-image-5.jpg feature: sample-image-5.jpg
credit: WeGraphics credit: WeGraphics

View file

@ -1,9 +1,7 @@
--- ---
layout: post
title: "Testing Readability with a Bunch of Text" title: "Testing Readability with a Bunch of Text"
excerpt: "A ton of text to test readability." excerpt: "A ton of text to test readability."
tags: [sample post, readability, test] tags: [sample post, readability, test]
comments: true
--- ---
Portland in shoreditch Vice, labore typewriter pariatur hoodie fap sartorial Austin. Pinterest literally occupy Schlitz forage. Odio ad blue bottle vinyl, 90's narwhal commodo bitters pour-over nostrud. Ugh est hashtag in, fingerstache adipisicing laboris esse Pinterest shabby chic Portland. Shoreditch bicycle rights anim, flexitarian laboris put a bird on it vinyl cupidatat narwhal. Hashtag artisan skateboard, flannel Bushwick nesciunt salvia aute fixie do plaid post-ironic dolor McSweeney's. Cliche pour-over chambray nulla four loko skateboard sapiente hashtag. Portland in shoreditch Vice, labore typewriter pariatur hoodie fap sartorial Austin. Pinterest literally occupy Schlitz forage. Odio ad blue bottle vinyl, 90's narwhal commodo bitters pour-over nostrud. Ugh est hashtag in, fingerstache adipisicing laboris esse Pinterest shabby chic Portland. Shoreditch bicycle rights anim, flexitarian laboris put a bird on it vinyl cupidatat narwhal. Hashtag artisan skateboard, flannel Bushwick nesciunt salvia aute fixie do plaid post-ironic dolor McSweeney's. Cliche pour-over chambray nulla four loko skateboard sapiente hashtag.

View file

@ -1,9 +1,7 @@
--- ---
layout: post
title: "A Post with Images" title: "A Post with Images"
excerpt: "Examples and code for displaying images in posts." excerpt: "Examples and code for displaying images in posts."
tags: [sample post, images, test] tags: [sample post, images, test]
comments: true
--- ---
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. 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.

View file

@ -1,9 +1,7 @@
--- ---
layout: post
title: "Post with Large Feature Image and Text" title: "Post with Large Feature Image and Text"
excerpt: "Custom written post descriptions are the way to go... if you're not lazy." excerpt: "Custom written post descriptions are the way to go... if you're not lazy."
tags: [sample post, readability, test] tags: [sample post, readability, test]
comments: true
image: image:
feature: sample-image-4.jpg feature: sample-image-4.jpg
credit: WeGraphics credit: WeGraphics

View file

@ -1,10 +1,8 @@
--- ---
layout: post
title: "Sample Link Post" title: "Sample Link Post"
excerpt: "Example and code for using link posts." excerpt: "Example and code for using link posts."
tags: [sample post, link post] tags: [sample post, link post]
link: http://mademistakes.com link: http://mademistakes.com
share: true
--- ---
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. 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.

View file

@ -1,10 +1,8 @@
--- ---
layout: post
title: Syntax Highlighting Post title: Syntax Highlighting Post
excerpt: "Demo post displaying the various ways of highlighting code in Markdown." excerpt: "Demo post displaying the various ways of highlighting code in Markdown."
tags: [sample post, code, highlighting] tags: [sample post, code, highlighting]
modified: 2016-02-01 modified: 2016-02-01
comments: true
--- ---
Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. Highlighting does not affect the meaning of the text itself; it is intended only for human readers.[^1] Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. Highlighting does not affect the meaning of the text itself; it is intended only for human readers.[^1]

View file

@ -1,5 +1,4 @@
--- ---
layout: post
title: "Author Override" title: "Author Override"
author: billy_rick author: billy_rick
modified: modified: