Skip to content

Commit a154d2b

Browse files
authored
Add shortlinks for tutorials. (#611)
1 parent 009dd5d commit a154d2b

File tree

7 files changed

+29
-5
lines changed

7 files changed

+29
-5
lines changed

Diff for: content/t/code-camera/contents.lr

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_model: redirect
2+
---
3+
new_path: https://gist.github.com/freakboy3742/d3528ac8262b230480a60c0a3161f144

Diff for: content/t/code/contents.lr

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_model: redirect
2+
---
3+
new_path: https://gist.github.com/freakboy3742/64f58383864f885f535c9d0042d9f0a9

Diff for: content/t/contents.lr

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
_model: page
2+
---
3+
title: Tutorial Shortlinks
4+
---
5+
hide_from_index: no
6+
---
7+
_discoverable: no
8+
---
9+
_hidden: no

Diff for: content/t/icons/contents.lr

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_model: redirect
2+
---
3+
new_path: https://docs.beeware.org/en/latest/_downloads/a8f92cddc5b6e0f777b9d9b223d31cce/icons.zip

Diff for: content/t/linux-deps/contents.lr

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_model: redirect
2+
---
3+
new_path: https://gist.github.com/freakboy3742/2e3a524bf6f1cd4486bb9e7fa2a2d3fb

Diff for: content/t/slides/contents.lr

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_model: redirect
2+
---
3+
new_path: https://www.dropbox.com/scl/fi/h6zngysnbibk3ly4e0qz9/Build-a-cross-platform-GUI-app-with-BeeWare.pdf?rlkey=knjrqcv5e6wxzv9335va0j5qu&st=t1t4ppji&dl=0

Diff for: templates/redirect.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{% extends "layout.html" %}
22
{% from "macros/breadcrumbs.html" import breadcrumbs %}
33

4-
{% block title %}Redirecting... {{ this.new_path }}{% endblock %}
4+
{% block title %}Redirecting... {{ this.new_path|safe }}{% endblock %}
55
{% block extra_head %}
6-
<meta http-equiv="refresh" content="0;URL='{{ this.new_path }}" />
7-
<link rel="canonical" href="{{ this.new_path }}"/>
6+
<meta http-equiv="refresh" content="0;URL='{{ this.new_path|safe }}" />
7+
<link rel="canonical" href="{{ this.new_path|safe }}"/>
88
<script>
9-
window.location.href = "{{ this.new_path }}"
9+
window.location.href = "{{ this.new_path|safe }}"
1010
</script>
1111
{% endblock %}
1212
{% block preamble %}
1313
<div class="banner">
1414
<div class="container">
1515
<h1>Redirecting...</h1>
16-
<p>{{ this.new_path }}</p>
16+
<p>{{ this.new_path|safe }}</p>
1717
</div>
1818
</div>
1919
{% endblock %}

0 commit comments

Comments
 (0)