mirror of
https://github.com/getzola/zola
synced 2024-12-16 23:23:07 +00:00
b9296f7985
* Make {section, page}.path always start with a slash Change tests accordingly * Fix missing leading/trailing slash in current_path of Taxonomy ("tags") and TaxonomyItem ("some-tag") * Make {Paginator, Pager}.path always start with a slash Fix Paginator.path missing trailing slash in from_taxonomy() Change tests accordingly * Update documentation regarding current_path now always starting with a slash * Fix asymptomatic inverted logic in filter() for {section, page}.assets * Add to 3 integration tests several checks for current_path in different templates * Add a check for current_path in a paginated index section, "/page/2/" This requires adding two dummy pages in the content root. * Fix false passing of test on paginator.last due to URL prefix matching A string formatting such as {name: value} can help prevent this.
24 lines
849 B
HTML
24 lines
849 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="{{ config.description }}">
|
|
<meta name="author" content="{{ config.extra.author.name }}">
|
|
<link href="https://fonts.googleapis.com/css?family=Fira+Mono|Fira+Sans|Merriweather" rel="stylesheet">
|
|
<link href="{{ get_url(path="/site.css", cachebust=true) | safe }}" rel="stylesheet">
|
|
<title>{{ config.title }}</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="content">
|
|
{% block content %}Hello{% endblock content %}
|
|
</div>
|
|
|
|
{% include "current_path.html" %}
|
|
|
|
{% block script %}
|
|
{% endblock script %}
|
|
</body>
|
|
</html>
|