forked from wezm/wezm.net
Put CSS in the css output directory
This commit is contained in:
parent
a8eeea6711
commit
b59b466b82
2 changed files with 3 additions and 7 deletions
6
Rules
6
Rules
|
@ -1,7 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
require 'pathname'
|
|
||||||
|
|
||||||
compile '/' do
|
compile '/' do
|
||||||
layout 'home'
|
layout 'home'
|
||||||
filter :rubypants
|
filter :rubypants
|
||||||
|
@ -56,9 +54,7 @@ end
|
||||||
# end
|
# end
|
||||||
|
|
||||||
route %r{^/(?:screen|mobile)/$} do
|
route %r{^/(?:screen|mobile)/$} do
|
||||||
path = Pathname(item.identifier)
|
File.join("", "css", File.basename(item.identifier) + ".css")
|
||||||
'/' + path.basename.to_s + '.css'
|
|
||||||
# (path.dirname + 'articles.json').to_s
|
|
||||||
end
|
end
|
||||||
|
|
||||||
route '*' do
|
route '*' do
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<meta name="viewport" content="width=devicewidth" />
|
<meta name="viewport" content="width=devicewidth" />
|
||||||
<title><%= [@item[:title], 'WezM.net'].compact.join(' • ') %></title>
|
<title><%= [@item[:title], 'WezM.net'].compact.join(' • ') %></title>
|
||||||
<link rel="stylesheet" href="/css/reset.css" type="text/css" media="screen,projection" />
|
<link rel="stylesheet" href="/css/reset.css" type="text/css" media="screen,projection" />
|
||||||
<link rel="stylesheet" href="/screen.css" type="text/css" media="screen,projection" />
|
<link rel="stylesheet" href="/css/screen.css" type="text/css" media="screen,projection" />
|
||||||
<link rel="stylesheet" href="/mobile.css" type="text/css" media="only screen and (max-device-width: 480px)" />
|
<link rel="stylesheet" href="/css/mobile.css" type="text/css" media="only screen and (max-device-width: 480px)" />
|
||||||
<link rel="alternate" href="http://feeds.feedburner.com/wezm" type="application/atom+xml" title="WezM.net - All Articles" />
|
<link rel="alternate" href="http://feeds.feedburner.com/wezm" type="application/atom+xml" title="WezM.net - All Articles" />
|
||||||
<link rel="alternate" href="http://feeds.feedburner.com/wezm-technical" type="application/atom+xml" title="WezM.net - Technical Articles" />
|
<link rel="alternate" href="http://feeds.feedburner.com/wezm-technical" type="application/atom+xml" title="WezM.net - Technical Articles" />
|
||||||
<link rel="alternate" href="http://feeds.feedburner.com/wezm-personal" type="application/atom+xml" title="WezM.net - Personal Articles" />
|
<link rel="alternate" href="http://feeds.feedburner.com/wezm-personal" type="application/atom+xml" title="WezM.net - Personal Articles" />
|
||||||
|
|
Loading…
Reference in a new issue