Skip to content

Commit

Permalink
Merge branch 'release/v2016.02.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-ltw committed Feb 16, 2016
2 parents 35cafbc + 0e9f01c commit 77f59ee
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ gem 'unicorn'
# sitemap generator
gem 'sitemap_generator'

# meta tags generator
gem 'meta-tags'

group :development, :test do
# debugger
gem 'pry-byebug'
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ GEM
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
meta-tags (2.1.0)
actionpack (>= 3.0.0)
method_source (0.8.2)
mime-types (2.6.1)
mini_portile2 (2.0.0)
Expand Down Expand Up @@ -282,6 +284,7 @@ DEPENDENCIES
jquery-rails
jquery-turbolinks
jquery-ui-rails
meta-tags
newrelic_rpm
nokogiri
parallel
Expand Down
12 changes: 2 additions & 10 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title>Value and Prices (Brought to you by Technikality)</title>
<%= display_meta_tags site: 'Supermarket Lowest Price' %>
<title>Value and Prices, Supermarket Lowest Price</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
Expand All @@ -13,12 +14,3 @@
</div>
</body>
</html>
<script>
var scrl = " Value and Prices (Brought to you by Technikality) ";
function scrlsts() {
scrl = scrl.substring(1, scrl.length) + scrl.substring(0, 1);
document.title = scrl;
setTimeout("scrlsts()", 300);
}
scrlsts()
</script>
12 changes: 12 additions & 0 deletions app/views/products/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<% set_meta_tags title: 'Bringing You The Lowest Price For Any Supermarket Product' %>
<% set_meta_tags description: "With this list, you should be able to gauge an item that you are purchasing at it's lowest price. " %>
<% set_meta_tags keywords: %w[lowest price supermarket newzealand nz] %>
<div class="row"></div>
<div class="row">
<% cache("index_header", :expires_in => 1.hour) do %>
Expand Down Expand Up @@ -42,3 +45,12 @@
</div>
</div>
<br>
<script>
var scrl = " Value and Prices, Supermarket Lowest Price ";
function scrlsts() {
scrl = scrl.substring(1, scrl.length) + scrl.substring(0, 1);
document.title = scrl;
setTimeout("scrlsts()", 300);
}
scrlsts()
</script>
8 changes: 8 additions & 0 deletions app/views/products/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<% set_meta_tags title: @product.name %>
<% set_meta_tags description: @product.name + '. ' + @product.aisle %>
<% set_meta_tags keywords: @product
.aisle.split(',')
.append('lowest')
.append('price')
.append('history chart')
.append('nz') %>
<p id="notice"><%= notice %></p>

<p>
Expand Down
1 change: 1 addition & 0 deletions config/sitemap.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Set the host name for URL creation
SitemapGenerator::Sitemap.default_host = "http://supermarket.lowestprice.club"
SitemapGenerator::Sitemap.public_path = 'sitemap/'

SitemapGenerator::Sitemap.create do
# Put links creation logic here.
Expand Down

0 comments on commit 77f59ee

Please sign in to comment.