Skip to content

Commit

Permalink
Layout for postcard
Browse files Browse the repository at this point in the history
  • Loading branch information
harshac committed Dec 13, 2015
1 parent 46179dc commit c729c88
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 10 deletions.
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: > # this means to ignore newlines until "baseurl:"
Travel trails of two friends
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://darbadar.com" # the base hostname & protocol for your site
permalink: /stories/:year/:month/:title/
timezone: Asia/Kolkata
imageurl: https://farm1.staticflickr.com
imagesize: c
Expand Down
1 change: 0 additions & 1 deletion _config_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ description: > # this means to ignore newlines until "baseurl:"
Travel trails of two friends
baseurl: "" # the subpath of your site, e.g. /blog/
url: "" # the base hostname & protocol for your site
permalink: /stories/:year/:month/:title/
timezone: Asia/Kolkata
imageurl: https://farm1.staticflickr.com
imagesize: c
Expand Down
34 changes: 34 additions & 0 deletions _layouts/postcard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: default
---
<div class="post" itemscope itemtype="https://schema.org/BlogPosting" data-album-id="{{page.albumId}}">
<article class="post-body" itemprop="articleBody">
<div class="post-meta has-bg">
<img src="{{page.featureImage}}"/>
<p class="post-date" itemprop="datePublished"> {{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
<p class="post-location has-bg" itemprop="contentLocation">
{% if page.location %}
{% if page.latitude and page.longitude %}
<a href="http://maps.google.com/?ie=UTF8&q={{page.location}}&ll={{page.latitude}},{{page.longitude}}&z=13" target=blank><i class="fa fa-map-marker post-location-icon"></i>
{{page.location}}</a>
{% else %}
<i class="fa fa-map-marker post-location-icon"></i>
{{page.location}}
{% endif %}
{% endif %}
</p>
</div>


<div class="post-content">
{{ content }}
</div>
</article>

<footer class="post-footer">
{% include social-media.html %}
{% include comments.html %}
</footer>
<script src="/assets/js/google-analytics.js"> </script>
</div>

3 changes: 1 addition & 2 deletions _posts/postcards/2015-08-10-pen1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
layout: post
title: "Pen: in search of idol makers"
layout: postcard
location: Pen, Maharashtra, India
latitude: 18.734888
longitude: 73.096602
Expand Down
2 changes: 1 addition & 1 deletion _posts/postcards/2015-08-17-sewa1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: postcard
title: "Rupin Pass Diaries - Day 1"
location: Sewa, Uttarakhand, India
featureImage: http://farm1.staticflickr.com/739/20384692883_7eb669f53c_c.jpg
Expand Down
2 changes: 1 addition & 1 deletion _posts/postcards/2015-09-25-anegundi1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: postcard
title: "Anegundi - The Ramayana trail"
location: "Anegundi, Karnataka, India"
latitude: 15.3498673
Expand Down
2 changes: 1 addition & 1 deletion _posts/postcards/2015-10-08-visarjan1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: postcard
title: "Pune: colours of Ganpati visarjan"
location: "Pune, Maharashtra, India"
latitude: 18.5246164
Expand Down
4 changes: 1 addition & 3 deletions _posts/postcards/2015-11-24-hampi1.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
layout: post
title: The music of Hampi
layout: postcard
location: "Hampi, Karnataka, India"
latitude: 15.3332002
longitude: 76.4589573
featureImage: https://c2.staticflickr.com/6/5735/22616673516_a041eaa0f2_b.jpg
categories: postcards
tags: Travel Hampi Karnataka India Vijayanagara Ruins WorldHeritageSite History Architechture
socialMedia:
published: true
---

Expand Down

0 comments on commit c729c88

Please sign in to comment.