mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
fix link post titles in RSS feed
This commit is contained in:
parent
b9730bdf0e
commit
36b3ae5b9d
3 changed files with 1 additions and 3 deletions
2
blog.rb
2
blog.rb
|
|
@ -170,7 +170,7 @@ class Blag
|
||||||
xml.instruct! 'xml-stylesheet', :href => 'http://samhuri.net/assets/blog-all.min.css', :type => 'text/css'
|
xml.instruct! 'xml-stylesheet', :href => 'http://samhuri.net/assets/blog-all.min.css', :type => 'text/css'
|
||||||
xml.rss :version => '2.0' do
|
xml.rss :version => '2.0' do
|
||||||
xml.channel do
|
xml.channel do
|
||||||
xml.title title
|
xml.title post[:link] ? "→ #{title}" : title
|
||||||
xml.description subtitle
|
xml.description subtitle
|
||||||
xml.link url
|
xml.link url
|
||||||
xml.pubDate posts.first[:rfc822]
|
xml.pubDate posts.first[:rfc822]
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,3 @@
|
||||||
<p><a href="{{url}}">∞</a></p>
|
<p><a href="{{url}}">∞</a></p>
|
||||||
{{/post}}
|
{{/post}}
|
||||||
</article>
|
</article>
|
||||||
<p class="sep">༄</p>
|
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,3 @@
|
||||||
{{{html}}}
|
{{{html}}}
|
||||||
{{/post}}
|
{{/post}}
|
||||||
</article>
|
</article>
|
||||||
<p class="sep">༄</p>
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue