File: redirect.html

package info (click to toggle)
ruby-jekyll-polyglot 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,196 kB
  • sloc: xml: 1,500; ruby: 947; sh: 10; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 961 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- jekyll-redirect-from will use this template to implement redirects. This modification to the template helps polyglot redirect accounting for languages -->
{% assign redirection = page.redirect.to | remove_first: site.url %}
{% if site.active_lang == site.default_lang %}
{% assign redirectTo =  site.url | append: redirection %}
{% else %}
{% assign redirectTo = site.url | append: "/" | append: site.active_lang | append: redirection  %}
{{ site.active_lang }}/{% endif %}
<!DOCTYPE html>
<html lang="en-US">
  <meta charset="utf-8">
  <title>Redirecting&hellip;</title>
  <link rel="canonical" {% static_href %}href="{{ redirectTo }}"{% endstatic_href %}>
  <script>location="{{ redirectTo }}"</script>
  <meta http-equiv="refresh" content="0; url={{ redirectTo }}">
  <meta name="robots" content="noindex">
  <h1>Redirecting&hellip;</h1>
  <a {% static_href %}href="{{ redirectTo }}"{% endstatic_href %}>Click here if you are not redirected.</a>
</html>