mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-10 01:42:32 +00:00
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
|
||||
|
||||
require 'pathname'
|
||||
|
||||
compile '/' do
|
||||
layout 'home'
|
||||
filter :rubypants
|
||||
|
@ -56,9 +54,7 @@ end
|
|||
# end
|
||||
|
||||
route %r{^/(?:screen|mobile)/$} do
|
||||
path = Pathname(item.identifier)
|
||||
'/' + path.basename.to_s + '.css'
|
||||
# (path.dirname + 'articles.json').to_s
|
||||
File.join("", "css", File.basename(item.identifier) + ".css")
|
||||
end
|
||||
|
||||
route '*' do
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
<meta name="viewport" content="width=devicewidth" />
|
||||
<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="/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/screen.css" type="text/css" media="screen,projection" />
|
||||
<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-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" />
|
||||
|
|
Loading…
Reference in a new issue