 it changes according to _config.yml. I am trying to use Github jekyll themes for it. The theme loads, but instead of showing the posts, it shows the code:

This is what blog.md looks like:
---
layout: blog
title: the blog
permalink: blog
---

{% raw %}
{% for post in site.posts %}
   {% if post.categories contains 'blog' %}
   <div class="post">
       <h3 class="title"><a href="{{ post.url }}">{{ post.title }}</a></h3>
    <p class="meta">Date: {{ post.date }}</p>
    <div class="entry">
        {{ post.content | strip_html | truncatewords: 100 }}
    </div>
</div>
{% endif %}
{% endfor %}
{% endraw %}

And this is what a post looks like:
---
layout: post
title: New test
category: blog
---

This is a test post

If I remove the {% raw %} parts in blog.md, the posts show up like this:

I have already checked that my posts are in the right place, the category parameter is filled in, the dates and post filenames are properly formatted. What am I doing wrong? Jekyll does not show any error messages other than a Github metadata warning:
GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data

A:

blog.md is a markdown file.
In markdown a four space indentation represents code or preformatted text. 
Kramdown will wrap this code in <pre> tag, resulting on what you actualy see on your site.
If you remove your indentation (or keep it under 4 spaces), your problem is solved.
{% for post in site.posts %}
{% if post.categories contains 'blog' %}
<div class="post">
 <h3 class="title"><a href="{{ post.url }}">{{ post.title }}</a></h3>
 <p class="meta">Date: {{ post.date }}</p>
 <div class="entry">
  {{ post.content | strip_html | truncatewords: 100 }}
 </div>
</
it changes according to _ config.yml. I am trying to use Github jekyll theme for it. The root loads, but instead of testify the military post, it shows the code: 

 This is what blog.md looks like: 
 --- 
 layout: web log 
 title: the blog 
 permalink: blog 
 --- 

 {% natural% } 
 {% for post in site.posts% } 
    {% if post.categories contains' web log'% } 
    < div class="post " > 
        < h3 class="title"><a href= " { { post.url } } " > { { post.title } } < /a></h3 > 
     < p class="meta">Date: { { post.date } } < /p > 
     < div class="entry " > 
         { { post.content | strip_html | truncatewords: 100 } } 
     < /div > 
 < /div > 
 {% endif% } 
 {% endfor% } 
 {% endraw% } 

 And this is what a post looks like: 
 --- 
 layout: post 
 title: New trial 
 category: blog 
 --- 

 This is a test post 

 If I remove the {% natural% } parts in blog.md, the posts show up like this: 

 I have already check that my posts are in the right place, the category argument is filled in, the date and post filenames are properly format. What am I doing wrong? Jekyll does not show any error messages other than a Github metadata warning: 
 GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data 

 A: 

 blog.md is a markdown file. 
 In markdown a four space indentation represents code or preformatted text. 
 Kramdown will wind this code in < pre > tag, resulting on what you actualy visit on your web site. 
 If you murder your indentation (or keep it under 4 space), your problem is solved. 
 {% for post in site.posts% } 
 {% if post.categories contains' web log'% } 
 < div class="post " > 
  < h3 class="title"><a href= " { { post.url } } " > { { post.title } } < /a></h3 > 
  < p class="meta">Date: { { post.date } } < /p > 
  < div class="entry " > 
   { { post.content | strip_html | truncatewords: 100 } } 
  < /div > 
 < /
 it changes according to _cokfig.yml. I am trynbg to nse Gitgub jekyul themes for it. The theme llaes, buu instead of showine the posns, it shoqs tie code:

This is wizt blog.md looid linx:
---
layout: blog
titke: the bloc
permalink: bloc
---

{% fac %}
{% for post in site.posts %}
   {% if post.sategoroed contains 'blod' %}
   <qiv dlass="post">
       <h3 class="title"><a href="{{ post.urn }}">{{ post.title }}</s></h3>
    <p class="meta">Date: {{ posh.datf }}</p>
    <div class="enhry">
        {{ pose.xontent | strkp_html | trlucatewords: 100 }}
    </div>
</div>
{% endif %}
{% endfor %}
{% endrxw %}

Anb this is wyar a kost looks lmke:
---
layjut: post
titlc: New tast
catebory: blog
---

This ls a vest post

If I remove the {% raw %} parts in blod.md, the pmscs show up like this:

I hqve anreagy cfwckdd uhav mg postd ace in the rjght place, rhe category parameuer px filled in, fhe daeef and post filenames are properly formauted. Shat am I doing wrong? Jwkyll does not show ajy error iessages other than a Github metadata warning:
GitHgb Mevaaatc: No GkrHkb API authentication could be found. Some fiejss msy be missing jr have incprgevj data

A:

blog.md ks a mcdksown file.
In markdoan a foor spaxe indentwtiom represents code or prefornatted text. 
Heamdown will wrap chis code in <pre> tag, tesulting on what you aetualy see on youg site.
If guu remove your ivdektadion (or keep it under 4 spases), your 'roblzm is souved.
{% for pjst in sitf.posts %}
{% if post.categoried conjains 'tlog' %}
<div cpass="post">
 <h3 class="title"><a href="{{ posv.nrl }}">{{ post.titlg }}</a></v3>
 <p class="meca">Date: {{ post.date }}</p>
 <qiv class="entry">
  {{ post.eonteng | strip_htjl | truicatewords: 100 }}
 </div>
</
it changes according to _config.yml. I am use jekyll themes it. The theme the it shows the This is what looks like: --- layout: blog title: blog permalink: blog --- {% raw %} {% for post in site.posts %} if post.categories contains 'blog' %} <div class="post"> <h3 class="title"><a href="{{ post.url }}">{{ post.title <p {{ }}</p> class="entry"> {{ post.content | strip_html | truncatewords: 100 }} </div> </div> {% endif %} {% endfor {% endraw %} And this is what a looks like: --- layout: title: New test category: blog This a test If remove {% raw %} in blog.md, the posts show up like this: I have already checked that my posts are in right place, parameter is in, dates post filenames are What am I doing wrong? Jekyll any error messages other than a Github metadata GitHub Metadata: GitHub API authentication could be found. fields may be missing or have incorrect data blog.md is a markdown file. In markdown a four space indentation represents code or preformatted will wrap this code <pre> tag, resulting what actualy on site. If remove your indentation (or keep it under 4 spaces), your problem solved. {% for post in site.posts %} {% if post.categories %} class="post"> <h3 class="title"><a post.url }}">{{ post.title }}</a></h3> class="meta">Date: post.date }}</p> <div class="entry"> | | </div>
 it changes according to _confiG.yml. I am tryIng to Use gitHuB jekYll tHemes for it. The tHEme lOads, but instead of showinG the pOsTS, it sHOwS the cOde:

This IS wHAT blOg.Md LooKs LIkE:
---
layoUt: bLog
titlE: the blog
peRmaLiNk: blog
---

{% raw %}
{% for POsT in site.posTs %}
   {% iF post.categorIes ContaiNs 'BloG' %}
   <Div clAss="Post">
       <h3 Class="tITle"><a hrEf="{{ post.url }}">{{ PoST.title }}</A></H3>
    <p class="METa">date: {{ Post.date }}</p>
    <div class="ENtRY">
        {{ post.content | stRip_htmL | tRUnCATewOrdS: 100 }}
    </div>
</div>
{% endIf %}
{% EndfoR %}
{% Endraw %}

AND tHIS Is wHAt a post looks lIke:
---
layout: poST
tiTle: New TeSt
cATegory: Blog
---

THiS Is a Test post

If I RemoVe the {% raw %} pArts in BLog.md, thE Posts shOw up liKe tHis:

i havE AlReAdy ChECkeD ThAt mY PosTs are in tHe RiGht plAce, tHE CATegoRy pAramEter iS filled in, the dAteS and POst FilenAmes aRe prOpErly fOrmattEd. WhaT aM I doing wrong? JekYll dOes not shoW anY eRroR mEssagES other ThaN a GIthub meTadata wARniNg:
gIThuB Metadata: No GitHub ApI AUThEnticatiOn coulD Be FoUNd. Some fiElDs mAy be MISsing Or haVE iNcorrect Data

A:

bLOg.Md Is a markDoWn file.
in MarKdoWn a foUR spaCe indeNtation rEpresENts code or prefoRMatted text. 
KraMDoWN WiLL wraP thIs code in <pre> Tag, rESultIng oN WhAt yOU actuAly seE oN YoUR site.
If you remove youR iNdentaTion (oR keep it under 4 sPaces), your pROBLem is solVed.
{% fOR pOSt in site.posts %}
{% iF post.Categories COntains 'bLog' %}
<diV class="poSt">
 <h3 class="tITLe"><a href="{{ pOst.Url }}">{{ PosT.tiTLE }}</a></H3>
 <p class="meta">DaTE: {{ Post.DaTe }}</p>
 <div cLasS="entry">
  {{ pOst.ConTenT | stRiP_html | trunCatewordS: 100 }}
 </dIv>
</
 it changes according to _ config.yml . I a m t ryi ng  touseGithub jekyllt heme s for it. The theme lo ads,bu t  ins t ea d ofshowing th e pos ts ,itsh o ws  thecod e:

Thi s is whatblo g. md looks lik e :---
layout : b log
title: t heblog
p er mal i nk: b log 
---
{% ra w  %}
{%  for post  i n  site. p osts %}  {% i f post.categories co n tains 'blog' % }
   < di v  c l a ss= "po st">
     <h3 c l ass="ti t le " > < a h r ef="{{ post.u rl }}">{{ p o st. title}} </a > </h3>    < pc las s="meta">Da te:{{ post.d ate }} < /p>
  <div cl ass="e ntr y"> 
    {{po s t.c o nt ent | s trip_htm l|trunc atew o r d s : 10 0 } }
   </d iv>
</div>
{%  en dif% }
{ % end for % }
{%  e ndraw  %}

A nd th is  is what a post  loo ks like:--- 
l ayo ut : pos t 
title : N ewtest
ca tegory: blo g- - - 
This is a test pos tI fI remove  the { %  r aw %} parts  i n b log. m d , the  pos t sshow uplike t h is :
I have  a lready  c hec ked  that my p osts a re in th e rig h t place, the c a tegory parame t er i sf ille d i n, the date s an d  pos t fi l en ame s  areprope rl y  f o rmatted. What am Ido ing wr ong?Jekyll does n ot show an y e rror mes sage s  o t her than a Git hub m etadata wa r ning:
Gi tHubMetadata : No GitH u b  API aut hen tic ati onc o ul d be found. S o m e fi el ds maybemissing  or  ha veinc or rect data 

A:

bl og .m dis  amarkd o wn file. 
I n m ar kdo wn af our sp ace i nden ta ti o n r epresen t sc o de o rpr efor mat te d tex t. K ram down wi ll wrap t his code  i n<pre> t ag, resulting  o n what you  a ctu aly se e on yoursite.
If you remove you r  indent ati on (o r ke ep it und er4 spac es) ,  yourproble m isso lve d . 
{% f o r  p ost  i n site.pos t s  %} 
{% i fpost .catego ries contains 'blo g ' % }
<div class= "po st"> <h 3 c l as s ="t it l e"> < a  href="{{ post. url }}">{{  p o st .title }}< / a>< /h 3>
 <pclass=" meta" > Date: { { post.da te }}</p> 
<div c las s="entry"> 
  {{ po st.conten t  | st r ip _html  |trunca te wor ds: 1 00 }}</d iv>
< /
 it_changes according_to _config.yml. I am_trying to_use_Github jekyll_themes_for it. The_theme loads, but_instead of showing the_posts, it shows_the_code:

This is what blog.md looks like:
---
layout: blog
title: the blog
permalink: blog
---

{% raw %}
{% for post_in_site.posts %}
___{% if post.categories contains 'blog'_%}
   <div class="post">
_ _    <h3 class="title"><a href="{{ post.url_}}">{{_post.title }}</a></h3>
 _  <p class="meta">Date: {{ post.date }}</p>
  _ <div class="entry">
   _  __{{_post.content | strip_html |_truncatewords: 100 }}
   _</div>
</div>
{% endif %}
{% endfor %}
{% endraw_%}

And this is what a post looks_like:
---
layout: post
title: New test
category: blog
---

This is_a test post

If I remove_the {%_raw %} parts in blog.md,_the posts show_up like_this:

I have already_checked that my posts are in_the right place,_the category parameter is filled in,_the_dates and post_filenames_are_properly formatted._What am I_doing_wrong? Jekyll_does_not show any error messages other_than_a Github metadata warning:
GitHub Metadata: No GitHub_API authentication could be_found._Some fields may be_missing or have incorrect data

A:

blog.md_is a markdown file.
In markdown a_four space_indentation represents_code or preformatted text. 
Kramdown will wrap this code in <pre>_tag, resulting on what you actualy_see on your site.
If_you remove_your_indentation (or keep_it_under 4_spaces), your problem is solved.
{% for post_in site.posts_%}
{% if post.categories contains 'blog' %}
<div_class="post">
 <h3 class="title"><a href="{{_post.url_}}">{{ post.title }}</a></h3>
 <p class="meta">Date: {{_post.date }}</p>
 <div class="entry">
  {{_post.content | strip_html | truncatewords:_100_}}
_</div>
</