Open nfreear opened 7 years ago
YAML front matter in page:
--- # ... x-redirect-url: /2017/05/22/sign-machine.html x-hash: '#id-sign-machine' x-nav-class: sr-only ---
Top of the page -- includes/head.html:
includes/head.html
{% if page.x-redirect-url %} <script> setTimeout(function () { var x_redirect_url = '{{ page.x-redirect-url }}' + ( location.search || '?' ) + '&utm_source=redirect' + '{{ page.x-hash }}'; window.location = x_redirect_url; }, 2000 ); </script> <p role="alert" class="big_me redirect"> Redirecting ... </p> {% endif %}
Bottom of page -- _layout/default.html:
_layout/default.html
{% unless page.x-redirect-url %} {% include footer.html %} {% include footer-javascript.html %} {% endunless %}
To make it accessible:
setTimeout( ... )
Redirecting ...
role=alert
YAML front matter in page:
Top of the page --
includes/head.html
:Bottom of page --
_layout/default.html
:To make it accessible:
setTimeout( ... )
- 2 or 3 seconds - ?Redirecting ...
withrole=alert
- ?