forked from frappe/builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpage.html
More file actions
47 lines (46 loc) · 1.89 KB
/
webpage.html
File metadata and controls
47 lines (46 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<!-- Made with Frappe Builder -->
<html lang="{{ language or default_language or 'en' }}">
<head>
{% if base_url %}
<base href="{{ base_url }}">
{% endif %}
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if disable_indexing %}
<meta name="robots" content="noindex, nofollow">
{% endif %}
{% if canonical_url %}
<link rel="canonical" href="{{ canonical_url }}" />
{% endif %}
<title>{{title}}</title>
<link rel="icon" href="{{ favicon_light or favicon or '/assets/builder/images/frappe_black.png' }}" media="(prefers-color-scheme: light)"/>
<link rel="icon" href="{{ favicon_dark or favicon or '/assets/builder/images/frappe_white.png' }}" media="(prefers-color-scheme: dark)"/>
{% block meta_block %}{% include "templates/includes/meta_block.html" %}{% endblock %}
<link rel="stylesheet" href="/assets/builder/reset.css?v=1" media="screen">
<link rel="preconnect" href="https://fonts.googleapis.com">
{% for (font, options) in fonts.items() %}<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family={{ font }}:wght@{{ ";".join(options.weights) }}&display=swap" media="screen">{% endfor %}
{{ style }}
<link rel="stylesheet" href="/builder_assets/variables.css" media="screen">
{% if preview %}
<link rel="stylesheet" href="/builder_assets/color_scheme_variables.css" media="screen">
{% endif %}
{%- if custom_fonts -%}
<style>{% for font in custom_fonts %}@font-face {font-family: "{{ font.font_name }}";src: url("{{ font.font_file }}");}{% endfor %}</style>
{%- endif -%}
{% block style %}
{%- if styles -%}
{% for style_path in styles %}
<link rel="stylesheet" href="{{ style_path }}">
{% endfor %}
{%- endif -%}
{%- endblock %}
{%- if _head_html %}
{{ _head_html|safe }}
{%-endif -%}
</head>
{% block page_content %}
{{ __content }}
{% endblock %}
</html>