TechShotgun/_layouts/post_full.html

91 lines
4.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
{% include head.html %}
</head>
<body>
{% include svg.html %}
<header class="head">
{% include header.html %}
{% include nav.html %}
</header>
{% include search.html %}
<section class="margin">
<div class="content full">
<div class="content_container">
<article>
{% if page.type == "vimeo" %}
{% if page.vimeo-embed %}
<div class="video_container">
{{ page.vimeo-embed }}
</div>
{% endif %}
{% elsif page.type == "youtube" %}
{% if page.yt-video-id %}
<div class="video_container">
<iframe src="https://www.youtube.com/embed/{{page.yt-video-id}}?feature=player_detailpage" frameborder="0" allowfullscreen></iframe>
</div>
{% endif %}
{% elsif page.type == "image" or page.type == "gallery" %}
{% if page.featimg %}
<img class="featimg" src="{{ site.media_folder | prepend: site.baseurl | replace: '//', '/'}}/{{ page.featimg }}" alt="{{ page.featimg }}">
{% endif %}
{% elsif page.type == "audio" %}
{% if page.audio-embed %}
{{ page.audio-embed }}
{% endif %}
{% endif %}
<h1 class="post_title">
{{ page.title }}
</h1>
<div class="meta">
{% include author.html%} &bull;
<span class="date">
Published on {{ page.date | date: '%B %d, %Y' }}
</span>
</div>
{% if page.type == "standard" %}
{% if page.featimg %}
<img class="featimg" src="{{ site.media_folder | prepend: site.baseurl | replace: '//', '/'}}/{{ page.featimg }}" alt="{{ page.featimg }}">
{% endif %}
{% endif %}
<div class="post_content">
{{ content }}
</div>
{% if page.category || page.tags %}
<div class="catsandtags">
{% if page.category %}
<p class="category">
<span class="name">Categories:</span>
{{ page.categories | category_links }}
</p>
{% endif %}
{% if page.tags %}
<p class="tags">
<span class="name">Tags:</span>
{% for tag in page.tags %}
<a href="{{ site.tag_dir | prepend: site.baseurl | replace: '//', '/' }}/{{ tag }}">{{ tag }}</a>
{% endfor %}
</p>
{% endif %}
</div>
{% endif %}
</article>
<div class="post_nav">
{% if page.previous.url %}
<a class="prev" href="{{ page.previous.url | prepend: site.baseurl | replace: '//', '/' }}"><i class="fa fa-angle-left"></i><span class="short"> prev</span><span class="long">ious post</span></a>
{% endif %}
{% if page.next.url %}
<a class="next" href="{{ page.next.url | prepend: site.baseurl | replace: '//', '/' }}"><span class="short">next </span><span class="long">post </span><i class="fa fa-angle-right"></i></a>
{% endif %}
</div>
</div>
</div>
</section>
{% include footer.html %}
<script src="{{ site.baseurl | replace: '//', '/' }}/js/build/global.min.js"></script>
</body>
</html>