Skip to content

Commit b91b049

Browse files
committed
Add poetry links
1 parent f456605 commit b91b049

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

_layouts/redirect.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{% include html.html %}
2+
{% if page.origin-url %}
3+
{% assign origin_url = page.origin-url %}
4+
{% else if page.origin-nostr-tag %}
5+
{% assign origin_url = "https://primal.net/search/kind%3A1%20%23" | append: page.origin-nostr-tag | append: "%20%20from%3A" | append: site.theme_settings.nostr.nprofile %}
6+
{% endif %}
27
<head>
38
<noscript>
49
<style>html { display: none; }</style>
5-
<meta http-equiv="refresh" content="0; URL='{{ page.origin-url }}'" />
6-
<link rel="canonical" href="{{ page.origin-url }}" />
10+
<meta http-equiv="refresh" content="0; URL='{{ origin_url }}'" />
11+
<link rel="canonical" href="{{ origin_url }}" />
712
</noscript>
8-
<script type="text/javascript">window.stop(); window.location = "{{ page.origin-url }}";</script>
13+
<script type="text/javascript">window.stop(); window.location = "{{ origin_url }}";</script>
914
</head>
1015
</html>

pages/poetry.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: redirect
3+
title: Poetry 🪄
4+
permalink: "/poetry/"
5+
origin-nostr-tag: poetry
6+
---

ru/pages/poetry.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: redirect
3+
title: 🪄 Стихи
4+
permalink: "/ru/poetry/"
5+
origin-nostr-tag: стихи
6+
---

ru/pages/стихи.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: redirect
3+
permalink: "/стихи/"
4+
origin-nostr-tag: стихи
5+
---

0 commit comments

Comments
 (0)