diff options
Diffstat (limited to 'nikola/data/themes/bootstrap/templates')
| -rw-r--r-- | nikola/data/themes/bootstrap/templates/base.tmpl | 3 | ||||
| -rw-r--r-- | nikola/data/themes/bootstrap/templates/base_helper.tmpl | 9 | ||||
| -rw-r--r-- | nikola/data/themes/bootstrap/templates/post.tmpl | 11 |
3 files changed, 20 insertions, 3 deletions
diff --git a/nikola/data/themes/bootstrap/templates/base.tmpl b/nikola/data/themes/bootstrap/templates/base.tmpl index a469098..9f2bb61 100644 --- a/nikola/data/themes/bootstrap/templates/base.tmpl +++ b/nikola/data/themes/bootstrap/templates/base.tmpl @@ -9,6 +9,7 @@ ${base.html_headstart()} ${template_hooks['extra_head']()} </head> <body> +<a href="#content" class="sr-only sr-only-focusable">${messages("Skip to main content")}</a> <!-- Menubar --> @@ -57,7 +58,7 @@ ${template_hooks['extra_head']()} </div> </div> <!-- End of Menubar --> -<div class="container-fluid" id="container-fluid"> +<div class="container-fluid" id="content"> <!--Body content--> <div class="row-fluid"> <div class="span2"></div> diff --git a/nikola/data/themes/bootstrap/templates/base_helper.tmpl b/nikola/data/themes/bootstrap/templates/base_helper.tmpl index 2dcc138..40cce39 100644 --- a/nikola/data/themes/bootstrap/templates/base_helper.tmpl +++ b/nikola/data/themes/bootstrap/templates/base_helper.tmpl @@ -47,11 +47,18 @@ lang="${lang}"> <meta property="fb:app_id" content="${comment_system_id}"> % endif + %if prevlink: + <link rel="prev" href="${prevlink}" type="text/html"> + %endif + %if nextlink: + <link rel="next" href="${nextlink}" type="text/html"> + %endif + ${mathjax_config} %if use_cdn: <!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]--> %else: - <!--[if lt IE 9]><script src="/assets/js/html5.js"></script><![endif]--> + <!--[if lt IE 9]><script src="${url_replacer(permalink, '/assets/js/html5.js', lang)}"></script><![endif]--> %endif ${extra_head_data} diff --git a/nikola/data/themes/bootstrap/templates/post.tmpl b/nikola/data/themes/bootstrap/templates/post.tmpl index 29a5b75..e55fcd5 100644 --- a/nikola/data/themes/bootstrap/templates/post.tmpl +++ b/nikola/data/themes/bootstrap/templates/post.tmpl @@ -7,9 +7,18 @@ <%block name="extra_head"> ${parent.extra_head()} % if post.meta('keywords'): - <meta name="keywords" content="${post.meta('keywords')|h}"> + <meta name="keywords" content="${post.meta('keywords')|h}"> % endif + %if post.description(): + <meta name="description" itemprop="description" content="${post.description()}"> + %endif <meta name="author" content="${post.author()}"> + %if post.prev_post: + <link rel="prev" href="${post.prev_post.permalink()}" title="${post.prev_post.title()}" type="text/html"> + %endif + %if post.next_post: + <link rel="next" href="${post.next_post.permalink()}" title="${post.next_post.title()}" type="text/html"> + %endif ${helper.open_graph_metadata(post)} ${helper.twitter_card_information(post)} ${helper.meta_translations(post)} |
