Last active
June 23, 2018 03:43
-
-
Save pjanf/31b1a3e3ed03be6373c4784d8a10b067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="line flex flex-row-ns center mw9 mw8-ns mt2 pv4 bb b--black-10 ph3 ph0-l"> | |
<div class="main center mw7 mw9-ns" id="main"> | |
{% for post in site.posts %} | |
<div class="secondPost bb b--black-10 ph3 ph0-l mb4"> | |
<h1 class="title f3 avenir black"> <a href="{{post.url}}" style="color:black" class="dim black"> {{post.title}} </a> </h1> | |
<p class="f5 avenir">{{post.categories}} - {{ post.date | date: "%-d %B %Y"}}</p> | |
<p class="excerpt f5 f5-l lh-copy avenir"> {{post.excerpt}} </p> | |
<p> in {{post.tags}} </p> | |
</div> | |
{% endfor %} | |
</div> | |
<div id="supporting" class="ml5"> | |
<h1 class="f4 avenir bb b--black-10 ph3 ph0-l mb3" > Portfolios </h1> | |
{% for post in site.tags.design %} | |
<h1 class="title f5 avenir black"> <a href="{{post.url}}" style="color:black" class="dim black"> {{post.title}} </a> </h1> | |
<p class="f6 avenir">{{ post.tags | sort | join: ", " }} - {{ post.date | date: "%-d %B %Y"}} </p> | |
{% endfor %} | |
</div> | |
</div> | |
<script> | |
var checkWidth = function(){ | |
if ($(window).width() < 1200) | |
{ | |
$("#supporting").addClass("dn"); | |
} | |
else{ | |
$("#supporting").removeClass("dn"); | |
} | |
}; | |
checkWidth(); | |
$(window).on('resize', function(){ | |
checkWidth(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment