mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +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
|
def copy_assets
|
||||||
Dir[File.join(@src, 'css', '*.css')].each do |stylesheet|
|
Dir[File.join(@src, 'css', '*.css')].each do |stylesheet|
|
||||||
|
puts stylesheet
|
||||||
FileUtils.cp(stylesheet, @css_dest)
|
FileUtils.cp(stylesheet, @css_dest)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -191,8 +192,10 @@ class Blag
|
||||||
xml.instruct! :xml, :version => '1.0'
|
xml.instruct! :xml, :version => '1.0'
|
||||||
xml.instruct! 'xml-stylesheet', :href => 'http://samhuri.net/css/blog-all.min.css', :type => 'text/css'
|
xml.instruct! 'xml-stylesheet', :href => 'http://samhuri.net/css/blog-all.min.css', :type => 'text/css'
|
||||||
|
|
||||||
post[:styles].each do |style|
|
posts.each do |post|
|
||||||
xml.instruct! 'xml-stylesheet', :href => "http://samhuri.net/css/#{style}.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'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
xml.rss :version => '2.0' do
|
xml.rss :version => '2.0' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue