]> git.openstreetmap.org Git - rails.git/commitdiff
Make the publisher URL configurable, with no default
authorTom Hughes <tom@compton.nu>
Wed, 22 Mar 2017 18:42:58 +0000 (18:42 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 22 Mar 2017 18:42:58 +0000 (18:42 +0000)
app/views/layouts/_head.html.erb
config/example.application.yml

index 7b16aa6aef215773a0c79197d141f9bfb14922b9..377d55e9dedf821501c396855e70e0162d55261c 100644 (file)
@@ -25,7 +25,9 @@
   <%= tag("meta", { :name => "msapplication-TileImage", :content => image_path("mstile-144x144.png") }) %>
   <%= tag("meta", { :name => "theme-color", :content => "#ffffff" }) %>
   <%= canonical_tag %>
-  <%= tag("link", { :rel => "publisher", :href => "https://plus.google.com/111953119785824514010" }) %>
+  <% if defined?(PUBLISHER_URL) -%>
+  <%= tag("link", { :rel => "publisher", :href => PUBLISHER_URL }) %>
+  <% end -%>
   <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => asset_path("osm.xml") }) %>
   <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %>
   <%= opengraph_tags(@title) %>
index 567458c902f5ce7bf011087c33ca6397b6f9be9b..a10563f61fa904cc7fb2fd103c0b6840d119d2ad 100644 (file)
@@ -2,6 +2,8 @@ defaults: &defaults
   # The server protocol and host
   server_protocol: "http"
   server_url: "openstreetmap.example.com"
+  # Publisher
+  #publisher_url: ""
   # The generator
   generator: "OpenStreetMap server"
   copyright_owner: "OpenStreetMap and contributors"