Skip to content

Instantly share code, notes, and snippets.

@euclidr
Last active May 26, 2019 05:51
Show Gist options
  • Save euclidr/a3a75419fb123e5aa68da919a5ec007f to your computer and use it in GitHub Desktop.
Save euclidr/a3a75419fb123e5aa68da919a5ec007f to your computer and use it in GitHub Desktop.
jinja2 master template for web page
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="format-detection" content="telephone=no"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{% block title %}{% endblock %}</title>
{% block head %}
{% endblock %}
</head>
<body class="{% if request.environ['is_mobile'] %}mobile-device{%endif%}">
{% block header %}
{% endblock %}
{% block content %}
{% endblock %}
{% block footer %}
{% endblock %}
{% block bottom %}
{% endblock %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment