Created
November 14, 2017 19:55
-
-
Save anonymous/5c45ad50787666266ff6e5cf987be146 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
{# Show year #} | |
{% set year %} | |
{% set post.year = date(post.date, 'YYYY') %} | |
{% if post.year !== year %} | |
{% set year = post.year %} | |
<div class="collection-title"> | |
<h2 class="archive-year motion-element" id="archive-year-{{ year }}">{{ year }}</h2> | |
</div> | |
{% endif %} | |
{# endshow #} | |
{{ post_template.render(post) }} | |
{% endfor %} | |
. | |
. | |
.(省略好多行) | |
. | |
. | |
{% block script_extra %} | |
{% if theme.use_motion %} | |
<script type="text/javascript" id="motion.page.archive"> | |
$('.archive-year').velocity('transition.slideLeftIn'); | |
</script> | |
{% endif %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment