2016-04-02 22:13:56 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
{% capture title %}{% if page.title %}{{ page.title }} - {% elsif post.title %}{{ post.title }} - {% endif %}{% endcapture %}
|
|
|
|
<title>{{ title }}Leaflet</title>
|
|
|
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
{% capture root %}{% if page.root %}{{ page.root }}{% else %}{{ layout.root }}{% endif %}{% endcapture %}
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="{{ root }}docs/images/favicon.ico" />
|
|
|
|
|
2017-04-19 20:56:14 +08:00
|
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@{{ site.latest_leaflet_version}}/dist/leaflet.css" integrity="{{site.integrity_hash_css}}" crossorigin=""/>
|
|
|
|
<script src="https://unpkg.com/leaflet@{{ site.latest_leaflet_version}}/dist/leaflet.js" integrity="{{site.integrity_hash_uglified}}" crossorigin=""></script>
|
2016-04-02 22:13:56 +08:00
|
|
|
|
2016-09-30 19:56:05 +08:00
|
|
|
{% unless page.customMapContainer == "true" %}
|
2016-04-02 22:13:56 +08:00
|
|
|
<style>
|
2017-10-04 06:04:01 +08:00
|
|
|
html, body {
|
|
|
|
height: 100%;
|
|
|
|
}
|
2016-04-02 22:13:56 +08:00
|
|
|
#map {
|
2016-09-30 19:56:05 +08:00
|
|
|
width: 600px;
|
2016-04-02 22:13:56 +08:00
|
|
|
height: 400px;
|
|
|
|
}
|
|
|
|
</style>
|
2016-09-30 19:56:05 +08:00
|
|
|
{% endunless %}
|
2016-04-02 22:13:56 +08:00
|
|
|
{% if page.css %}<style>{{ page.css }}</style>{% endif %}
|
|
|
|
</head>
|
|
|
|
<body{% if page.bodyclass %} class="{{ page.bodyclass }}"{% endif %}>
|
|
|
|
|
2016-09-30 19:56:05 +08:00
|
|
|
{% unless page.customMapContainer == "true" %}<div id='map'></div>{% endunless %}
|
2016-04-02 22:13:56 +08:00
|
|
|
|
|
|
|
{{ content }}
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|