mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
fix blog stylesheets in rss
This commit is contained in:
parent
87ca9bc101
commit
3a3e6062ae
1 changed files with 5 additions and 2 deletions
|
|
@ -100,6 +100,7 @@ class Blag
|
|||
|
||||
def copy_assets
|
||||
Dir[File.join(@src, 'css', '*.css')].each do |stylesheet|
|
||||
puts stylesheet
|
||||
FileUtils.cp(stylesheet, @css_dest)
|
||||
end
|
||||
end
|
||||
|
|
@ -191,8 +192,10 @@ class Blag
|
|||
xml.instruct! :xml, :version => '1.0'
|
||||
xml.instruct! 'xml-stylesheet', :href => 'http://samhuri.net/css/blog-all.min.css', :type => 'text/css'
|
||||
|
||||
post[:styles].each do |style|
|
||||
xml.instruct! 'xml-stylesheet', :href => "http://samhuri.net/css/#{style}.min.css", :type => 'text/css'
|
||||
posts.each do |post|
|
||||
post[:styles].each do |style|
|
||||
xml.instruct! 'xml-stylesheet', :href => "http://samhuri.net/css/#{style}.min.css", :type => 'text/css'
|
||||
end
|
||||
end
|
||||
|
||||
xml.rss :version => '2.0' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue