diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-06-08 18:58:00 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-06-08 18:58:00 -0400 |
commit | a20dc08e105e85171bf5466cacb475b3bbcd8820 (patch) | |
tree | 153d76296a1713b2a905027a1d7646d890b655ba /themes/classic/source | |
parent | 901f4d7f29696df7f8254d58dc35fe7e2947da10 (diff) | |
download | my_new_personal_website-a20dc08e105e85171bf5466cacb475b3bbcd8820.tar.xz my_new_personal_website-a20dc08e105e85171bf5466cacb475b3bbcd8820.zip |
1. Added support for styled subtitle in header
2. Added javascript detection for placeholder
3. Added backup style for search field with no-placeholder support
Diffstat (limited to '')
-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(){ |