Skip to content

Instantly share code, notes, and snippets.

View fixmysync's full-sized avatar

Mandy Thomson fixmysync

View GitHub Profile
<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 %}
//close the modal if the escape key is pressed
$(document).on('keyup', function(e) {
if (e.which === 27) {
modal.clear();
}
});
{% 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 }}