Permalink
Browse files

Extract user-specific vars to env vars

  • Loading branch information...
1 parent bf0e1b9 commit 1c74c6afc9dec7377d73059d551eb22ffa221bbc @rwdaigle committed Feb 20, 2012
Showing with 19 additions and 14 deletions.
  1. +2 −2 README.md
  2. +16 −11 views/footer.haml
  3. +1 −1 views/table_of_contents.haml
View
@@ -1,6 +1,6 @@
-# Clean Theme for Nesta CMS
+# "Clean" Theme for Nesta CMS
-The clean theme was developed for Nesta CMS with a focus on:
+The Clean theme was developed for Nesta CMS with a focus on:
* Readability: the content should get main billing
* Syntax highlighting: developed by a developer for developers it should always have first-class support for syntax highlighting
View
@@ -1,15 +1,20 @@
.left
- %a(href="https://twitter.com/#!/#{ENV['']}")
- %img(src="/clean/images/twitter.png")
- %a(href="https://github.com/rwdaigle")
- %img(src="/clean/images/github.png")
- %a(href="http://www.linkedin.com/in/rwdaigle")
- %img(src="/clean/images/linkedin.png")
- %a(href="http://feeds.feedburner.com/RyansScraps")
+ - if twitter = ENV['NESTA_AUTHOR__TWITTER']
+ %a(href="https://twitter.com/#!/#{ENV['NESTA_AUTHOR__TWITTER']}")
+ %img(src="/clean/images/twitter.png")
+ - if github = ENV['NESTA_AUTHOR__GITHUB']
+ %a(href="https://github.com/#{ENV['NESTA_AUTHOR__GITHUB']}")
+ %img(src="/clean/images/github.png")
+ - if linkedin = ENV['NESTA_AUTHOR__LINKEDIN']
+ %a(href="http://www.linkedin.com/in/#{ENV['NESTA_AUTHOR__LINKEDIN']}")
+ %img(src="/clean/images/linkedin.png")
+ %a(href="#{ENV['NESTA_FEED_URL'] || '/articles.xml' }")
%img(src="/clean/images/feed.png")
- %a(href="mailto:ryan.daigle@gmail.com")
- %img(src="/clean/images/email.png")
+ - if email = Nesta::Config.author['email']
+ %a(href="mailto:#{email}")
+ %img(src="/clean/images/email.png")
.right
- %a(href="http://heroku.com")
- %img(src="/clean/images/heroku.png")
+ -if ENV['NESTA_POWERED_BY']
+ %a(href="http://heroku.com")
+ %img(src="/clean/images/heroku.png")
@@ -1,4 +1,4 @@
-- if toc_headers.any?
+- if toc_headers && toc_headers.any?
%h1 Contents
%ol
- toc_headers.each do |id, header|

0 comments on commit 1c74c6a

Please sign in to comment.