Merge pull request #1548 from consul/seo-canonical

SEO canonical & nofollow
This commit is contained in:
Juanjo Bazán
2017-05-17 17:33:39 +02:00
committed by GitHub
18 changed files with 68 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: budget_group_url(filter: @current_filter) %>
<% end %>
<div class="expanded budget no-margin-top">
<div class="row">
<div class="small-12 medium-9 column padding">

View File

@@ -4,6 +4,13 @@
search_path: budget_investments_path(budget_id: @budget.id, page: 1),
i18n_namespace: "budgets.investments.index.search_form" %>
<% end %>
<% content_for :canonical do %>
<% if @heading.present? %>
<%= render "shared/canonical", href: budget_investments_url(@budget, heading_id: @heading.id, filter: @current_filter) %>
<% else %>
<%= render "shared/canonical", href: budget_investments_url(@budget) %>
<% end %>
<% end %>
<main id="budget-investments-main">

View File

@@ -1,4 +1,7 @@
<% provide :title do %><%= @investment.title %><% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: budget_investment_url %>
<% end %>
<%= render partial: '/budgets/investments/investment_show', locals: {
investment: @investment,

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: budget_url(@budget, filter: @current_filter) %>
<% end %>
<div class="expanded budget no-margin-top">
<div class="row" data-equalizer data-equalizer-on="medium">
<div class="small-12 medium-9 column padding" data-equalizer-watch>

View File

@@ -1,4 +1,8 @@
<% provide :title do %><%= @debate.title %><% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: debate_url(@debate) %>
<% end %>
<% cache [locale_and_user_status(@debate), @debate, @debate.author, Flag.flagged?(current_user, @debate), @debate_votes] do %>
<div class="debate-show">
<div id="<%= dom_id(@debate) %>" class="row">

View File

@@ -7,8 +7,8 @@
<p class="info">
<%= t("layouts.footer.description",
open_source: link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "blank"),
consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "blank")).html_safe
open_source: link_to(t("layouts.footer.open_source"), t("layouts.footer.open_source_url"), target: "blank", rel: "nofollow"),
consul: link_to(t("layouts.footer.consul"), t("layouts.footer.consul_url"), target: "blank", rel: "nofollow")).html_safe
%>
<%= t("layouts.footer.contact_us") %>
<%= link_to t("layouts.footer.faq"), faq_path %>

View File

@@ -1,4 +1,8 @@
<% provide :title do %><%= t('pages.titles.accessibility') %><% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: page_url("accessibility") %>
<% end %>
<div class="row">
<div class="small-12 column">
<h1>Accesibilidad</h1>

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: page_url("census_terms") %>
<% end %>
<div class="page row-full">
<div class="row">
<div class="text small-12 column">

View File

@@ -1,4 +1,7 @@
<% provide :title do %><%= t('pages.titles.conditions') %><% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: page_url("conditions") %>
<% end %>
<div class="row margin-top">

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: page_url("general_terms") %>
<% end %>
<div class="row-full page">
<div class="row">
<div class="small-12 column">

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: faq_url %>
<% end %>
<div class="row margin-top">
<div class="menu small-12 medium-3 column">
<%= render "shared/back_link" %>

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: how_to_use_url %>
<% end %>
<div class="row margin-top">
<div class="text small-12 column">
<%= render "shared/back_link" %>

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: participation_facts_url %>
<% end %>
<div class="row margin-top">
<div class="small-12 medium-9 column">
<%= render "shared/back_link" %>

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: participation_world_url %>
<% end %>
<div class="row margin-top">
<div class="small-12 medium-3 column">
<%= render "shared/back_link" %>

View File

@@ -1,4 +1,7 @@
<% provide :title do %><%= t('pages.titles.privacy') %><% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: page_url("privacy") %>
<% end %>
<div class="row margin-top">

View File

@@ -5,6 +5,10 @@
social_title: @proposal.title,
social_description: @proposal.summary %>
<% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: proposal_url(@proposal) %>
<% end %>
<% cache [locale_and_user_status(@proposal), @proposal, @proposal.author, Flag.flagged?(current_user, @proposal), @proposal_votes] do %>
<div class="proposal-show">
<div id="<%= dom_id(@proposal) %>" class="row">

View File

@@ -1,3 +1,7 @@
<% content_for :canonical do %>
<%= render "shared/canonical", href: root_url %>
<% end %>
<div class="expanded highlight padding no-margin-top">
<div class="row">
<div class="small-12 medium-6 column">