Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f62cf34

Browse files
committed
Fix title and description for pages in website
1 parent 7e12bd3 commit f62cf34

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

theme/templates/layout.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{{ htmlSnippet("html:start")|default("") }}
44
<head>
55
{{ htmlSnippet("head:start")|default("") }}
6-
{% block head %}
76
<meta charset="UTF-8">
87
<title>{% block title %}{% endblock %}</title>
98
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
@@ -14,7 +13,7 @@
1413
<meta name="apple-mobile-web-app-capable" content="yes">
1514
<meta name="apple-mobile-web-app-status-bar-style" content="black">
1615
<link rel="shortcut icon" href="{{ staticBase }}/images/favicon.ico" type="image/x-icon">
17-
{% endblock %}
16+
{% block head %}{% endblock %}
1817
{{ htmlSnippet("head:end")|default("") }}
1918
</head>
2019
<body>

theme/templates/site.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
{% block htmlTag %}{% if options.cache !== false %}manifest="{{ basePath }}/manifest.appcache"{% endif %}{% endblock %}
44

5-
{% block title %}{{ progress.current.title }} | {{ title }}{% endblock %}
6-
{% block description %}{% if progress.current.level == "0" %}{{ description }}{% endif %}{% endblock %}
7-
85
{% block head %}
96
{% parent %}
107
{% if githubAuthor %}
@@ -18,6 +15,9 @@
1815
{% endif %}
1916
{% endblock %}
2017

18+
{% block title %}{{ progress.current.title }} | {{ title }}{% endblock %}
19+
{% block description %}{% if progress.current.level == "0" %}{{ description }}{% endif %}{% endblock %}
20+
2121
{% block content %}
2222
<div class="book" {% if githubId %}data-github="{{ githubId }}"{% endif %} data-level="{{ progress.current.level }}" data-basepath="{{ basePath }}" data-revision="{{ revision }}">
2323
{% include "includes/book/header.html" %}

0 commit comments

Comments
 (0)