40 lines
1.6 KiB
Text
40 lines
1.6 KiB
Text
|
|
{% extends "base.html.j2" %}
|
|||
|
|
{% block title %}{{ page_title }}{% endblock %}
|
|||
|
|
{% block description %}{{ page_description }}{% endblock %}
|
|||
|
|
{% block canonical_path %}{{ canonical_path }}{% endblock %}
|
|||
|
|
{% block content %}
|
|||
|
|
<nav class="breadcrumb" aria-label="Breadcrumb">
|
|||
|
|
{% for label, href in breadcrumb %}{% if href %}<a href="{{ href }}">{{ label }}</a>{% else %}<span>{{ label }}</span>{% endif %}{% if not loop.last %} <span class="sep">›</span> {% endif %}{% endfor %}
|
|||
|
|
</nav>
|
|||
|
|
|
|||
|
|
<article class="climate-page">
|
|||
|
|
<h1>Weather in {{ display }} in {{ month_name }}</h1>
|
|||
|
|
<p class="lede">In an average {{ month_name }}, {{ name }} sees a daily high around <b>{{ avg_high }}</b>
|
|||
|
|
and a low around <b>{{ avg_low }}</b>, based on {{ year_range[0] }}–{{ year_range[1] }} of local
|
|||
|
|
climate records.</p>
|
|||
|
|
|
|||
|
|
<table class="normals-table" style="max-width:520px">
|
|||
|
|
<tbody>
|
|||
|
|
{% for label, value in stats %}
|
|||
|
|
<tr><th style="width:55%">{{ label }}</th><td>{{ value }}</td></tr>
|
|||
|
|
{% endfor %}
|
|||
|
|
</tbody>
|
|||
|
|
</table>
|
|||
|
|
|
|||
|
|
{% if records %}
|
|||
|
|
<h2>{{ month_name }} records</h2>
|
|||
|
|
<ul class="climate-records">
|
|||
|
|
{% for label, value, date in records %}<li><b>{{ label }}:</b> {{ value }} on {{ date }}</li>{% endfor %}
|
|||
|
|
</ul>
|
|||
|
|
{% endif %}
|
|||
|
|
|
|||
|
|
<p><a class="cta" href="{{ base }}/#{{ tool_hash }}">See {{ name }}'s live weather grade →</a></p>
|
|||
|
|
|
|||
|
|
<p class="climate-foot muted">
|
|||
|
|
<a href="{{ base }}/climate/{{ city.slug }}/{{ prev.slug }}">‹ {{ prev.name }}</a> ·
|
|||
|
|
<a href="{{ base }}/climate/{{ city.slug }}">{{ name }} climate overview</a> ·
|
|||
|
|
<a href="{{ base }}/climate/{{ city.slug }}/{{ next.slug }}">{{ next.name }} ›</a>
|
|||
|
|
</p>
|
|||
|
|
</article>
|
|||
|
|
{% endblock %}
|