Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "redirect" frontmatter property #145

Merged
merged 1 commit into from
Apr 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions templates/wrapper.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
{{!-- having maxiumum-scale 1.0 here disables pinch-zoom, which fails an a11y audit--}}
<meta name="theme-color" content="#443752"/>

{{#if redirect}}
<meta http-equiv="refresh" content="0;url={{redirect}}">
{{/if}}

<title>
{{#if title}}{{title}} &ndash; {{/if}}HackSoc &ndash; the computer science society
</title>
Expand Down Expand Up @@ -88,9 +92,13 @@

</header>

<main>
{{{body}}}
</main>
<main>
{{#if redirect}}
<p>You are being redirected to <a href="{{redirect}}">{{redirect}}</a>...</p>
{{else}}
{{{body}}}
{{/if}}
</main>

<div id="stupid-end-marker"></div>
</div>
Expand All @@ -102,4 +110,4 @@
</a>
</footer>
</body>
</html>
</html>