Skip to content

Commit 76ba9af

Browse files
committed
[Docs] Added piperift navbar
1 parent 0009341 commit 76ba9af

1 file changed

Lines changed: 33 additions & 25 deletions

File tree

Docs/_layouts/layout.html

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
11
<!DOCTYPE HTML>
2-
<html lang="{{ config.language }}" {% if page.dir == "rtl" %}dir="rtl"{% endif %}>
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
6-
<title>{% block title %}{{ config.title|d("GitBook", true) }}{% endblock %}</title>
7-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
8-
<meta name="description" content="{% block description %}{% endblock %}">
9-
<meta name="generator" content="GitBook {{ gitbook.version }}">
10-
{% if config.author %}<meta name="author" content="{{ config.author }}">{% endif %}
11-
{% if config.isbn %}<meta name="identifier" content="{{ config.isbn }}" scheme="ISBN">{% endif %}
12-
{% block style %}
13-
{% for resource in plugins.resources.css %}
14-
{% if resource.url %}
15-
<link rel="stylesheet" href="{{ resource.url }}">
16-
{% else %}
17-
<link rel="stylesheet" href="{{ resource.path|resolveAsset }}">
18-
{% endif %}
19-
{% endfor %}
20-
{% endblock %}
21-
{% block head %}{% endblock %}
22-
</head>
23-
<body>
24-
{% block body %}{% endblock %}
25-
{% block javascript %}{% endblock %}
26-
</body>
2+
<html lang="{{ config.language }}" {% if page.dir=="rtl" %}dir="rtl" {% endif %}>
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
7+
<title>{% block title %}{{ config.title|d("GitBook", true) }}{% endblock %}</title>
8+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
9+
<meta name="description" content="{% block description %}{% endblock %}">
10+
<meta name="generator" content="GitBook {{ gitbook.version }}">
11+
{% if config.author %}
12+
<meta name="author" content="{{ config.author }}">{% endif %}
13+
{% if config.isbn %}
14+
<meta name="identifier" content="{{ config.isbn }}" scheme="ISBN">{% endif %}
15+
{% block style %}
16+
{% for resource in plugins.resources.css %}
17+
{% if resource.url %}
18+
<link rel="stylesheet" href="{{ resource.url }}">
19+
{% else %}
20+
<link rel="stylesheet" href="{{ resource.path|resolveAsset }}">
21+
{% endif %}
22+
{% endfor %}
23+
{% endblock %}
24+
{% block head %}{% endblock %}
25+
</head>
26+
27+
<body>
28+
<div id="piperift-navbar"></div>
29+
<script id="piperift-navbar" src="https://piperift.com/navbar/load.js"></script>
30+
31+
{% block body %}{% endblock %}
32+
{% block javascript %}{% endblock %}
33+
</body>
34+
2735
</html>

0 commit comments

Comments
 (0)