AlchemyCMS/alchemy_cms

View on GitHub
app/views/alchemy/pages/_meta_data.html.erb

Summary

Maintainability
Test Coverage
<% if @page %>
  <meta charset="utf-8">
  <title><%= page_title prefix: local_assigns.fetch(:title_prefix, nil), suffix: local_assigns.fetch(:title_suffix, nil), separator: local_assigns.fetch(:title_separator, nil) %></title>
  <%= tag(:meta, name: 'created', content: @page.updated_at) %>
  <%= tag(:meta, name: 'robots', content: meta_robots) %>
  <%= tag(:meta, name: 'description', content: meta_description, lang: @page.language_code) if meta_description.present? %>
  <%= tag(:meta, name: 'keywords', content: meta_keywords, lang: @page.language_code) if meta_keywords.present? %>
<% end %>