diff options
Diffstat (limited to 'themes/classic/source')
-rw-r--r-- | themes/classic/source/_includes/header.html | 3 | ||||
-rw-r--r-- | themes/classic/source/javascripts/octopress.js | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/themes/classic/source/_includes/header.html b/themes/classic/source/_includes/header.html index 4e0519e6..e08da6dc 100644 --- a/themes/classic/source/_includes/header.html +++ b/themes/classic/source/_includes/header.html @@ -1 +1,4 @@ <h1><a href="/">{{ site.title }}</a></h1> +{% if site.subtitle %} + <h2>{{ site.subtitle }}</h2> +{% endif %} diff --git a/themes/classic/source/javascripts/octopress.js b/themes/classic/source/javascripts/octopress.js index 68e5139b..dc391aac 100644 --- a/themes/classic/source/javascripts/octopress.js +++ b/themes/classic/source/javascripts/octopress.js @@ -24,12 +24,17 @@ function addSidebarToggler() { function testFeatures() { var features = ['maskImage']; $(features).map(function(feature){ - if(Modernizr.testAllProps(feature)) { + if (Modernizr.testAllProps(feature)) { $('html').addClass(feature); } else { $('html').addClass('no-'+feature); } }); + if ("placeholder" in document.createElement("input")) { + $('html').addClass('placeholder'); + } else { + $('html').addClass('no-placeholder'); + } } function addDivLines(){ |