Mercurial > piecrust2
view docs/templates/default.html @ 1051:971b4d67e82a
serve: Fix problems with assets disappearing between servings.
When an asset file changes, its source's pipeline is re-run. But that created
a bake record that only had that pipeline's output, so the other outputs were
incorrectly considered empty and therefore any stray files were removed. Now we
copy over bake records for the pipelines we don't run.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 26 Jan 2018 18:05:02 -0800 |
parents | 1c452b7ab8b1 |
children | 94d7d5e38571 |
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"> <nav class="navbar navbar-default" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#piecrust-menu"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="{{site.root}}">PieCrust</a> </div> <div class="collapse navbar-collapse" id="piecrust-menu"> {% include 'inc/main-navigation.html' %} </div> </div> </nav> {% block header %} <header{% if page.header_class %} class="{{page.header_class}}"{% endif %}> <h1>{{ page.title }}</h1> </header> {% endblock %} {% block content %} <section class="container" id="content"> {{ content|safe }} </section> {% endblock %} <footer> <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>