Replaced hardcoded 'the practical dev' with the community name (#7460)
* Replaced hardcoded 'the practical dev' with the configurable community name * Replaced url with url helper
This commit is contained in:
parent
d3171fb3c8
commit
bc8df2bb57
4 changed files with 14 additions and 14 deletions
|
|
@ -1,20 +1,20 @@
|
|||
<% title "Contact The Practical Dev" %>
|
||||
<% title "Contact #{community_qualified_name}" %>
|
||||
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="<%= app_url("/contact") %>" />
|
||||
<meta name="description" content="Contact The Practical Dev">
|
||||
<meta name="description" content="Contact #{community_qualified_name}">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="<%= app_url("/contact") %>" />
|
||||
<meta property="og:title" content="Contact The Practical Dev" />
|
||||
<meta property="og:title" content="Contact #{community_qualified_name}" />
|
||||
<meta property="og:image" content="<%= SiteConfig.main_social_image %>" />
|
||||
<meta property="og:description" content="<%= community_qualified_name %> is great!" />
|
||||
<meta property="og:site_name" content="<%= community_qualified_name %>" />
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:site" content="@<%= SiteConfig.social_media_handles["twitter"] %>">
|
||||
<meta name="twitter:title" content="Contact The Practical Dev">
|
||||
<meta name="twitter:title" content="Contact #{community_qualified_name}">
|
||||
<meta name="twitter:description" content="<%= community_qualified_name %> is great!">
|
||||
<meta name="twitter:image:src" content="<%= SiteConfig.main_social_image %>">
|
||||
<% end %>
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
</div>
|
||||
<div class="body">
|
||||
<p>
|
||||
The Practical Dev would love to hear from you!
|
||||
<%= community_qualified_name %> would love to hear from you!
|
||||
</p>
|
||||
<p>
|
||||
Email: <a href="mailto:<%= SiteConfig.email_addresses[:default] %>"><%= SiteConfig.email_addresses[:default] %></a> 😁
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<% title "About The Practical Dev" %>
|
||||
<% title "About #{community_qualified_name}" %>
|
||||
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="<%= app_url("/p/information") %>" />
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<% if @podcast && @podcast.persisted? %>
|
||||
<% title @podcast.title + " — The Practical Dev" %>
|
||||
<% title @podcast.title %>
|
||||
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="https://<%= ApplicationConfig["APP_DOMAIN"] %>/<%= @podcast.slug %>" />
|
||||
<link rel="canonical" href="<%= app_url(@podcast.slug) %>" />
|
||||
<meta name="description" content="<%= @podcast.description %>">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://<%= ApplicationConfig["APP_DOMAIN"] %>/<%= @podcast.slug %>" />
|
||||
<meta property="og:url" content="<%= app_url(@podcast.slug) %>" />
|
||||
<meta property="og:title" content="<%= @podcast.title %>" />
|
||||
<meta property="og:image" content="https://res.cloudinary.com/practicaldev/image/fetch/c_scale,h_300,w_300,r_max/u_listennow_kjml1x,y_45/<%= cloudinary(@podcast.image_url, 300) %>">
|
||||
|
||||
|
|
@ -24,13 +24,13 @@
|
|||
<% else %>
|
||||
<% title "Podcasts" %>
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="https://<%= ApplicationConfig["APP_DOMAIN"] %>/pod" />
|
||||
<link rel="canonical" href="<%= app_url(pod_path) %>" />
|
||||
<meta name="description" content="Discover technical podcasts for developers">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://<%= ApplicationConfig["APP_DOMAIN"] %>/pod" />
|
||||
<meta property="og:title" content="Podcasts on The Practical Dev" />
|
||||
<meta property="og:url" content="<%= app_url(pod_path) %>" />
|
||||
<meta property="og:title" content="Podcasts on <%= community_qualified_name %>" />
|
||||
<meta property="og:image" content="http://i.imgur.com/e5tJ9L9.png">
|
||||
|
||||
<meta property="og:description" content="Discover technical podcasts for developers" />
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:site" content="@<%= SiteConfig.social_media_handles["twitter"] %>">
|
||||
<meta name="twitter:creator" content="@<%= SiteConfig.social_media_handles["twitter"] %>">
|
||||
<meta name="twitter:title" content="Podcasts on The Practical Dev">
|
||||
<meta name="twitter:title" content="Podcasts on <%= community_qualified_name %>">
|
||||
<meta name="twitter:description" content="Discover technical podcasts for developers" />
|
||||
<meta name="twitter:image:src" content="http://i.imgur.com/e5tJ9L9.png">
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<meta name="twitter:description" content="<%= @user.summary %>">
|
||||
<meta name="twitter:image:src" content="<%= user_social_image_url(@user) %>">
|
||||
<% if @stories.any? %>
|
||||
<%= auto_discovery_link_tag(:rss, app_url("/feed/#{@user.username}"), title: "The Practical Dev RSS Feed") %>
|
||||
<%= auto_discovery_link_tag(:rss, app_url("/feed/#{@user.username}"), title: "#{community_qualified_name} RSS Feed") %>
|
||||
<% end %>
|
||||
|
||||
<% if @user.banned %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue