blog_by_tag.html 3.08 KB
Newer Older
D Sal's avatar
D Sal committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
---
layout: custom
---
 
  {% assign filename = page.path | remove: '.md' | split: '/' | last %}
  {% for data_tag in site.data.tags %}
	{% if data_tag.slug == filename %}
		{% assign tag = data_tag %}
	{% endif %}
  {% endfor %}

<div class="site-wrap">
    <section class="container">
            <div class="row">
                <!-- left two-thirds block-->
                <div class="left two-thirds col-lg-8 col-md-8 col-sm-8 col-xs-12">
                    <div class="info-block">
                        <div class="row center-xs">
                        <div class="page-title">
		                  <h2 class="inline">{% t tags.all %}: <span class="kicks">{{ tag.name }}</span></h2>
		                </div>
                    </div>
's avatar
committed
23
                    
D Sal's avatar
D Sal committed
24 25
                       {% if site.tags[tag.slug] %}
				{% for post in site.tags[tag.slug] %}
's avatar
committed
26 27 28 29 30 31
                  <div class="post-tag">
                      <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
                      <p>
                        {{ post.summary }}
                      </p>
                  </div>
D Sal's avatar
D Sal committed
32 33 34 35
				{% endfor %}
			{% else %}
				<h3>{% t tags.notags %}</h3>
			{% endif %}
's avatar
committed
36
                    
D Sal's avatar
D Sal committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50
                    </div>
                </div>
                <!-- end left two-thirds block-->
                
                <!-- right one-third block-->
                <div class="right one-third col-lg-4 col-md-4 col-sm-12 col-xs-12">
                        <div class="sidebar col-sm-12 col-xs-12">   
                            <div class="info-block">
                                <div class="row center-xs">
                                    <div class="col"><h2>Recent Posts</h2></div>
                                </div>
                                {% for post in site.posts limit:4 %}
                                <div class="row start-xs info-block-row">
                                    <div class="col">
Diego Salazar's avatar
Diego Salazar committed
51
                                         <p><a href="{{ post.url }}">{{ post.title }}</a></p>
D Sal's avatar
D Sal committed
52 53 54 55 56 57 58 59 60 61 62 63 64
                                     </div>
                                </div>
                                {% endfor %}
                            </div>
                            <div class="info-block">
                                <div class="row center-xs">
                                    <div class="col">
                                        <h2>Popular Tags</h2>
                                    </div>
                                </div>
                                    {% for tag in site.data.tags limit:4 %}
                                    <div class="row start-xs">
                                        <div class="col">
Diego Salazar's avatar
Diego Salazar committed
65
                                             <p><a href="/blog/tags/{{ tag.slug }}.html">{{ tag.name }}</a></p>
D Sal's avatar
D Sal committed
66 67 68 69 70 71 72 73 74 75 76 77 78
                                         </div>
                                     </div>
                                     {% endfor %}


                            </div>
                        </div> 
                </div>
                <!-- end right one-third block-->
            </div>
        </section>
    
</div>