diff --git a/components/siteheader.tpl b/components/siteheader.tpl index 09c4c75..19d439f 100644 --- a/components/siteheader.tpl +++ b/components/siteheader.tpl @@ -1,3 +1,5 @@ + + diff --git a/images/reykjavik_photo01.jpg b/images/reykjavik_photo01.jpg new file mode 100644 index 0000000..c314fca Binary files /dev/null and b/images/reykjavik_photo01.jpg differ diff --git a/javascripts/scripts.js b/javascripts/scripts.js index a317fb4..4fd21f7 100644 --- a/javascripts/scripts.js +++ b/javascripts/scripts.js @@ -24,4 +24,12 @@ }); $('a.news-older-show').click(function() { $(this).addClass('no-bg'); $('.news-older-hidden').show(); return false; }); + + if ($('.form_error, .form_notice, .comment-errors').length > 0) { + var top = $('.form_error, .form_notice, .comment-errors').eq(0).offset().top - 50; + if (top < 0) { top = 0; } + $('html, body').scrollTop(top); + } + + }); \ No newline at end of file diff --git a/layouts/blog_article.tpl b/layouts/blog_article.tpl index 079a150..35764b4 100644 --- a/layouts/blog_article.tpl +++ b/layouts/blog_article.tpl @@ -42,7 +42,7 @@
{{"comments"|lc }}
{% endif %} diff --git a/layouts/common_page.tpl b/layouts/common_page.tpl index dc4e7bd..c1f00c1 100644 --- a/layouts/common_page.tpl +++ b/layouts/common_page.tpl @@ -24,8 +24,8 @@{% contentblock name="slogan" %}{{ "title_goes_here" | lc }}{% endcontentblock %}
{% content %} -- -
++ +