Skip to content

Commit

Permalink
redirect pages & discord
Browse files Browse the repository at this point in the history
  • Loading branch information
Singulariity committed Jan 17, 2025
1 parent c787769 commit cbf7e39
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
13 changes: 13 additions & 0 deletions mkdocs/docs/discord.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Discord
description: Discord'da aramıza katılın
redirect_url: https://discord.gg/jyD5jn9Vpd
color: '#5865f2'
image: https://witch-love.com/img/discord.png
template: redirect.html
hide:
- toc
- nagivation
---

Otomatik olarak yönlendirilmediyseniz [buraya](https://discord.gg/jyD5jn9Vpd) tıklayın.
4 changes: 2 additions & 2 deletions mkdocs/docs/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Yardıma ihtiyacınız olan bir konu var ise dilerseniz discord sunucumuza katı
***

!!! info "Discord Sunucusu"
[![Discord](./img/discord.png){ width="100" align=left }](https://discord.gg/jyD5jn9Vpd)
## [Discord](https://discord.gg/jyD5jn9Vpd)'da aramıza katılın
[![Discord](./img/discord.png){ width="100" align=left }](./discord.md){ target=_blank }
## [Discord](./discord.md){ target=_blank }'da aramıza katılın

Destek almak, sohbet etmek ve diğer takipçilerimizle beraber vakit geçirmek için sunucumuza katılabilirsiniz.

11 changes: 11 additions & 0 deletions mkdocs/overrides/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "main.html" %}

{% block extrahead %}
{{ super() }}
{% if page %}
<meta http-equiv="refresh" content="0; url={{ page.meta.redirect_url | default(config.site_url) | e }}" />
<script>
window.location.replace("{{ page.meta.redirect_url | default(config.site_url) | e }}");
</script>
{% endif %}
{% endblock %}

0 comments on commit cbf7e39

Please sign in to comment.