monero-site/_layouts/post.html
c1761e7bca Large scale website redesign update thing
- Updated lots and lots and lots of CSS
- Changed all link colors from orange to black and underlined
- Made site more accessible across the board
- Seriously, look at all the pages and tell me it's not awesomer
- Updated relevant HTML in pages to accomodate
- Changed en.yml Developer Guides translated string to yes (why was it not already?)
- Added images to the Using Monero page for wicked sick purposes
2019-01-18 20:18:55 -07:00

75 lines
3.4 KiB
HTML

---
layout: base
---
{% assign post = page %}
{% if post.tags.size > 0 %}
{% capture tags_content %}Post tags {% if post.tags.size == 1 %}<i class="fa fa-tag"></i>{% else %}<i class="fa fa-tags"></i>{% endif %}: {% endcapture %}
{% for post_tag in post.tags %}
{% for data_tag in site.data.tags %}
{% if data_tag.slug == post_tag %}
{% assign tag = data_tag %}
{% endif %}
{% endfor %}
{% if tag %}
{% capture tags_content_temp %}{{ tags_content }}<a href="/blog/tags/{{ tag.slug }}.html">{{ tag.name }}</a>{% if forloop.last == false %}, {% endif %}{% endcapture %}
{% assign tags_content = tags_content_temp %}
{% endif %}
{% endfor %}
{% else %}
{% assign tags_content = '' %}
{% endif %}
<div class="site-wrap post">
<section class="container">
<div class="row">
<!-- left two-thirds block-->
<div class="left two-thirds col-lg-8 col-md-8 col-sm-12 col-xs-12">
<div class="info-block">
<h2>{{ page.title }}</h2>
<p class="author">{% t blog.author %}: {% if page.author %}{{page.author}}{% else %}{{site.author}}{% endif%}</p>
<p class="post-date">{{ page.date | date: '%B %d, %Y' }}</p>
{{content}}
<hr>
<p id="post-meta">{{ tags_content }}</p>
</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">
<p><a href="{{ post.url }}">{{ post.title }}</a></p>
</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">
<p><a href="/blog/tags/{{ tag.slug }}.html">{{ tag.name }}</a></p>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<!-- end right one-third block-->
</div>
</section>
</div>