Skip to content
Snippets Groups Projects
Commit 0594e0c3b286 authored by Matti Picus's avatar Matti Picus
Browse files

add plugin to import blogger xml export; bring in css from web-pypy

parent 6f20654cdb2b
No related branches found
No related tags found
No related merge requests found
......@@ -3,5 +3,5 @@
parent = base-jinja
[Nikola]
ignored_assets = js/baguetteBox.min.js, css/baguetteBox.min.css,
ignored_assets = js/baguetteBox.min.js, css/baguetteBox.min.css, js/gallery.js, js/gallery.min.js
{# -*- coding: utf-8 -*- #}
{% import 'base_helper.tmpl' as base with context %}
{% import 'base_header.tmpl' as header with context %}
{% import 'base_footer.tmpl' as footer with context %}
{{ set_locale(lang) }}
{# <html> tag is included by base.html_headstart #}
{{ base.html_headstart() }}
{% block extra_head %}
{# Leave this block alone. #}
{% endblock %}
{{ template_hooks['extra_head']() }}
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">{{ messages("Skip to main content") }}</a>
<div id="container">
{{ header.html_header() }}
<main id="content">
{% block content %}{% endblock %}
</main>
{{ footer.html_footer() }}
</div>
{{ base.late_load_js() }}
{% if date_fanciness != 0 %}
<!-- fancy dates -->
<script>
moment.locale("{{ momentjs_locales[lang] }}");
fancydates({{ date_fanciness }}, {{ js_date_format }});
</script>
<!-- end fancy dates -->
{% endif %}
{% block extra_js %}{% endblock %}
</script>
{{ body_end }}
{{ template_hooks['body_end']() }}
</body>
</html>
{# -*- coding: utf-8 -*- #}
{% import 'base_helper.tmpl' as base with context %}
{% macro html_header() %}
<header id="header">
{{ html_site_title() }}
{{ html_translation_header() }}
{{ html_navigation_links() }}
{% if search_form %}
<div class="searchform" role="search">
{{ search_form }}
</div>
{% endif %}
</header>
{{ template_hooks['page_header']() }}
{% block extra_header %}{% endblock %}
{% endmacro %}
{% macro html_site_title() %}
<h1 id="brand"><a href="{{ abs_link(_link("root", None, lang)) }}" title="{{ blog_title|e }}" rel="home">
{% if logo_url %}
<img src="{{ logo_url }}" alt="{{ blog_title|e }}" id="logo">
{% endif %}
{% if show_blog_title %}
<span id="blog-title">{{ blog_title|e }}</span>
{% endif %}
</a></h1>
{% endmacro %}
{% macro html_navigation_links() %}
<nav id="menu">
<ul class="navbar js-navbar">
{{ html_navigation_links_entries(navigation_links) }}
{{ html_navigation_links_entries(navigation_alt_links) }}
{{ template_hooks['menu']() }}
{{ template_hooks['menu_alt']() }}
</ul>
</nav>
{% endmacro %}
{% macro html_navigation_links_entries(navigation_links_source) %}
{% for url, text in navigation_links_source[lang] %}
{% if isinstance(url, tuple) %}
<li> {{ text }}
<ul>
{% for suburl, text in url %}
{% if rel_link(permalink, suburl) == "#" %}
<li class="navbar-item nav-item-active"><a href="{{ permalink }}">{{ text }}<span class="sr-only"> {{ messages("(active)", lang) }}</span></a></li>
{% else %}
<li class="navbar-item"><a href="{{ suburl }}">{{ text }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% else %}
{% if rel_link(permalink, url) == "#" %}
<li class="navbar-item nav-item-active"><a href="{{ permalink }}">{{ text }}<span class="sr-only"> {{ messages("(active)", lang) }}</span></a></li>
{% else %}
<li class="navbar-item"><a href="{{ url }}">{{ text }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
{% endmacro %}
{% macro html_translation_header() %}
{% if translations|length > 1 %}
<div id="toptranslations">
<h2>{{ messages("Languages:") }}</h2>
{{ base.html_translations() }}
</div>
{% endif %}
{% endmacro %}
......@@ -21,7 +21,7 @@
{% if description %}
<meta name="description" content="{{ description|e }}">
{% endif %}
<meta name="viewport" content="width=device-width">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if title == blog_title %}
<title>{{ blog_title|e }}</title>
{% else %}
......@@ -58,6 +58,7 @@
{% else %}
<!--[if lt IE 9]><script src="{{ url_replacer(permalink, '/assets/js/html5shiv-printshiv.min.js', lang, url_type) }}"></script><![endif]-->
{% endif %}
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
{{ extra_head_data }}
{% endmacro %}
......@@ -69,6 +70,8 @@
{% else %}
<script src="/assets/js/all-nocdn.js"></script>
{% endif %}
{% else %}
<script src="/assets/js/styles.js"></script>
{% endif %}
{% if date_fanciness != 0 %}
{% if use_cdn %}
......@@ -95,6 +98,7 @@
<link href="/assets/css/nikola_rst.css" rel="stylesheet" type="text/css">
<link href="/assets/css/code.css" rel="stylesheet" type="text/css">
<link href="/assets/css/theme.css" rel="stylesheet" type="text/css">
<link href="/assets/css/styles.css" rel="stylesheet" type="text/css">
{% if has_custom_css %}
<link href="/assets/css/custom.css" rel="stylesheet" type="text/css">
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment