File: main.html

package info (click to toggle)
starlette 0.50.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,072 kB
  • sloc: python: 13,532; sh: 35; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 413 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
{% extends "base.html" %}

{% block extrahead %}
  {{ super() }}
  <script>
    // Redirect starlette.io to starlette.dev
    if (window.location.hostname === 'www.starlette.io' || window.location.hostname === 'starlette.io') {
      const newUrl = window.location.href.replace(/^https?:\/\/(www\.)?starlette\.io/, 'https://starlette.dev');
      window.location.replace(newUrl);
    }
  </script>
{% endblock %}