This file contains hidden or 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 id="pagination" class="pagination"> | |
{% if paginate.previous.is_link %} | |
<a href="{{ paginate.previous.url }}" class="pagination-item pagination-previous">Previous</a> | |
{% else %} | |
<a class="pagination-item pagination-previous pagination-previous--disabled">Previous</a> | |
{% endif %} | |
{% for part in paginate.parts %} | |
{% if part.is_link %} | |
<a href="{{part.url}}"class="pagination-item">{{ part.title }}</a> | |
{% elsif current_page %} |
This file contains hidden or 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
//close the modal if the escape key is pressed | |
$(document).on('keyup', function(e) { | |
if (e.which === 27) { | |
modal.clear(); | |
} | |
}); |
This file contains hidden or 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
{% comment %} inline BG Image {% endcomment %} | |
<div style="background-image: url({{ 'photoname.jpg' | asset_img_url: 'master' }});"></div> | |
{% comment %} Camelcase page ID. ex. id="aboutUs" {% endcomment %} | |
{% assign strings = page_title | handle | split: '-' %} | |
{% for string in strings %}{% if forloop.first == true %}{{ string }}{% else %}{{ string | capitalize }}{% endif %}{% endfor %} | |
{% comment %} Spit Out Object Properties {% endcomment %} | |
{{ object | json }} |