-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jupiter deployment fixes due to canonical url (#157)
* jupiter deployment fixes due to canonical url * fixes to url contetxt * fixes to redirect issues in deployment * fix indentetion issue * Fix workflow and redirect logic with updated page.html
- Loading branch information
1 parent
275bf49
commit 81d36c6
Showing
3 changed files
with
36 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
{% extends "!page.html" %} | ||
|
||
{% block meta %} | ||
<link rel="canonical" href="{{ theme_options.baseurl }}/{{ pagename }}/"> | ||
<script>location="{{ theme_options.baseurl }}/{{ pagename }}/"</script> | ||
<meta http-equiv="refresh" content="0; url={{ theme_options.baseurl }}/{{ pagename }}/"> | ||
<!-- Custom canonical link and redirect logic --> | ||
<link rel="canonical" href="{{ book_baseurl }}/{{ pagename }}/"> | ||
<script> | ||
location.href = "{{ book_baseurl }}/{{ pagename }}/"; | ||
</script> | ||
<meta http-equiv="refresh" content="0; url={{ book_baseurl }}/{{ pagename }}/"> | ||
<meta name="robots" content="noindex"> | ||
|
||
{{ super() }} | ||
{{ super() }} {# Retain any additional meta tags provided by the theme #} | ||
{% endblock meta %} | ||
|
||
{% block main %} | ||
<h1>Redirecting…</h1> | ||
<p><a href="{{ theme_options.baseurl }}/{{ pagename }}/">Click here if you are not redirected.</a></p> | ||
{{ super() }} | ||
<!-- Optional message for users who are not automatically redirected --> | ||
<h1>Redirecting...</h1> | ||
<p> | ||
If you are not redirected automatically, please | ||
<a href="{{ book_baseurl }}/{{ pagename }}/">click here</a>. | ||
</p> | ||
|
||
{{ super() }} {# Retain the normal page content provided by the theme #} | ||
{% endblock main %} |