Files
docs/overrides/main.html
T
Artur Raglis 8d0d41b5ee docs/: add ToS-gate Base64 URLs mechanism
- docs/javascripts/tos-gate.js - new revealGated() function, intentionally no
  rel="noreferrer
- main.py - Added tos_gated_downloads(section_id, files, tos_url) macro;
  tos_checkbox kept for other uses
- mkdocs.yml - Added javascripts/tos-gate.js to extra_javascript
- overrides/main.html - New pins Referrer-Policy:
  strict-origin-when-cross-origin globally

Signed-off-by: Artur Raglis <artur.raglis@3mdeb.com>
2026-05-17 18:43:45 +02:00

7 lines
147 B
HTML

{% extends "base.html" %}
{% block extrahead %}
{{ super() }}
<meta name="referrer" content="strict-origin-when-cross-origin">
{% endblock %}