Snippets

Team Headjam Creative BC Liquid Snippets

Updated by James Nowland

File Schema Person - Staff Member.jsonld Added

  • Ignore whitespace
  • Hide word diff
+{% comment %}Schema for Team Member{% endcomment %}
+
+<script type="application/ld+json">
+{
+  "@context": "http://schema.org",
+  "@type": "Person",
+  {% if member['Email Address'] != "" -%}"email": "mailto:{{ member['Email Address'] | url_param_escape }}",{% endif %}
+  "image": "{{ member['Staff Photo - Default'] }}",
+  "jobTitle": "{{ member['Job Title'] }}",
+  "name": "{{ member['First Name'] }} {{ member['Last Name'] }}",
+  {% if member['Phone Number'] != "" -%}"telephone": "{{ member['Phone Number'] }}",{% endif %}
+  "sameAs" : [
+    {% if member['Twitter URL'] != '' -%}"{{ member['Twitter URL'] }}",{% endif %}
+    {% if member['Facebook URL'] != '' -%}"{{ member['Facebook URL'] }}",{% endif %}
+    {% if member['Google Plus URL'] != '' -%}"{{ member['Google Plus URL'] }}",{% endif %}
+    {% if member['LinkedIn URL'] != '' -%}"{{ member['LinkedIn URL'] }}",{% endif %}
+    {% if member['Instagram URL'] != '' -%}"{{ member['Instagram URL'] }}",{% endif %}
+    ""
+  ],
+  "url": "{{ activeLocation['url'] | prepend:  gv_site.domain }}#staff-{{ member['itemId'] }}"
+}
+</script>
Updated by James Nowland
Updated by James Nowland

File Prevent CSS Cache Added

  • Ignore whitespace
  • Hide word diff
+<link rel="stylesheet" href="/theme/dist/css/main.css?v={{ globals.site.dateNow | date: 'yyyy-MM-dd-hh-mm-ss-tt' }}">
Updated by James Nowland

File Inline Formating Only Added

  • Ignore whitespace
  • Hide word diff
+{{ this['Summary'] | replace: '<strong>', '[strong]' | replace: '</strong>', '[/strong]' | strip_html | strip | replace: '[strong]', '<strong>' | replace: '[/strong]', '</strong>' }}
Updated by James Nowland

File Smart Back Button Added

  • Ignore whitespace
  • Hide word diff
+<!-- use this on webapp details pages -->
+{% assign section = this.url | split: '/' | first %}
+
+{% if globals.visitor.referrer contains gv_site.domain %}
+  {% assign backJSClick = 'window.history.back(); false' -%}
+  {% assign backURL = 'globals.visitor.referrer' -%}
+{% else %}
+  {% assign backJSClick = 'true' -%}
+  {% assign backURL =  section | prepend: '/' -%}
+{% endif %}
+<a href="{{ backURL }}"
+   title="Back to {{ section }}"
+   onclick="{{ backJSClick }}"
+>
+  Back
+</a>
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.