Skip to content

Commit

Permalink
MOD: add post-body class & refactor vision.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-nginx authored Jul 23, 2017
1 parent d26b00d commit 4d83973
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions layout/page.swig
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,36 @@

<div id="posts" class="posts-expand">
{% include '_partials/page-header.swig' %}
{# tagcloud page support #}
{% if page.type === "tags" %}
<div class="tag-cloud">
<div class="tag-cloud-title">
{{ _p('counter.tag_cloud', site.tags.length) }}
{#################}
{### PAGE BODY ###}
{#################}
<div class="post-body{% if theme.han %} han-init-context{% endif %}{% if page.direction && page.direction.toLowerCase() === 'rtl' %} rtl{% endif %}">
{# tagcloud page support #}
{% if page.type === "tags" %}
<div class="tag-cloud">
<div class="tag-cloud-title">
{{ _p('counter.tag_cloud', site.tags.length) }}
</div>
<div class="tag-cloud-tags">
{{ tagcloud({min_font: 12, max_font: 30, amount: 200, color: true, start_color: '#ccc', end_color: '#111'}) }}
</div>
</div>
<div class="tag-cloud-tags">
{{ tagcloud({min_font: 12, max_font: 30, amount: 200, color: true, start_color: '#ccc', end_color: '#111'}) }}
{% elif page.type === 'categories' %}
<div class="category-all-page">
<div class="category-all-title">
{{ _p('counter.categories', site.categories.length) }}
</div>
<div class="category-all">
{{ list_categories() }}
</div>
</div>
</div>
{% elif page.type === 'categories' %}
<div class="category-all-page">
<div class="category-all-title">
{{ _p('counter.categories', site.categories.length) }}
</div>
<div class="category-all">
{{ list_categories() }}
</div>
</div>
{% else %}
{{ page.content }}
{% endif %}
{% else %}
{{ page.content }}
{% endif %}
</div>
{#####################}
{### END PAGE BODY ###}
{#####################}
</div>

{% endblock %}
Expand Down

0 comments on commit 4d83973

Please sign in to comment.