2020-08-13 14:23:29 +02:00
|
|
|
{{!< default}}
|
|
|
|
|
2020-08-13 15:41:45 +02:00
|
|
|
<div class="mind-site-title unselectable" id="vantajs">
|
|
|
|
<h1>{{@site.title}}</h1>
|
|
|
|
<i class="arrow-down"></i>
|
|
|
|
</div>
|
2020-08-13 14:23:29 +02:00
|
|
|
|
|
|
|
|
2020-08-13 15:41:45 +02:00
|
|
|
<main>
|
2020-08-13 14:23:29 +02:00
|
|
|
<h2>Last posts</h2>
|
2020-08-13 15:41:45 +02:00
|
|
|
<div class="mind-feed_main">
|
2020-08-13 14:23:29 +02:00
|
|
|
|
|
|
|
<!-- Looping through every post -->
|
|
|
|
{{#foreach posts}}
|
|
|
|
<article class="{{post_class}}">
|
2020-08-13 15:41:45 +02:00
|
|
|
<a class="post-card_main" href="{{url}}">
|
|
|
|
<header class="post-card_header">
|
2020-08-13 14:23:29 +02:00
|
|
|
<img class="post-card_feature-image" src="{{feature_image}}" />
|
|
|
|
<h3>{{title}}</h3>
|
|
|
|
</header>
|
|
|
|
<section class="post-excerpt">
|
|
|
|
<p>{{excerpt words="26"}}</p>
|
|
|
|
</section>
|
2020-08-13 15:41:45 +02:00
|
|
|
<footer class="post-card_footer">
|
2020-08-13 14:23:29 +02:00
|
|
|
{{primary_author.name}}
|
|
|
|
{{#if primary_author.profile_image}}<img class="post-card_profile-image" src="{{primary_author.profile_image}}" alt="Author image" />{{/if}}
|
|
|
|
</footer>
|
|
|
|
</a>
|
|
|
|
</article>
|
|
|
|
{{/foreach}}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<!-- Vanta.JS Scripts to make the background cool, but disabled on mobile -->
|
|
|
|
<script>
|
|
|
|
if(window.screen.width > 800)
|
|
|
|
{
|
|
|
|
document.write('<script src="{{asset "js/three.r95.min.js"}}"><\/script>' +
|
|
|
|
'<script src="{{asset "js/vanta.net.min.js"}}"><\/script>' +
|
|
|
|
'<script>' +
|
|
|
|
'VANTA.NET({'+
|
|
|
|
'el: "#vantajs",'+
|
|
|
|
'color: 0x3fd5ff,'+
|
|
|
|
'backgroundColor: 0x190f2b,'+
|
|
|
|
'mouseControls: true,'+
|
|
|
|
'touchControls: true,'+
|
|
|
|
'minHeight: 200.00,'+
|
|
|
|
'minWidth: 200.00,'+
|
|
|
|
'scale: 1.00,'+
|
|
|
|
'scaleMobile: 1.00'+
|
|
|
|
'})'+
|
|
|
|
'<\/script>');
|
|
|
|
}
|
|
|
|
</script>
|