Merge pull request #1320 from consul/meta-tags
Meta description and keywords tags
This commit is contained in:
5
app/views/layouts/_meta_tags.html.erb
Normal file
5
app/views/layouts/_meta_tags.html.erb
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<meta name="description"
|
||||||
|
content="<%= content_for?(:meta_description) ? yield(:meta_description) : setting["meta_description"] %>" />
|
||||||
|
|
||||||
|
<meta name="keywords"
|
||||||
|
content="<%= content_for?(:meta_keywords) ? yield(:meta_keywords) : setting["meta_keywords"] %>" />
|
||||||
@@ -4,7 +4,8 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<%=render "layouts/tracking_data"%>
|
<%= render "layouts/tracking_data" %>
|
||||||
|
<%= render "layouts/meta_tags" %>
|
||||||
<title><%= content_for?(:title) ? yield(:title) : setting['org_name'] %></title>
|
<title><%= content_for?(:title) ? yield(:title) : setting['org_name'] %></title>
|
||||||
<%= stylesheet_link_tag "application" %>
|
<%= stylesheet_link_tag "application" %>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<title><%= content_for?(:title) ? yield(:title) : "Gobierno abierto" %></title>
|
<title><%= content_for?(:title) ? yield(:title) : "Gobierno abierto" %></title>
|
||||||
|
<%= render "layouts/meta_tags" %>
|
||||||
<%= stylesheet_link_tag "application" %>
|
<%= stylesheet_link_tag "application" %>
|
||||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
|
|||||||
@@ -33,3 +33,5 @@ en:
|
|||||||
voting_allowed: Voting on investment projects
|
voting_allowed: Voting on investment projects
|
||||||
mailer_from_name: Origin email name
|
mailer_from_name: Origin email name
|
||||||
mailer_from_address: Origin email address
|
mailer_from_address: Origin email address
|
||||||
|
meta_description: "Site description (SEO)"
|
||||||
|
meta_keywords: "Keywords (SEO)"
|
||||||
@@ -33,3 +33,5 @@ es:
|
|||||||
voting_allowed: Votaciones sobre propuestas de inversión.
|
voting_allowed: Votaciones sobre propuestas de inversión.
|
||||||
mailer_from_name: Nombre email remitente
|
mailer_from_name: Nombre email remitente
|
||||||
mailer_from_address: Dirección email remitente
|
mailer_from_address: Dirección email remitente
|
||||||
|
meta_description: "Descripción del sitio (SEO)"
|
||||||
|
meta_keywords: "Palabras clave (SEO)"
|
||||||
@@ -35,7 +35,8 @@ Setting.create(key: 'per_page_code', value: "")
|
|||||||
Setting.create(key: 'comments_body_max_length', value: '1000')
|
Setting.create(key: 'comments_body_max_length', value: '1000')
|
||||||
Setting.create(key: 'mailer_from_name', value: 'Consul')
|
Setting.create(key: 'mailer_from_name', value: 'Consul')
|
||||||
Setting.create(key: 'mailer_from_address', value: 'noreply@consul.dev')
|
Setting.create(key: 'mailer_from_address', value: 'noreply@consul.dev')
|
||||||
|
Setting.create(key: 'meta_description', value: 'Citizen Participation and Open Government Application')
|
||||||
|
Setting.create(key: 'meta_keywords', value: 'citizen participation, open government')
|
||||||
|
|
||||||
puts "Creating Geozones"
|
puts "Creating Geozones"
|
||||||
('A'..'Z').each { |i| Geozone.create(name: "District #{i}", external_code: i.ord, census_code: i.ord) }
|
('A'..'Z').each { |i| Geozone.create(name: "District #{i}", external_code: i.ord, census_code: i.ord) }
|
||||||
|
|||||||
@@ -57,6 +57,10 @@ Setting["org_name"] = "Consul"
|
|||||||
# Consul installation place name (City, Country...)
|
# Consul installation place name (City, Country...)
|
||||||
Setting["place_name"] = "Consul-land"
|
Setting["place_name"] = "Consul-land"
|
||||||
|
|
||||||
|
# Meta tags for SEO
|
||||||
|
Setting["meta_description"] = nil
|
||||||
|
Setting["meta_keywords"] = nil
|
||||||
|
|
||||||
# Feature flags
|
# Feature flags
|
||||||
Setting['feature.debates'] = true
|
Setting['feature.debates'] = true
|
||||||
Setting['feature.spending_proposals'] = true
|
Setting['feature.spending_proposals'] = true
|
||||||
|
|||||||
Reference in New Issue
Block a user