Skip to content

Instantly share code, notes, and snippets.

View JasperMeurs's full-sized avatar

Jasper Meurs JasperMeurs

View GitHub Profile
@JasperMeurs
JasperMeurs / .gitignore
Created July 27, 2016 21:04 — forked from juliengdt/.gitignore
XCode Gitignore
# Created by https://www.gitignore.io/api/carthage,objective-c,swift,xcode,osx
### Carthage ###
# Carthage - A simple, decentralized dependency manager for Cocoa
Carthage.checkout
Carthage.build
### Objective-C ###
# Xcode
@JasperMeurs
JasperMeurs / fb-open-graph.liquid
Last active August 17, 2017 08:24 — forked from chrisjhoughton/fb-open-graph.liquid
Facebook Open Graph meta tags for Shopify. Add this as a snippet called "fb-open-graph.liquid" in your theme, and then add {% include 'fb-open-graph' %} to your theme.liquid file.
{% if template contains 'product' %}
<meta property="og:type" content="product">
<meta property="og:title" content="{{ product.title | strip_html | escape }}">
<meta property="og:category" content="{{ product.type }}" />
{% for image in product.images limit:3 %}
<meta property="og:image" content="http:{{ image.src | product_img_url: 'master' }}">
<meta property="og:image:secure_url" content="https:{{ image.src | product_img_url: 'master' }}">
{% endfor %}
<meta property="og:price:amount" content="{{ product.price | money_without_currency | stip_html | escape | remove: ',' }}">
<meta property="og:price:currency" content="{{ shop.currency }}">