major updates across the theme to make it more user-centered
This commit is contained in:
@ -5,36 +5,49 @@ comments: true
|
||||
<div class="post-header">
|
||||
<h1 class="post-title-main">{{ page.title }}</h1>
|
||||
|
||||
{% unless page.type == "noTags" %}
|
||||
<div class="pageTags">
|
||||
|
||||
{% for tag in page.tags %}
|
||||
{% if site.data.tags.allowed-tags contains tag %}
|
||||
<a href="{{ "/tag-" | prepend: site.baseurl | append: {{tag}}/index.html ">
|
||||
<button type="button" class="btn btn-default navbar-btn">{{tag}}</button></a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% if site.show_audience_label == true %}
|
||||
{% if page.audience != null %}
|
||||
<div class="audienceLabel">
|
||||
<div class="prefaceAudienceLabel">Visibility</div>
|
||||
{% if page.audience contains "writer" %}<span class="label label-info myLabel">Writer</span> {% endif %}
|
||||
{% unless page.metadata == false %}
|
||||
<p>
|
||||
{% if page.audience contains "designer" %}<span class="label label-warning">Designer</span> {% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="pageMetadata">
|
||||
<div class="pageMetadataTitle">Table of Contents</div>
|
||||
{% include toc.html %}
|
||||
<hr/>
|
||||
<div class="pageMetadataTitle">Page Information</div>
|
||||
{% if page.tags != null %}
|
||||
<span class="metadataRow">Tags: </span>
|
||||
{% for tag in page.tags %}
|
||||
{% if site.data.tags.allowed-tags contains tag %}
|
||||
<a href="{{ "/tag-" | prepend: site.baseurl | append: {{tag}}/index.html ">{{tag}}</a>{% unless forloop.last %}, {% endunless%}
|
||||
{% endif %}
|
||||
{% endfor %}</p>
|
||||
{% endif %}
|
||||
|
||||
{% if site.show_audience_label == true and page.audience != null %}
|
||||
<p>
|
||||
<span class="metadataRow">Audience: </span>
|
||||
{% for audience in page.audience %}
|
||||
{{audience}} {% unless forloop.last %}, {% endunless%}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if page.last_updated != null %}
|
||||
<p><span class="metadataRow">Last updated: </span>{{page.last_updated}}</p>
|
||||
{% endif %}
|
||||
|
||||
</div> <!-- end pageMetadata -->
|
||||
{% endunless %}
|
||||
|
||||
|
||||
<div class="post-content">
|
||||
|
||||
{% include toc.html %}
|
||||
{% if page.summary %}
|
||||
<div class="summary">{{page.summary}}</div>
|
||||
{% endif %}
|
||||
|
||||
{{ content }}
|
||||
{% if site.disqus %}
|
||||
{% include disqus.html %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user