disqus, feed fix, deploy gem

This commit is contained in:
Mark Moser
2014-09-21 14:49:05 -05:00
parent 8b89563825
commit 4e77b049e6
5 changed files with 62 additions and 52 deletions

View File

@ -1,13 +1,13 @@
xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
site_url = "http://blog.url.com/"
xml.title "Blog Name"
xml.subtitle "Blog subtitle"
site_url = "http://markamoser.com/"
xml.title "Mark A Moser"
xml.subtitle "Sharing what I learn"
xml.id URI.join(site_url, blog.options.prefix.to_s)
xml.link "href" => URI.join(site_url, blog.options.prefix.to_s)
xml.link "href" => URI.join(site_url, current_page.path), "rel" => "self"
xml.updated(blog.articles.first.date.to_time.iso8601) unless blog.articles.empty?
xml.author { xml.name "Blog Author" }
xml.author { xml.name "Mark Moser" }
blog.articles[0..5].each do |article|
xml.entry do
@ -16,7 +16,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.id URI.join(site_url, article.url)
xml.published article.date.to_time.iso8601
xml.updated File.mtime(article.source_file).iso8601
xml.author { xml.name "Article Author" }
xml.author { xml.name "Mark Moser" }
# xml.summary article.summary, "type" => "html"
xml.content article.body, "type" => "html"
end

View File

@ -10,3 +10,23 @@
%p published around #{current_article.date.strftime('%m/%d/%Y')}
.col-sm-3
= partial 'shared/blog_list'
- if build?
.row
.col-sm-10.col-sm-offset-1
#disqus_thread
:coffee
disqus_shortname = 'markamoser'
# * * * DON'T EDIT BELOW THIS LINE * * *
(->
dsq = document.createElement("script")
dsq.type = "text/javascript"
dsq.async = true
dsq.src = "//" + disqus_shortname + ".disqus.com/embed.js"
(document.getElementsByTagName("head")[0] or document.getElementsByTagName("body")[0]).appendChild dsq
return
)()
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>