Add /survey and modified several page titles (droped the the) (#515)
* Add /survey and modified several page titles (droped the the) * Add emojis to page title
This commit is contained in:
parent
0ad8cd9eab
commit
7e9280390c
12 changed files with 66 additions and 14 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "The DEV Community",
|
||||
"name": "DEV Community",
|
||||
"short_name": "dev.to",
|
||||
"description": "Where programmers share ideas, experiences, and help each other grow.",
|
||||
"start_url": "/",
|
||||
|
|
|
|||
|
|
@ -1,11 +1,15 @@
|
|||
class PagesController < ApplicationController
|
||||
# No authorization required for entirely public controller
|
||||
before_action :set_cache_control_headers, only: [:rlyweb, :now, :events, :membership]
|
||||
before_action :set_cache_control_headers, only: [:rlyweb, :now, :events, :membership, :survey]
|
||||
|
||||
def now
|
||||
set_surrogate_key_header "now_page"
|
||||
end
|
||||
|
||||
def survey
|
||||
set_surrogate_key_header "survey_page"
|
||||
end
|
||||
|
||||
def about
|
||||
set_surrogate_key_header "about_page"
|
||||
end
|
||||
|
|
|
|||
|
|
@ -35,8 +35,13 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def title(page_title)
|
||||
content_for(:title){ page_title }
|
||||
page_title
|
||||
derived_title = if page_title.include?("DEV")
|
||||
page_title
|
||||
else
|
||||
page_title + " - DEV Community 👩💻👨💻"
|
||||
end
|
||||
content_for(:title){ derived_title }
|
||||
derived_title
|
||||
end
|
||||
|
||||
def icon(name, pixels = "20")
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
xml.instruct! :xml, :version => "1.0"
|
||||
xml.rss :version => "2.0" do
|
||||
xml.channel do
|
||||
xml.title @user ? @user.name : "The DEV Community"
|
||||
xml.author @user ? @user.name : "The DEV Community"
|
||||
xml.title @user ? @user.name : "DEV Community"
|
||||
xml.author @user ? @user.name : "DEV Community"
|
||||
xml.description @user ? @user.summary : "Where programmers share ideas and help each other grow."
|
||||
xml.link @user ? "https://dev.to" + @user.path : "https://dev.to"
|
||||
xml.language "en"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<meta name="twitter:image:src" content="<%= GeneratedImage.new(@user).social_image %>" >
|
||||
<%= auto_discovery_link_tag(:rss, "https://dev.to/feed/#{@user.username}", {title: "The Practical Dev RSS Feed"}) %>
|
||||
<% elsif @tag.present? %>
|
||||
<% title "#{@tag}#{ " - top this #{params[:timeframe]}" if params[:timeframe].present? } - The DEV Community" %>
|
||||
<% title "#{@tag}#{ " - top this #{params[:timeframe]}" if params[:timeframe].present? }" %>
|
||||
<link rel="canonical" href="https://dev.to/t/<%= @tag %>"/>
|
||||
<meta name="description" content="<%= @tag %> content on dev.to">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
<% end %>
|
||||
|
||||
<% elsif @query.present? %>
|
||||
<% title "DEV => Search Results" %>
|
||||
<% title "Search Results" %>
|
||||
<link rel="canonical" href="https://dev.to/search"/>
|
||||
<meta name="description" content="Where programmers share ideas and help each other grow.">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
|
|
@ -67,7 +67,11 @@
|
|||
<% elsif @podcast_index %>
|
||||
<%= render "podcast_episodes/meta" %>
|
||||
<% else %>
|
||||
<% title "The DEV Community#{ " - top this #{params[:timeframe]}" if params[:timeframe].present? }" %>
|
||||
<% if params[:timeframe].present? %>
|
||||
<% title "DEV Community 👩💻👨💻 - top posts this #{params[:timeframe]}" %>
|
||||
<% else %>
|
||||
<% title "DEV Community 👩💻👨💻 - Where software engineers connect, build their resumes, and grow." %>
|
||||
<% end %>
|
||||
<link rel="canonical" href="https://dev.to<%= request.path %>"/>
|
||||
<meta name="description" content="Where programmers share ideas and help each other grow.">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@
|
|||
<meta itemprop="width" content="192">
|
||||
<meta itemprop="height" content="192">
|
||||
</div>
|
||||
<meta itemprop="name" content="The DEV Community">
|
||||
<meta itemprop="name" content="DEV Community">
|
||||
</div>
|
||||
<header>
|
||||
<% if !@article.published %>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
<% title "DEV Connect" %>
|
||||
<% title "DEV Connect 👩💻 💬 👨💻" %>
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="https://dev.to/connect"/>
|
||||
<meta name="description" content="DEV Connect">
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<div id="footer-container" class="container <%= "centered-footer" unless current_page.include?("stories-show") %>">
|
||||
<div class="inner-footer-container">
|
||||
<a href="/">Home</a> <a href="/about">About</a> <a href="/membership">Sustaining Membership</a> <a href="/privacy">Privacy Policy</a> <a href="/terms">Terms of Use</a> <a href="/contact">Contact</a> <a href="/code-of-conduct">Code of Conduct</a>
|
||||
The DEV Community copyright 2018 🔥
|
||||
DEV Community copyright 2018 🔥
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<% title = yield(:title) %>
|
||||
<title><%= title || 'The DEV Community' %></title>
|
||||
<title><%= title || 'DEV Community' %></title>
|
||||
<% if is_internal_navigation? %>
|
||||
<style>
|
||||
.universal-page-content-wrapper{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<% if user_signed_in? %>
|
||||
<%= javascript_pack_tag 'chat', defer: true %>
|
||||
<% end %>
|
||||
<% title "DEV LIVE" %>
|
||||
<% title "DEV Live 📡👩💻👨💻👩💻👨💻" %>
|
||||
<link rel="canonical" href="https://dev.to/live"/>
|
||||
<meta name="description" content="DEV LIVE">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
|
|
|
|||
38
app/views/pages/survey.html.erb
Normal file
38
app/views/pages/survey.html.erb
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<% title "State of the Web Survey" %>
|
||||
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="https://dev.to/survey"/>
|
||||
<meta name="description" content="State of the Web Survey for developers">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://dev.to/survey" />
|
||||
<meta property="og:title" content="State of the Web Survey - DEV Community" />
|
||||
<meta property="og:image" content="https://thepracticaldev.s3.amazonaws.com/i/wngaap4y0ol1907w38kc.png" />
|
||||
<meta property="og:description" content="A five minute survey about the web and web development. All devs are welcome to take part." />
|
||||
<meta property="og:site_name" content="The Practical Dev" />
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:site" content="@ThePracticalDev">
|
||||
<meta property="og:title" content="State of the Web Survey - DEV Community" />
|
||||
<meta property="og:description" content="A five minute survey about the web and web development. All devs are welcome to take part." />
|
||||
<meta name="twitter:image:src" content="https://thepracticaldev.s3.amazonaws.com/i/wngaap4y0ol1907w38kc.png">
|
||||
<% end %>
|
||||
|
||||
|
||||
|
||||
<header>
|
||||
<div class="blank-space"></div>
|
||||
</header>
|
||||
<div class="container article">
|
||||
<div class="title" style="text-align:center">
|
||||
<h1 style="margin-top: 2vw">
|
||||
State of the Web Survey
|
||||
</h1>
|
||||
<p>Thank you for taking five minutes to fill out this DEV Community survey.</p>
|
||||
<p>All responses are 100% private. ❤️<p>
|
||||
</div>
|
||||
<div class="body" style="margin-top:0;padding-top:0;">
|
||||
<div class="typeform-widget" data-url="https://thepracticaldev.typeform.com/to/r5V9jm?source=user-<%= user_signed_in? %>" style="width: 100%; height: 550px;"></div> <script> (function() { var qs,js,q,s,d=document, gi=d.getElementById, ce=d.createElement, gt=d.getElementsByTagName, id="typef_orm", b="https://embed.typeform.com/"; if(!gi.call(d,id)) { js=ce.call(d,"script"); js.id=id; js.src=b+"embed.js"; q=gt.call(d,"script")[0]; q.parentNode.insertBefore(js,q) } })() </script> <div style="font-family: Sans-Serif;font-size: 12px;color: #999;opacity: 0.5; padding-top: 5px;"> powered by <a href="https://admin.typeform.com/signup?utm_campaign=r5V9jm&utm_source=typeform.com-11461475-Pro&utm_medium=typeform&utm_content=typeform-embedded-poweredbytypeform&utm_term=EN" style="color: #999" target="_blank">Typeform</a> </div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -169,6 +169,7 @@ Rails.application.routes.draw do
|
|||
get "/welcome" => "pages#welcome"
|
||||
get "/💸", to: redirect("t/hiring")
|
||||
get "/security", to: "pages#bounty"
|
||||
get "/survey", to: "pages#survey"
|
||||
get "/now" => "pages#now"
|
||||
get "/membership" => "pages#membership"
|
||||
get "/events" => "events#index"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue