Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit a7b576c

Browse files
committed
Add canonical link to library page
1 parent 6b14a4d commit a7b576c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

models/1.py.prototype

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,5 @@ else:
8181
settings.bks = "ns"
8282

8383
# Define the URL for the author server pages
84-
# settings.author_server = "https://author.runestone.academy"
84+
# settings.author_server = "https://author.runestone.academy"
85+
# settings.canonical_server = "https://runestone.academy"

views/books/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{{user_navs = True}} {{extend 'layout.html'}}
2+
{{ block moreincludes }}
3+
<link rel="canonical"
4+
href="{{= settings.canonical_server}}/runestone/books/index" />
5+
<link rel="stylesheet" href="/runestone/static/css/index.css" />
6+
{{ end }}
27

3-
<link rel="stylesheet" href="/runestone/static/css/index.css" />
48

59
<div class="container">
610
<div class="col-md-8 col-md-offset-2">

0 commit comments

Comments
 (0)