Skip to content

Commit

Permalink
le pain le café e includes para estrelas
Browse files Browse the repository at this point in the history
  • Loading branch information
joelxr committed Jul 10, 2016
1 parent 7aa00e5 commit d0d9b52
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 4 deletions.
3 changes: 3 additions & 0 deletions _includes/0.5-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4>
<i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>
</h4>
3 changes: 3 additions & 0 deletions _includes/1.0-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4>
<i class="fa fa-star"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>
</h4>
3 changes: 3 additions & 0 deletions _includes/1.5-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4>
<i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>
</h4>
3 changes: 3 additions & 0 deletions _includes/2.0-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>
</h4>
3 changes: 3 additions & 0 deletions _includes/2.5-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>
</h4>
3 changes: 3 additions & 0 deletions _includes/3.0-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-o"></i><i class="fa fa-star-o"></i>
</h4>
3 changes: 3 additions & 0 deletions _includes/3.5-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i><i class="fa fa-star-o"></i>
</h4>
3 changes: 3 additions & 0 deletions _includes/4.0-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-o"></i>
</h4>
3 changes: 3 additions & 0 deletions _includes/4.5-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4>
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star-half-o"></i>
</h4>
3 changes: 3 additions & 0 deletions _includes/5.0-stars.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4 class="yellow-text text-darken-3">
<i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i>
</h4>
26 changes: 22 additions & 4 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,28 @@
<div class="row valign-wrapper center-align">
<div class="col s10 m10 l4">
<h2 class="header">{{ page.title }}</h2>
<h4>{% assign n = (page.rate | floor) %}{% assign p = (page.rate | minus:n) %}{% for i in (1..page.rate) %}<i class="fa fa-star"></i>{% endfor %}{% if p != 0 %}<i class="fa fa-star-half-o"></i>{% endif %}</h4>
<h5>
<i class="fa fa-calendar"></i> {{ page.date | date: "%d/%m/%y" }}
</h5>
{% if page.rate == 0.5 %}
{% include 0.5-stars.html %}
{% elsif page.rate == 1 %}
{% include 1.0-stars.html %}
{% elsif page.rate == 1.5 %}
{% include 1.5-stars.html %}
{% elsif page.rate == 2 %}
{% include 2.0-stars.html %}
{% elsif page.rate == 2.5 %}
{% include 2.5-stars.html %}
{% elsif page.rate == 3 %}
{% include 3.0-stars.html %}
{% elsif page.rate == 3.5 %}
{% include 3.5-stars.html %}
{% elsif page.rate == 4 %}
{% include 4.0-stars.html %}
{% elsif page.rate == 4.5 %}
{% include 4.5-stars.html %}
{% elsif page.rate == 5 %}
{% include 5.0-stars.html %}
{% endif %}
<h5><i class="fa fa-calendar"></i> {{ page.date | date: "%d/%m/%y" }}</h5>
<p class="flow-text">
{{ page.content }}
</p>
Expand Down
42 changes: 42 additions & 0 deletions _posts/2016-06-06-le-pain-le-cafe.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
layout: post

date : 2016-06-06 20:00:00 -0300
title : Le Pain Le Café
place : Le Pain Le Café
place-instagram : https://www.instagram.com/lepainlecafe
place-facebook : https://www.facebook.com/lepainlecafe
place-twitter :
place-email :
place-tripadvisor : https://www.tripadvisor.com.br/Restaurant_Review-g303293-d8807396-Reviews-Le_Pain_Le_Cafe-Fortaleza_State_of_Ceara.html
place-foursquare :
place-phone : (85) 3104 1805
place-site :
location : R. Professor Dias da Rocha, 670.
location-url : https://goo.gl/maps/KFUyyAAvDW62
location-map : <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3981.3424624077456!2d-38.4939599857313!3d-3.7353372442525603!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x7c7487dc07f658b%3A0xc2c58bfcb244a191!2sLe+Pain+Le+Caf%C3%A9!5e0!3m2!1spt-BR!2sbr!4v1468161654854" width="100%" height="450" frameborder="0" style="border:0" scrolling="no"></iframe>
location-lat : -3.735340
location-long : -38.491777
city : Fortaleza
state : Ceará

coffee: Kaphé Especial
coffee-special:
coffee-region: Cerrado Mineiro
coffee-farm:
coffee-producer:
coffee-variety:
coffee-altitude:
coffee-notes:
coffee-process:

rate : 4
price : R$ 4,80

cover-url : https://c2.staticflickr.com/8/7506/28008539542_f87bbcd9ed_o.jpg
footer-url : https://c2.staticflickr.com/8/7347/28077138776_76c94c799d_o.jpg
photo-1-url : https://c2.staticflickr.com/8/7415/27496499434_1451178873_o.jpg
photo-2-url : https://c2.staticflickr.com/8/7335/28077136786_77c64691d7_o.jpg
photo-3-url : https://c2.staticflickr.com/8/7686/27496493704_da5552c3f0_o.jpg
photo-4-url : https://c2.staticflickr.com/8/7479/28077133106_b06a060270_o.jpg
---

0 comments on commit d0d9b52

Please sign in to comment.