Mercurial > piecrust2
view docs/templates/default.html @ 1188:a7c43131d871
bake: Fix file write flushing problem with Python 3.8+
Writing the cache files fails in Python 3.8 because it looks like flushing
behaviour has changed. We need to explicitly flush. And even then, in very
rare occurrences, it looks like it can still run into racing conditions,
so we do a very hacky and ugly "retry" loop when fetching cached data :(
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 15 Jun 2021 22:36:23 -0700 |
parents | 94d7d5e38571 |
children |
line wrap: on
line source
{% import "google.html" as google %} <!doctype html> <html> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="author" content="Ludovic Chabant"> <meta name="generator" content="PieCrust {{ piecrust.version }}" /> <meta name="description" content="PieCrust, a simple website engine and static website generator" /> <title>{% if page.title %}{{ page.title }} — {% endif %}PieCrust</title> {{ google.webfonts('Lobster') }} <link rel="stylesheet" href="{{ site.root }}css/piecrust.css" type="text/css" /> <link rel="stylesheet" href="{{ site.root }}css/pygments.css" type="text/css" /> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> {% block head %}{% endblock %} </head> <body data-spy="scroll"> <div id="wrapper"> <div class="pc-header-wrapper{% if page.header_class or header_class %} {{ page.header_class|default(header_class) }}{% endif %}"> {% include 'inc/nav.html' %} <header> {% block header %} <h1>{{ page.title }}</h1> {% endblock %} </header> </div> {% block content %} <section class="container" id="content"> {{ content|safe }} </section> {% endblock %} <footer class="container"> <p>©2014 — {{ piecrust.branding|safe }}</p> </footer> </div> {{ piecrust.debug_info|safe }} <script src="{{ site.root }}js/piecrust.js"></script> {% if baker.is_baking %} {{ google.analytics("UA-3426592-10") }} {% endif %} </body> </html>