From debedc22aa9a7712cf626938ea4ce83ed38404d1 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Sun, 24 Mar 2013 17:42:02 +0100 Subject: [PATCH] Add influad ad --- content/css/_main.scss | 23 +++++++++++++++++++++++ layouts/post.haml | 15 +++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/content/css/_main.scss b/content/css/_main.scss index f4306cf..b7c450b 100644 --- a/content/css/_main.scss +++ b/content/css/_main.scss @@ -2,6 +2,29 @@ body { font: 14px/20px "Open Sans", Helvetica, "Nimbus Sans L", sans-serif; } +#influad { + width: 130px; + + margin-top: 16px; + + .influads_text { + margin-top: 6px; + + color: #696969; + text-align: justify; + + font-size: 11px; + line-height: 15px; + a { + color: #696969; + } + } + + .influads_powered_div { + font-size: 10px; + } +} + ul.tla { font-size: 9px; color: #999; diff --git a/layouts/post.haml b/layouts/post.haml index fa6a8b8..eb0906c 100644 --- a/layouts/post.haml +++ b/layouts/post.haml @@ -16,6 +16,21 @@ #{get_pretty_date(item)} and tagged with #{get_tags(item)}. + %aside.widget.widget_influads + #influad + - if ENV['NANOC_ENV'] == "development" + .influads_block + .influads_img + %img(src="http://placehold.it/130x100&text=Influad%20(130x100)" width="130" height="100") + .influads_text + = link_to "The exquisite, low-cost way to design, send, and track email.", "#" + .influads_powered_div + = link_to "Powered by InfluAds", "#" + - else + :plain +
+ + :javascript var disqus_url = "#{url_for(item)}"; (function() {