move to new theme canterville
This commit is contained in:
parent
302b5df4ef
commit
32036e0e4f
21 changed files with 2587 additions and 8 deletions
59
themes/canterville/templates/base.tmpl
Normal file
59
themes/canterville/templates/base.tmpl
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%namespace name="base" file="base_helper.tmpl" import="*"/>
|
||||
<%namespace name="header" file="base_header.tmpl" import="*"/>
|
||||
<%namespace name="footer" file="base_footer.tmpl" import="*"/>
|
||||
${set_locale(lang)}
|
||||
${base.html_headstart()}
|
||||
<%block name="extra_head">
|
||||
### Leave this block alone.
|
||||
</%block>
|
||||
${template_hooks['extra_head']()}
|
||||
</head>
|
||||
<body class="nav-closed">
|
||||
${header.html_navigation_links()}
|
||||
<div class="site-wrapper">
|
||||
% if 'main_index' in pagekind and BANNER_URL :
|
||||
<header class="main-header" style="background-image: url(${BANNER_URL})">
|
||||
% elif 'post_page' in pagekind and post.meta('banner'):
|
||||
<header class="main-header" style="background-image: url(${post.meta('banner')})">
|
||||
% else:
|
||||
<header class="main-header post-head no-cover">
|
||||
% endif
|
||||
<nav class="main-nav overlay clearfix">
|
||||
<a class="blog-logo" href="${blog_url}"><img src="${logo_url}" alt="Blog Logo" /></a>
|
||||
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a>
|
||||
</nav>
|
||||
% if 'main_index' in pagekind:
|
||||
<div class="vertical">
|
||||
<div class="main-header-content inner">
|
||||
% if GITHUB_URL:
|
||||
<a href="${GITHUB_URL}" target="_blank">
|
||||
<span class="icon-github" style="color:white;font-size:2em"></span>
|
||||
</a>
|
||||
|
||||
% endif
|
||||
% if TWITTER_URL:
|
||||
<a class="bloglogo" href=${TWITTER_URL} target="_blank">
|
||||
<span class="icon-twitter" style="color:white;font-size:2em"></span>
|
||||
</a>
|
||||
|
||||
% endif
|
||||
<h1 class="page-title">${title}</h1>
|
||||
<h2 class="page-description">${description}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<a class="scroll-down icon-arrow-left" href="#content"><span class="hidden">Scroll Down</span></a>
|
||||
% endif
|
||||
</header>
|
||||
|
||||
<main id="content" class="content" role="main">
|
||||
<%block name="content"></%block>
|
||||
</main>
|
||||
${footer.html_footer()}
|
||||
</div>
|
||||
${base.late_load_js()}
|
||||
<%block name="extra_js"></%block>
|
||||
${body_end}
|
||||
${template_hooks['body_end']()}
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue