meta data

This commit is contained in:
Andreas Stephanides
2014-10-27 14:49:42 +01:00
parent 27d5d2cda2
commit 378f6c4894
4 changed files with 35 additions and 1 deletions

View File

@@ -1,3 +1,23 @@
<%= content_for :header do %>
<title>Fetsite - <%= @fetprofile.name %></title>
<% set_meta_tags :og => {
:image => @fetprofile.picture.portrait.url.to_s,
:title => @fetprofile.name.to_s ,
:type => "profile",
:url=>fetprofile_path(@fetprofile,:theme=>nil),
:profile=> {
:first_name=>@fetprofile.vorname,
:last_name=>@fetprofile.nachname
}
}
%>
<% set_meta_tags :og=>{:article=> {:published_time=>I18n.l(@neuigkeit.try(:datum).try(:to_date)) }} unless @neuigkeit.try(:datum).try(:to_date).nil? %>
<%= display_meta_tags %>
<% end %>
<%= render 'fetprofiles/tabs' %> <%= render 'fetprofiles/tabs' %>
<p id="notice"><%= notice %></p> <p id="notice"><%= notice %></p>
<div style="max-width:70em"> <div style="max-width:70em">

View File

@@ -1,5 +1,12 @@
<%= content_for :header do %> <%= content_for :header do %>
<title>Fetsite - <%= I18n.t('home.news') %></title> <title>Fetsite - <%= I18n.t('home.news') %></title>
<% set_meta_tags :og => {
:title => "Fetsite - "+I18n.t('home.news'),
:url=> rubriken_path(:theme=>nil)
}
%>
<%= display_meta_tags %>
<% end %> <% end %>
<%= render 'tabs' %> <%= render 'tabs' %>
<p id="notice"><%= notice %></p> <p id="notice"><%= notice %></p>

View File

@@ -1,5 +1,12 @@
<%= content_for :header do %> <%= content_for :header do %>
<title>Fetsite - <%= @rubrik.name %></title> <title>Fetsite - <%= @rubrik.name %></title>
<% set_meta_tags :og => {
:title => @rubrik.name.to_s,
:url=> rubrik_path(@rubrik,:theme=>nil)
}
%>
<%= display_meta_tags %>
<% end %> <% end %>
<%= render 'tabs' %> <%= render 'tabs' %>
<p id="notice"><%= notice %></p> <p id="notice"><%= notice %></p>

View File

@@ -2,7 +2,7 @@
<title>Fetsite - <%= @themengruppe.title %></title> <title>Fetsite - <%= @themengruppe.title %></title>
<% set_meta_tags :og => { <% set_meta_tags :og => {
:title => @themengruppe.title.to_s, :title => @themengruppe.title.to_s,
:url=> themengruppe_path(:theme=>nil,:locale=>nil) :url=> themengruppe_path(@themengruppe,:theme=>nil,:locale=>nil)
} }
%> %>
<%= display_meta_tags %> <%= display_meta_tags %>