[deploy] Cleanup some more dev.to generalisation (#7263)
* feat: rename ApplicationConfig[COMMUNITY_NAME] to just community_name * refactor: use the method name defined in the file * chore: use community name on the information template * refactor: move the social media links into a partial * chore: reuse the css * chore: update the partners page * chore: make the code-of conduct DEV related vars dynamic * feat: update the code of conduct * feat: first pass at the editor guide * feat: update more templates (maybe this one should go?) * feat: update the tags page * feat: set configurable email * feat: article urls updated to be dynamic * feat: add comment * feat: update rss guide to use local dev * chore: revert hashtag as it will come from https://github.com/thepracticaldev/dev.to/issues/7254 * chore: string interpolation * feat: add the code for the svg resizing on the information page.
This commit is contained in:
parent
0d59f92670
commit
586703f9b7
28 changed files with 113 additions and 116 deletions
|
|
@ -37,6 +37,7 @@
|
|||
@import 'typography';
|
||||
@import 'buttons';
|
||||
@import 'widgets';
|
||||
@import 'social_media';
|
||||
|
||||
@import 'ltags/LiquidTags';
|
||||
|
||||
|
|
|
|||
9
app/assets/stylesheets/social_media.scss
Normal file
9
app/assets/stylesheets/social_media.scss
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
.social-media-link {
|
||||
color: var(--card-secondary-color);
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.social-links .social-media-svg {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
|
|
@ -369,10 +369,6 @@
|
|||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
.social-icons a {
|
||||
color: var(--card-secondary-color);
|
||||
margin-right: 8px;
|
||||
}
|
||||
.row {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def title(page_title)
|
||||
derived_title = if page_title.include?(ApplicationConfig["COMMUNITY_NAME"])
|
||||
derived_title = if page_title.include?(community_name)
|
||||
page_title
|
||||
else
|
||||
page_title + " - #{ApplicationConfig['COMMUNITY_NAME']} Community 👩💻👨💻"
|
||||
"#{page_title} - #{community_qualified_name} 👩💻👨💻"
|
||||
end
|
||||
content_for(:title) { derived_title }
|
||||
derived_title
|
||||
|
|
|
|||
|
|
@ -68,12 +68,12 @@
|
|||
<span id="article-copy-link-announcer" role="alert" hidden>Copied to Clipboard</span>
|
||||
</clipboard-copy>
|
||||
</div>
|
||||
<web-share-wrapper shareurl="https://dev.to<%= @article.path %>" sharetext="<%= @article.title %>" template="web-share-button">
|
||||
<web-share-wrapper shareurl="<%= article_url(@article) %>" sharetext="<%= @article.title %>" template="web-share-button">
|
||||
<div class="dropdown-link-row">
|
||||
<a
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
href='https://twitter.com/intent/tweet?text="<%= u @article.title.strip %>" by <%= @article.user.twitter_username ? "@" + @article.user.twitter_username : @article.user.name %> %23DEVcommunity https://dev.to<%= @article.path %>'>
|
||||
href='https://twitter.com/intent/tweet?text="<%= u @article.title.strip %>" by <%= @article.user.twitter_username ? "@" + @article.user.twitter_username : @article.user.name %> %23DEVcommunity <%= article_url(@article) %>'>
|
||||
Share to Twitter
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -81,7 +81,7 @@
|
|||
<a
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
href="https://www.linkedin.com/shareArticle?mini=true&url=https://dev.to<%= @article.path %>&title=<%= @article.title %>&summary=<%= @article.description %>&source=dev.to">
|
||||
href="https://www.linkedin.com/shareArticle?mini=true&url=<%= article_url(@article) %>&title=<%= @article.title %>&summary=<%= @article.description %>&source=<%= community_name %>">
|
||||
Share to LinkedIn
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
<a
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
href="https://www.reddit.com/submit?url=https://dev.to<%= @article.path %>&title=<%= @article.title %>">
|
||||
href="https://www.reddit.com/submit?url=<%= article_url(@article) %>&title=<%= @article.title %>">
|
||||
Share to Reddit
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -97,7 +97,7 @@
|
|||
<a
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
href="https://news.ycombinator.com/submitlink?u=https://dev.to<%= @article.path %>&t=<%= @article.title %>">
|
||||
href="https://news.ycombinator.com/submitlink?u=<%= article_url(@article) %>&t=<%= @article.title %>">
|
||||
Share to Hacker News
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -105,7 +105,7 @@
|
|||
<a
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
href="https://www.facebook.com/sharer.php?u=https://dev.to<%= @article.path %>">
|
||||
href="https://www.facebook.com/sharer.php?u=<%= article_url(@article) %>">
|
||||
Share to Facebook
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -29,19 +29,13 @@
|
|||
<h4>Key links</h4>
|
||||
</header>
|
||||
<div class="widget-body social-icons">
|
||||
<% SiteConfig.social_media_handles.keys.each do |social_media_type| %>
|
||||
<% if SiteConfig.social_media_handles[social_media_type].present? %>
|
||||
<a href="<%= "https://#{social_media_type}.com/#{SiteConfig.social_media_handles[social_media_type]}" %>" target="_blank" rel="noopener">
|
||||
<%= inline_svg_tag("#{social_media_type}.svg", aria: true, title: "#{social_media_type.capitalize}", class: "crayons-icon") %>
|
||||
</a>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= render partial: "layouts/social_media" %>
|
||||
</div>
|
||||
|
||||
<div class="side-footer">
|
||||
<a href="/about">About</a>
|
||||
<a href="/sponsors">Sponsors</a>
|
||||
<a href="https://shop.dev.to/"><%= ApplicationConfig["COMMUNITY_NAME"] %> Shop</a>
|
||||
<a href="https://shop.dev.to/"><%= community_name %> Shop</a>
|
||||
<a href="/privacy">Privacy Policy</a>
|
||||
<a href="/terms">Terms of Use</a>
|
||||
<a href="/contact">Contact</a>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<% unless user_signed_in? %>
|
||||
<div class="widget signin-cta-widget">
|
||||
<header class="signin-cta-widget-header">
|
||||
Join <%= ApplicationConfig["COMMUNITY_NAME"] %>
|
||||
Join <%= community_name %>
|
||||
</header>
|
||||
<div class="widget-body">
|
||||
<% if SiteConfig.auth_allowed?("twitter") %>
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
<div class="primary-sticky-nav-element-wrapper">
|
||||
<% if index == 0 %>
|
||||
<div class="primary-sticky-nav-title">
|
||||
<img src="<%= asset_path "emoji/apple-fire.png" %>" alt="Fire emoji" loading="lazy"> Trending on <a href="<%= app_url %>"><%= ApplicationConfig["COMMUNITY_NAME"] %></a>
|
||||
<img src="<%= asset_path "emoji/apple-fire.png" %>" alt="Fire emoji" loading="lazy"> Trending on <a href="<%= app_url %>"><%= community_name %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
<a class="primary-sticky-nav-element" href="<%= article.path %>">
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
</div>
|
||||
<div class="narrow-nav-select" aria-label="feed-filter-select">
|
||||
<% if ["week", "month", "year", "infinity", "latest"].exclude?(params[:timeframe]) %>
|
||||
<button type="button" id="narrow-feed-butt"><MY <%= ApplicationConfig["COMMUNITY_NAME"] %> FEED></button>
|
||||
<button type="button" id="narrow-feed-butt"><MY <%= community_name %> FEED></button>
|
||||
<% elsif timeframe_check('week') %>
|
||||
<button type="button" id="narrow-feed-butt"><PAST WEEK></button>
|
||||
<% elsif timeframe_check('month') %>
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
</div>
|
||||
<div class="narrow-nav-select" aria-label="feed-filter-select">
|
||||
<% if ["week", "month", "year", "infinity", "latest"].exclude?(params[:timeframe]) %>
|
||||
<button type="button" id="narrow-feed-butt"><MY <%= ApplicationConfig["COMMUNITY_NAME"] %> FEED></button>
|
||||
<button type="button" id="narrow-feed-butt"><MY <%= community_name %> FEED></button>
|
||||
<% elsif timeframe_check('week') %>
|
||||
<button type="button" id="narrow-feed-butt"><PAST WEEK></button>
|
||||
<% elsif timeframe_check('month') %>
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@
|
|||
<% end %>
|
||||
<hr class="settings-hr"/>
|
||||
<% if @membership.role == "mod" %>
|
||||
<p>Questions about Connect Channel moderation? Contact <a href="mailto:yo@dev.to">yo@dev.to</a></p>
|
||||
<p>Questions about Connect Channel moderation? Contact <a href="mailto:<%= SiteConfig.default_site_email %>"><%= SiteConfig.default_site_email %></a></p>
|
||||
<% else %>
|
||||
<h3>Danger Zone</h3>
|
||||
<%= form_for(@membership, html: { method: :delete, onsubmit: "return confirm('Are you absolutely sure you want to leave this channel? This action is permanent.');" } ) do |f| %>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
<a href="/credits/new" class="cta cta-main-listing-form" data-no-instant>Purchase Credits Now</a>
|
||||
<% end %>
|
||||
</div>
|
||||
<p><em><%= ApplicationConfig["COMMUNITY_NAME"] %> admins may modify tags and categories to ensure accuracy. We may also take down and refund inappropriate listings.</em></p>
|
||||
<p><em><%= community_name %> admins may modify tags and categories to ensure accuracy. We may also take down and refund inappropriate listings.</em></p>
|
||||
<p><em>Listings expire 30 days after they are published or "bumped".</em></p>
|
||||
<div class="listings-current-credits">
|
||||
<% if @credits.size == 0 && (@organizations.blank? || @organizations.sum(:unspent_credits_count).zero?) %>
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
<span class="mod-actions hidden" style="display: none;">
|
||||
<a href="<%= comment.path %>/mod" rel="nofollow" style="color:#0a0a0a">Moderate</a>
|
||||
</span>
|
||||
<a href="/report-abuse?url=https://dev.to<%= comment.path %>">Report Abuse</a>
|
||||
<a href="/report-abuse?url=<%= comment_url(comment) %>">Report Abuse</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
</p>
|
||||
<p>
|
||||
Please consider creating an account on
|
||||
<a href="https://dev.to">dev.to</a>. It literally takes a few seconds and
|
||||
<a href="<%= app_url %>"><%= community_name %></a>. It literally takes a few seconds and
|
||||
<b><em>we'd appreciate the support so much</em></b>. ❤️
|
||||
</p>
|
||||
<p>Plus, no fake comments when you're signed in. 🙃</p>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
</svg>
|
||||
</div>
|
||||
<p>
|
||||
<b>Welcome to <%= ApplicationConfig["COMMUNITY_NAME"] %></b>
|
||||
<b>Welcome to <%= community_name %></b>
|
||||
</p>
|
||||
<p>
|
||||
Sign in below to compose your post and share it with the community.
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<div class="p-1">
|
||||
<a href="/p/information" class="crayons-link crayons-link--block" id="last-nav-link">All about <%= ApplicationConfig["COMMUNITY_NAME"] %></a>
|
||||
<a href="/p/information" class="crayons-link crayons-link--block" id="last-nav-link">All about <%= community_name %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
|||
11
app/views/layouts/_social_media.html.erb
Normal file
11
app/views/layouts/_social_media.html.erb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<% SiteConfig.social_media_handles.keys.each do |social_media_type| %>
|
||||
<% if SiteConfig.social_media_handles[social_media_type].present? %>
|
||||
<a
|
||||
href="<%= "https://#{social_media_type}.com/#{SiteConfig.social_media_handles[social_media_type]}" %>"
|
||||
target="_blank"
|
||||
class="social-media-link"
|
||||
rel="noopener">
|
||||
<%= inline_svg_tag("#{social_media_type}.svg", aria: true, title: social_media_type.capitalize, class: "crayons-icon social-media-svg") %>
|
||||
</a>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
<header class="top-bar" id="top-bar">
|
||||
<a href="#articles-list" class="skip-content-link">Skip to content</a>
|
||||
<div class="top-bar__container">
|
||||
<a href="/" class="top-bar--logo" aria-label="<%= ApplicationConfig["COMMUNITY_NAME"] %> Home"><%= logo_svg %></a>
|
||||
<a href="/" class="top-bar--logo" aria-label="<%= community_name %> Home"><%= logo_svg %></a>
|
||||
|
||||
<div id="pwa-nav-buttons" class="pwa-nav-buttons">
|
||||
<button type="button" id="app-back-button">
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
<a class="top-bar__link trusted-visible-block" aria-label="Modeartion" href="<%= mod_path %>">
|
||||
<%= inline_svg_tag("mod.svg", aria: true, class: "crayons-icon", title: "Moderation") %>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="/connect" id="connect-link" class="top-bar__link" aria-label="Connect">
|
||||
<%= inline_svg_tag("connect.svg", aria: true, class: "crayons-icon", title: "Connect") %>
|
||||
<span class="crayons-indicator crayons-indicator--accent hidden" id="connect-number"></span>
|
||||
|
|
|
|||
|
|
@ -4,15 +4,15 @@
|
|||
<td style="padding:4%;">
|
||||
<% if @membership.role == "mod" %>
|
||||
<h2 style="font-size: 25px; text-align: center;">
|
||||
You have been invited to be a Moderator of a Connect group on <%= ApplicationConfig["COMMUNITY_NAME"] %>.
|
||||
You have been invited to be a Moderator of a Connect group on <%= community_name %>.
|
||||
</h2>
|
||||
<% elsif @inviter %>
|
||||
<h2 style="font-size: 25px; text-align: center;">
|
||||
<%= link_to(@inviter.name, ApplicationController.helpers.user_url(@inviter)) %> sent you an invitation to join a Connect group on <%= ApplicationConfig["COMMUNITY_NAME"] %>.
|
||||
<%= link_to(@inviter.name, ApplicationController.helpers.user_url(@inviter)) %> sent you an invitation to join a Connect group on <%= community_name %>.
|
||||
</h2>
|
||||
<% else %>
|
||||
<h2 style="font-size: 25px; text-align: center;">
|
||||
You have been invited to a Connect group on <%= ApplicationConfig["COMMUNITY_NAME"] %>.
|
||||
You have been invited to a Connect group on <%= community_name %>.
|
||||
</h2>
|
||||
<% end %>
|
||||
<table>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
You are invited to the <%= ApplicationConfig["COMMUNITY_NAME"] %> Connect channel <%= @membership.chat_channel.channel_name %>
|
||||
You are invited to the <%= community_name %> Connect channel <%= @membership.chat_channel.channel_name %>
|
||||
|
||||
View Invitation: <%= ApplicationController.helpers.app_url('connect') %>
|
||||
|
|
|
|||
|
|
@ -1,43 +1,43 @@
|
|||
<p>All participants of The DEV Community are expected to abide by our Code of Conduct, both online and during in-person events that are hosted and/or associated with DEV.</p>
|
||||
<h2>Our Pledge</h2>
|
||||
<p>In the interest of fostering an open and welcoming environment, we as moderators of
|
||||
<a href="https://dev.to">DEV</a> pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
||||
</p>
|
||||
<h2>Our Standards</h2>
|
||||
<p>Examples of behavior that contributes to creating a positive environment include:</p>
|
||||
<ul>
|
||||
<li>Using welcoming and inclusive language</li>
|
||||
<li>Being respectful of differing viewpoints and experiences</li>
|
||||
<li>Referring to people by their preferred pronouns and using gender-neutral pronouns when uncertain</li>
|
||||
<li>Gracefully accepting constructive criticism</li>
|
||||
<li>Focusing on what is best for the community</li>
|
||||
<li>Showing empathy towards other community members</li>
|
||||
</ul>
|
||||
<p>Examples of unacceptable behavior by participants include:</p>
|
||||
<ul>
|
||||
<li>The use of sexualized language or imagery and unwelcome sexual attention or advances</li>
|
||||
<li>Trolling, insulting/derogatory comments, and personal or political attacks</li>
|
||||
<li>Public or private harassment</li>
|
||||
<li>Publishing others' private information, such as a physical or electronic address, without explicit permission</li>
|
||||
<li>Other conduct which could reasonably be considered inappropriate in a professional setting</li>
|
||||
<li>Dismissing or attacking inclusion-oriented requests</li>
|
||||
</ul>
|
||||
<p>We pledge to prioritize marginalized people’s safety over privileged people’s comfort. We will not act on complaints regarding:</p>
|
||||
<ul>
|
||||
<li>‘Reverse’ -isms, including ‘reverse racism,’ ‘reverse sexism,’ and ‘cisphobia’</li>
|
||||
<li>Reasonable communication of boundaries, such as 'leave me alone,' 'go away,' or 'I’m not discussing this with you.'</li>
|
||||
<li>Someone’s refusal to explain or debate social justice concepts</li>
|
||||
<li>Criticisms of racist, sexist, cissexist, or otherwise oppressive behavior or assumptions</li>
|
||||
</ul>
|
||||
<h2>Enforcement</h2>
|
||||
<p>Violations of the Code of Conduct may be reported by contacting the team via the
|
||||
<a href="https://dev.to/report-abuse">abuse report form</a> or by sending an email to yo@dev.to. All reports will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Further details of specific enforcement policies may be posted separately.
|
||||
</p>
|
||||
<p>Moderators have the right and responsibility to remove comments or other contributions that are not aligned to this Code of Conduct, or to suspend temporarily or permanently any members for other behaviors that they deem inappropriate, threatening, offensive, or harmful.</p>
|
||||
<h2>Attribution</h2>
|
||||
<p>This Code of Conduct is adapted from:</p>
|
||||
<ul>
|
||||
<li><a href="http://contributor-covenant.org/version/1/4">Contributor Covenant, version 1.4</a></li>
|
||||
<li><a href="http://www.writespeakcode.com/code-of-conduct.html">Write/Speak/Code</a></li>
|
||||
<li><a href="https://geekfeminism.org/about/code-of-conduct/">Geek Feminism</a></li>
|
||||
</ul>
|
||||
<p>All participants of the <%= community_qualified_name %> are expected to abide by our Code of Conduct, both online and during in-person events that are hosted and/or associated with <%= community_name %> .</p>
|
||||
<h2>Our Pledge</h2>
|
||||
<p>In the interest of fostering an open and welcoming environment, we as moderators of
|
||||
<a href="<%= app_url %>"><%= community_name %></a> pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
||||
</p>
|
||||
<h2>Our Standards</h2>
|
||||
<p>Examples of behavior that contributes to creating a positive environment include:</p>
|
||||
<ul>
|
||||
<li>Using welcoming and inclusive language</li>
|
||||
<li>Being respectful of differing viewpoints and experiences</li>
|
||||
<li>Referring to people by their preferred pronouns and using gender-neutral pronouns when uncertain</li>
|
||||
<li>Gracefully accepting constructive criticism</li>
|
||||
<li>Focusing on what is best for the community</li>
|
||||
<li>Showing empathy towards other community members</li>
|
||||
</ul>
|
||||
<p>Examples of unacceptable behavior by participants include:</p>
|
||||
<ul>
|
||||
<li>The use of sexualized language or imagery and unwelcome sexual attention or advances</li>
|
||||
<li>Trolling, insulting/derogatory comments, and personal or political attacks</li>
|
||||
<li>Public or private harassment</li>
|
||||
<li>Publishing others' private information, such as a physical or electronic address, without explicit permission</li>
|
||||
<li>Other conduct which could reasonably be considered inappropriate in a professional setting</li>
|
||||
<li>Dismissing or attacking inclusion-oriented requests</li>
|
||||
</ul>
|
||||
<p>We pledge to prioritize marginalized people’s safety over privileged people’s comfort. We will not act on complaints regarding:</p>
|
||||
<ul>
|
||||
<li>‘Reverse’ -isms, including ‘reverse racism,’ ‘reverse sexism,’ and ‘cisphobia’</li>
|
||||
<li>Reasonable communication of boundaries, such as 'leave me alone,' 'go away,' or 'I’m not discussing this with you.'</li>
|
||||
<li>Someone’s refusal to explain or debate social justice concepts</li>
|
||||
<li>Criticisms of racist, sexist, cissexist, or otherwise oppressive behavior or assumptions</li>
|
||||
</ul>
|
||||
<h2>Enforcement</h2>
|
||||
<p>Violations of the Code of Conduct may be reported by contacting the team via the
|
||||
<a href="<%= app_url("/report-abuse") %>">abuse report form</a> or by sending an email to <a href="mailto:<%= SiteConfig.default_site_email %>" rel="noopener noreferrer"><%= SiteConfig.default_site_email %></a>. All reports will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Further details of specific enforcement policies may be posted separately.
|
||||
</p>
|
||||
<p>Moderators have the right and responsibility to remove comments or other contributions that are not aligned to this Code of Conduct, or to suspend temporarily or permanently any members for other behaviors that they deem inappropriate, threatening, offensive, or harmful.</p>
|
||||
<h2>Attribution</h2>
|
||||
<p>This Code of Conduct is adapted from:</p>
|
||||
<ul>
|
||||
<li><a href="http://contributor-covenant.org/version/1/4">Contributor Covenant, version 1.4</a></li>
|
||||
<li><a href="http://www.writespeakcode.com/code-of-conduct.html">Write/Speak/Code</a></li>
|
||||
<li><a href="https://geekfeminism.org/about/code-of-conduct/">Geek Feminism</a></li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<p><em><b>We have two editor versions</b>. If you prefer Jekyll-style "frontmatter", switch to "basic markdown" in <a href="/settings/ux">/settings/ux</a>.</em></p>
|
||||
<h2 style="font-size:2.8em"><strong>Things to Know</strong></h2>
|
||||
<ul>
|
||||
<li>Use <a href="#markdown"><strong>markdown</strong></a> to write and format <a href="/">dev.to</a> posts.</li>
|
||||
<li>Use <a href="#markdown"><strong>markdown</strong></a> to write and format <a href="/"><%= community_name %></a> posts.</li>
|
||||
<li>Most of the time, you can write inline HTML directly into your posts.</li>
|
||||
<li>You can use <strong><a href="#liquidtags">Liquid tags</a></strong> to make add rich content such as tweets and videos.</li>
|
||||
<li>Links to unpublished posts are shareable for feedback/review.</li>
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
<p><em>Italics</em>: <code>*asterisks* or _underscores_</code></p>
|
||||
<p><strong>Bold</strong>: <code>**double asterisks** or __double underscores__</code></p>
|
||||
<h3><strong>Links</strong></h3>
|
||||
<p><a href="https://dev.to">I'm an inline link</a>: <code>[I'm an inline link](put-link-here)</code></p>
|
||||
<p><a href="<%= app_url %>">I'm an inline link</a>: <code>[I'm an inline link](put-link-here)</code></p>
|
||||
<p><a name="anchored">Anchored links</a> (For things like a Table of Contents)</p>
|
||||
<pre>
|
||||
## Table Of Contents
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
<p>We support native
|
||||
<a href="https://shopify.github.io/liquid/" target="_blank" rel="noopener">Liquid tags</a> in our editor, but have created our own custom tags listed below:
|
||||
</p>
|
||||
<h3><strong>dev.to Article/Post Embed</strong></h3>
|
||||
<h3><strong><%= community_name %> Article/Post Embed</strong></h3>
|
||||
<p>All you need is the full link of the article:</p>
|
||||
<code>{% link https://dev.to/kazz/boost-your-productivity-using-markdown-1be %}</code>
|
||||
<p>You can also use the slug like this:</p>
|
||||
|
|
@ -62,21 +62,21 @@
|
|||
<code>{% post https://dev.to/kazz/boost-your-productivity-using-markdown-1be %}</code>
|
||||
<p>or this:</p>
|
||||
<code>{% post kazz/boost-your-productivity-using-markdown-1be %}</code>
|
||||
<h3><strong>dev.to User Embed</strong></h3>
|
||||
<h3><strong><%= community_name %> User Embed</strong></h3>
|
||||
<p>All you need is the DEV username:</p>
|
||||
<code>{% user jess %}</code>
|
||||
<h3><strong>dev.to Tag Embed</strong></h3>
|
||||
<h3><strong><%= community_name %> Tag Embed</strong></h3>
|
||||
<p>All you need is the tag name:</p>
|
||||
<code>{% tag git %}</code>
|
||||
<h3><strong>dev.to Comment Embed</strong></h3>
|
||||
<h3><strong><%= community_name %> Comment Embed</strong></h3>
|
||||
<p>All you need is the
|
||||
<code>ID</code> at the end of a comment URL. To get the comment link, click either the timestamp or the menu button in the top right corner on a comment and then click "Permalink". Here's an example:
|
||||
</p>
|
||||
<code>{% devcomment 2d1a %}</code>
|
||||
<h3><strong>dev.to Podcast Episode Embed</strong></h3>
|
||||
<h3><strong><%= community_name %> Podcast Episode Embed</strong></h3>
|
||||
<p>All you need is the full link of the podcast episode:</p>
|
||||
<code>{% podcast https://dev.to/basecspodcast/s2e2--queues-irl %}</code>
|
||||
<h3><strong>dev.to Listing Embed</strong></h3>
|
||||
<h3><strong><%= community_name %> Listing Embed</strong></h3>
|
||||
<p>All you need is the full link of the listing:</p>
|
||||
<code>{% listing https://dev.to/listings/collabs/dev-is-open-source-823 %}</code>
|
||||
<p>You can also use the category and slug like this:</p>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
<ul>
|
||||
<li><code><title></code>: <strong>title</strong></li>
|
||||
<li><code><category></code>:
|
||||
<strong>tags</strong>, comma separated. Since only 4 tags can be used in a post on dev.to, only the first four tags will be used from the RSS item.
|
||||
<strong>tags</strong>, comma separated. Since only 4 tags can be used in a post on <%= community_name %>, only the first four tags will be used from the RSS item.
|
||||
</li>
|
||||
<li><code><link></code>:
|
||||
<strong>canonical_url</strong><br />Only if the "Mark the RSS source as canonical URL by default" option is enabled in the Publishing from RSS settings.
|
||||
|
|
|
|||
|
|
@ -1,20 +1,16 @@
|
|||
<% title "The Practical Dev Code of Conduct" %>
|
||||
<% title "#{community_qualified_name} Code of Conduct" %>
|
||||
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="<%= app_url("/code-of-conduct") %>" />
|
||||
<meta name="description" content="The Practical Dev Code of Conduct">
|
||||
<meta name="description" content="<%= community_qualified_name %> Code of Conduct">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="<%= app_url("/code-of-conduct") %>" />
|
||||
<meta property="og:title" content="The Practical Dev Code of Conduct" />
|
||||
<%# <meta property="og:image" content="<%= SiteConfig.main_social_image %>" /> %>
|
||||
<%# <meta property="og:description" content="<%= community_qualified_name %> is great!" /> %>
|
||||
<meta property="og:title" content="<%= community_qualified_name %> Code of Conduct" />
|
||||
<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="The Practical Dev Code of Conduct">
|
||||
<%# <meta name="twitter:description" content="<%= community_qualified_name %> is great!"> %>
|
||||
<%# <meta name="twitter:image:src" content="<%= SiteConfig.main_social_image %>"> %>
|
||||
<meta name="twitter:title" content="<%= community_qualified_name %> Code of Conduct">
|
||||
<% end %>
|
||||
|
||||
<div class="blank-space"></div>
|
||||
|
|
|
|||
|
|
@ -30,26 +30,20 @@
|
|||
filter: invert(0);
|
||||
filter: var(--theme-social-icon-invert, invert(0));
|
||||
}
|
||||
|
||||
.social-links img {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
margin: 5px 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="blank-space"></div>
|
||||
<div class="container article">
|
||||
<div class="title">
|
||||
<h1>
|
||||
More information about dev.to(👋)
|
||||
More information about <%= community_name %> 👋
|
||||
</h1>
|
||||
</div>
|
||||
<div class="body">
|
||||
<ul class="key-links">
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/about">About</a></li>
|
||||
<li><a href="https://shop.dev.to/">DEV Shop</a></li>
|
||||
<li><a href="https://shop.dev.to/"><%= community_name %> Shop</a></li>
|
||||
<li><a href="/sponsors">Sponsors</a></li>
|
||||
<li><a href="/faq">FAQ</a></li>
|
||||
<li><a href="/privacy">Privacy Policy</a></li>
|
||||
|
|
@ -61,10 +55,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
<div class="social-links">
|
||||
<a href="https://twitter.com/thepracticaldev" target="_blank" rel="noopener"><img src="<%= asset_path("twitter-logo.svg") %>" alt="DEV Twitter profile"></a>
|
||||
<a href="https://github.com/thepracticaldev" target="_blank" rel="noopener"><img src="<%= asset_path("github-logo.svg") %>" alt="DEV GitHub profile"></a>
|
||||
<a href="https://instagram.com/thepracticaldev" target="_blank" rel="noopener"><img src="<%= asset_path("instagram-logo.svg") %>" alt="DEV Instagram profile"></a>
|
||||
<a href="https://facebook.com/thepracticaldev" target="_blank" rel="noopener"><img src="<%= asset_path("facebook-logo.svg") %>" alt="DEV Facebook profile"></a>
|
||||
<a href="https://twitch.tv/thepracticaldev" target="_blank" rel="noopener"><img src="<%= asset_path("twitch-logo.svg") %>" alt="DEV Twitch profile"></a>
|
||||
<%= render partial: "layouts/social_media" %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="<%= app_url("/sponsors") %>" />
|
||||
<meta name="description" content="dev.to | Sponsors">
|
||||
<meta name="description" content="<%= community_name %> | Sponsors">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
<% end %>
|
||||
|
||||
|
|
@ -71,6 +71,6 @@
|
|||
<% end %>
|
||||
</div>
|
||||
|
||||
<h5>Interested in sponsoring dev.to? Check out our <a href="https://dev.to/partnerships">partnerships</a> page.</h5>
|
||||
<h5>Interested in sponsoring <%= community_name %>? Check out our <a href="<%= app_url("/partnerships") %>">partnerships</a> page.</h5>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div class="narrow-nav-menu" id="narrow-nav-menu" aria-label="feed-nav-menu">
|
||||
<a href="<%= list_path %>/" class="<%= "selected" if ["week", "month", "year", "infinity", "latest"].exclude?(params[:timeframe]) %>"><MY <%= ApplicationConfig["COMMUNITY_NAME"] %> FEED></a>
|
||||
<a href="<%= list_path %>/" class="<%= "selected" if ["week", "month", "year", "infinity", "latest"].exclude?(params[:timeframe]) %>"><MY <%= community_name %> FEED></a>
|
||||
<a href="<%= list_path %>/top/week" class="<%= "selected" if timeframe_check("week") %>"><PAST WEEK></a>
|
||||
<a href="<%= list_path %>/top/month" class="<%= "selected" if timeframe_check("month") %>"><PAST MONTH></a>
|
||||
<a href="<%= list_path %>/top/year" class="<%= "selected" if timeframe_check("year") %>"><PAST YEAR></a>
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
<% title "Tags on dev.to" %>
|
||||
<% title "Tags on #{community_name}" %>
|
||||
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="<%= app_url("/about") %>" />
|
||||
<meta name="description" content="Tags to follow on dev.to">
|
||||
<meta name="description" content="Tags to follow on <%= community_name %>">
|
||||
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
||||
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="<%= app_url("/about") %>" />
|
||||
<meta property="og:title" content="Tags to follow on dev.to" />
|
||||
<meta property="og:title" content="Tags to follow on <%= community_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="About The Practical Dev">
|
||||
<meta name="twitter:title" content="About <%= community_name %>">
|
||||
<meta name="twitter:description" content="<%= community_qualified_name %> is great!">
|
||||
<meta name="twitter:image:src" content="<%= SiteConfig.main_social_image %>">
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue