Release v0.0.4

This commit is contained in:
agusmakmun
2017-01-29 13:54:21 +07:00
parent f431d9d2e6
commit b2aa19d643
22 changed files with 698 additions and 657 deletions

View File

@@ -1,25 +1,26 @@
{% if site.enableTags == true %}
{% if site.enableTags == true %}
<div id="tag-filter" class="tag-group">
<span class="tag-filter tag-cloud all active">All</span>
{% assign tagarray = site.tagarray %}
{% for project in site.data.projects %}
{% for tag in project.tags %}
{% assign tagarray = tagarray | push: tag %}
{% endfor %}
{% endfor %}
{% assign tagarray = site.tagarray %}
{% for project in site.data.projects %}
{% for tag in project.tags %}
{% assign tagarray = tagarray | push: tag %}
{% endfor %}
{% endfor %}
{% assign tags = tagarray[1] %}
{% for item in tagarray %}
{% assign tagDown = item | downcase %}
{% assign tagComp = tags | downcase %}
{% unless tagComp contains tagDown %}
{% capture tags %}{{ tags }}|{{ item }}{% endcapture %}
{% endunless %}
{% endfor %}
{% assign tags = tagarray[1] %}
{% for item in tagarray %}
{% assign tagDown = item | downcase %}
{% assign tagComp = tags | downcase %}
{% unless tagComp contains tagDown %}
{% capture tags %}{{ tags }}|{{ item }}{% endcapture %}
{% endunless %}
{% endfor %}
{% assign taglist = tags | split: '|' | sort %}
{% for tag in taglist %}
<span class="tag-filter tag-cloud" data-tag="{{ tag | downcase }}">{{ tag }}</span>
{% endfor %}
{% assign taglist = tags | split: '|' | sort %}
{% for tag in taglist %}
<span class="tag-filter tag-cloud" data-tag="{{ tag | downcase }}">{{ tag }}</span>
{% endfor %}
</div>
{% endif %}
{% endif %}

View File

@@ -1,17 +1,18 @@
<div class="share-page">
<span style="float: left;">Share this on &rarr;&nbsp;&nbsp;</span>
<!-- Twitter -->
<a href="https://twitter.com/share" class="twitter-share-button" data-via="{{ site.share.twitter_username }}">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<span style="float: left;">Share this on &rarr;&nbsp;&nbsp;</span>
<!-- Google + -->
<div class="g-plus" data-action="share" data-annotation="bubble"></div>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<!-- Twitter -->
<a href="https://twitter.com/share" class="twitter-share-button" data-via="{{ site.share.twitter_username }}">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<!-- Facebook -->
<div class="fb-share-button" data-href="{{ site.url }}{{ page.url }}" data-layout="button_count" style="position: relative; top: -8px; left: 3px;"></div>
<!-- Google + -->
<div class="g-plus" data-action="share" data-annotation="bubble"></div>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<!-- Facebook -->
<div class="fb-share-button" data-href="{{ site.url }}{{ page.url }}" data-layout="button_count" style="position: relative; top: -8px; left: 3px;"></div>
</div>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
@@ -19,4 +20,4 @@
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6&appId={{ site.share.fb_appid }}";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
}(document, 'script', 'facebook-jssdk'));</script>