36 lines
1.5 KiB
Text
36 lines
1.5 KiB
Text
<h3>Publishing to dev.to from RSS</h3>
|
|
<p>
|
|
Posts will land in your <a href="/dashboard">dashboard</a> <b><em>as drafts</em></b>, and then you can publish from there (or give dev.to admins permission to do so).
|
|
</p>
|
|
<p>
|
|
Formatting will typically look good, but you may have to make manual fixes. In the case of Medium, you may have to manually fix embeds.
|
|
</p>
|
|
<p>
|
|
Your feed will be fetched every time you submit this form and updates will be automatically fetched periodically thereafter. Contact <a href="mailto:yo@dev.to">yo@dev.to</a> if you encounter issues.
|
|
</p>
|
|
<p>
|
|
FYI: Medium RSS feed URLs are <em>https://medium.com/feed/@your_username</em>
|
|
</p>
|
|
<p>
|
|
<em>By submitting your RSS Feed URL, you agree that you own and/or have permission to syndicate the associated content.</em>
|
|
</p>
|
|
<%= form_for(@user) do |f| %>
|
|
<div class="field">
|
|
<b><%= f.label :feed_url, "RSS Feed URL" %></b>
|
|
<%= f.url_field :feed_url, placeholder: "https://www.your-site-here.com/feed/" %>
|
|
</div>
|
|
<div class="checkbox-field">
|
|
<div class="sub-field">
|
|
<%= f.check_box :feed_mark_canonical %>
|
|
<%= f.label :feed_mark_canonical, "Mark the RSS source as canonical URL by default" %>
|
|
<div class="field-explainer">
|
|
If you check this box, the post will automatically mark the feed source as the canonical URL.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label></label>
|
|
<%= f.hidden_field :tab, value: @tab %>
|
|
<%= f.submit "SUBMIT", class: "cta" %>
|
|
</div>
|
|
<% end %>
|