Skip to content

Latest commit

 

History

History
79 lines (68 loc) · 3.99 KB

index.md

File metadata and controls

79 lines (68 loc) · 3.99 KB
layout permalink title description
default
index.html
Personal Homepage of foo boo
Blogging on ....

Based on Jekyll theme: Lanyon by Mark Otto

  • add-ons by Samir Amin
  • [Site features]({{ site.url}}/disclosure#i-classfa-fa-thumbs-o-up-credits-for-site-featuresi)
  • License: Open sourced under the MIT license.

Maximum four posts on front page where first two posts are featured, and remaining are date sorted.

{% if site.twitter_widget_id %}

<script> !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); </script>
{% else %} Twitter stream will show up here if `twitter_widget_id` is present is `_config.yml`. [Demo](http://sbamin.com) {% endif %}
{% for post in site.categories.featured limit:2 %}

{% if post.modified.size > 2 %}<span class="post-date indexpg" itemprop="dateModified" content="{{ post.modified | date: "%Y-%m-%d" }}"> {{ post.modified | date_to_string }} {% else %}<span class="post-date indexpg" itemprop="datePublished" content="{{ post.date | date: "%Y-%m-%d" }}"> {{ post.date | date_to_string }} {% endif %}

{% if post.description.size > 140 %}{{ post.description | markdownify | remove: '

' | remove: '

' }}{% else %}{{ post.excerpt | markdownify | remove: '

' | remove: '

' }}{% endif %} Read more...


{% endfor %}
{% for post in site.posts limit:2 %} {% unless post.category contains "featured" %}

{% if post.modified.size > 2 %}<span class="post-date indexpg" itemprop="dateModified" content="{{ post.modified | date: "%Y-%m-%d" }}"> {{ post.modified | date_to_string }}{% else %}<span class="post-date indexpg" itemprop="datePublished" content="{{ post.date | date: "%Y-%m-%d" }}"> {{ post.date | date_to_string }}{% endif %}

{% if post.description.size > 140 %}{{ post.description | markdownify | remove: '

' | remove: '

' }}{% else %}{{ post.excerpt | markdownify | remove: '

' | remove: '

' }}{% endif %} Read more...

{% unless forloop.last %}
{% endunless %} {% endunless %} {% endfor %}