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
{% for post in site.posts %} | |
{% capture month %}{{ post.date | date: '%m%Y' }}{% endcapture %} | |
{% capture nmonth %}{{ post.next.date | date: '%m%Y' }}{% endcapture %} | |
{% if month != nmonth %} | |
<li class="list-item"> | |
<a href="/{{ post.date | date: '%Y/%m/' }}"> | |
<span class="item-year" title="{{ post.date | date: '%Y年' }}">{{ post.date | date: '%Y' }}</span> | |
<span class="item-month" title="{{ post.date | date: '%m月' }}">{{ post.date | date: '%m' }}</span> | |
</a> | |
</li> |
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
module Jekyll | |
class RenderFontAwesomeTag < Liquid::Tag | |
def initialize(tag_name, text, tokens) | |
super | |
@classes = text.split(' ') | |
end | |
def render(context) | |
# local vars |
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
// Mixin to return the color code | |
// | |
// $property_name - The name of the property. | |
// $args - Argments. | |
// - name : Component name. | |
// - palettes : Palettes Array (Default: $PALETTES). | |
// - state : <Option> State Name (Default: normal). | |
// - theme : <Option> Theme Name (Default: base). | |
// | |
// EXAMPLE: |
OlderNewer