Stash
Torey Heinz
committed Oct 10, 2018
commit 78bab357eef1918cf9e0e7fe195fadb7556dd70a
Showing 6
changed files with
20 additions
and 4 deletions
app/views/pages/testimonials.liquid
+1
-1
| @@ | @@ -18,7 +18,7 @@ editable_elements: |
| <div class="text-center"> | |
| {% editable_text content %}Lorem ipsum{% endeditable_text %} | |
| <p class='thin'> | |
| - | <a href="#" class="button"><strong>Add Your Feedback</strong></a> |
| + | <a href="https://www.canvasinnovations.us/review" class="button"><strong>Add Your Feedback</strong></a> |
| </p> | |
| </div> | |
| <hr class="thin"> | |
app/views/snippets/featured-services.liquid
+1
-1
| @@ | @@ -2,7 +2,7 @@ |
| <div class="row"> | |
| {% with_scope featured: true %} {% for service in contents.services %} | |
| <div class="columns medium-4"> | |
| - | <div class="card text-center"> |
| + | <div class="card text-center clickable" data-url="{% path_to service %}"> |
| <div class="card-divider"> | |
| <p class="lead"><a href="{% path_to service %}">{{ service.title }}</a></p> | |
| </div> | |
app/views/snippets/metatags.liquid
+1
-1
| @@ | @@ -40,7 +40,7 @@ |
| <title>{{ page_title }}</title> | |
| {% seo %} | |
| <meta property="og:site_name" content="{{ site.name }}" /> | |
| - | <meta property="og:title" content="{{ page.title | escape }} | Canvas Innovations" /> |
| + | <meta property="og:title" content="{{ page_title }}" /> |
| <meta property="og:image" content="{{ base_url }}{{ image_url | resize: '1200x1200', optimize: 80 }}" /> | |
| <meta property="og:description" content="{{ description }}" /> | |
| <link rel="shortcut icon" href="{{ 'favicon.png' | theme_image_url | resize: '64x64', optimize: 80 }}"> | |
app/views/snippets/standard-services.liquid
+1
-1
| @@ | @@ -2,7 +2,7 @@ |
| <div class="row small-up-2 medium-up-3 large-up-4"> | |
| {% with_scope featured: false %} {% for service in contents.services %} | |
| <div class="columns medium-4"> | |
| - | <div class="card text-center"> |
| + | <div class="card text-center clickable" data-url="{% path_to service %}"> |
| <div class="card-divider"> | |
| <p class="lead"><a href="{% path_to service %}">{{ service.title }}</a></p> | |
| </div> | |
public/javascripts/app.js
+12
-0
| @@ | @@ -15,3 +15,15 @@ $('header[data-background-url]').each(function() { |
| autosize($('textarea.autosize')); | |
| + | $(document).on('click', '.clickable', function() { |
| + | clickable = document.createElement('a'); |
| + | clickable.href = $(this).data('url'); |
| + | |
| + | if (location.hostname !== clickable.hostname) { |
| + | window.open($(this).data('url')); |
| + | } else { |
| + | window.location.href = $(this).data('url'); |
| + | } |
| + | |
| + | return false; |
| + | }) |
public/stylesheets/app.scss
+4
-0
| @@ | @@ -118,3 +118,7 @@ hr.thin { |
| // background-color: $light-gray; | |
| // } | |
| + | .clickable, .pointer { |
| + | cursor: pointer; |
| + | } |
| + | |