Chore: use hugo aliases instead of redirect layout (fix #9)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
889078a6f8
commit
f4642fe1f4
|
@ -16,6 +16,8 @@ menu:
|
|||
name: blueROCK
|
||||
weight: 1
|
||||
parent: Apps
|
||||
|
||||
aliases: ["/index.php/apps/bluerock"]
|
||||
---
|
||||
|
||||
blueROCK is an app to view climbing results from [digitalrock](https://digitalrock.de) comfortable on the go.
|
||||
|
|
|
@ -15,6 +15,8 @@ menu:
|
|||
name: Speed Climbing Reaction Trainer
|
||||
weight: 3
|
||||
parent: Apps
|
||||
|
||||
aliases: ["/index.php/apps/speed-climbing-stopwatch-reaction-trainer"]
|
||||
---
|
||||
|
||||
The Speed Climbing Reaction Trainer is an app to train your reaction time to the IFSC speed climbing start signal.
|
||||
|
|
|
@ -15,6 +15,8 @@ menu:
|
|||
name: Speed Climbing Stopwatch App
|
||||
weight: 2
|
||||
parent: Apps
|
||||
|
||||
aliases: ["/index.php/apps/speed-climbing-stopwatch-app"]
|
||||
---
|
||||
|
||||
The speed climbing stopwatch app is a simple and lightweight stopwatch app that plays the official IFSC start signal before beginning to stop the time.
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
layout: redirect
|
||||
redirectUrl: "/apps/bluerock"
|
||||
redirectDelay: "0"
|
||||
---
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
layout: redirect
|
||||
redirectUrl: "/apps/scstw"
|
||||
redirectDelay: "0"
|
||||
---
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
layout: redirect
|
||||
redirectUrl: "/apps/scrt"
|
||||
redirectDelay: "0"
|
||||
---
|
|
@ -1,5 +0,0 @@
|
|||
---
|
||||
layout: redirect
|
||||
redirectUrl: "/projects/scstw?ref=ScStwApp"
|
||||
redirectDelay: "0"
|
||||
---
|
|
@ -12,6 +12,8 @@ menu:
|
|||
name: Speed Climbing Stopwatch
|
||||
weight: 2
|
||||
parent: Projects
|
||||
|
||||
aliases: ["/scstw", "/index.php/speed-climbing"]
|
||||
---
|
||||
## What next?
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
---
|
||||
title: ScStw
|
||||
layout: redirect
|
||||
redirectUrl: "/projects/scstw"
|
||||
bodyClasses: 'title-h1h2 header-animated sticky-footer'
|
||||
---
|
|
@ -1,18 +0,0 @@
|
|||
{{ define "content" }}
|
||||
|
||||
{{ $redirectUrl := .Params.redirectUrl }}
|
||||
{{ if hasPrefix .Params.redirectUrl "/" }}
|
||||
{{ $redirectUrl = printf "%s" .Params.redirectUrl | printf "%s%s" site.BaseURL | printf "%s" }}
|
||||
{{ end }}
|
||||
<article class="mb-16 max-w-5xl mx-auto px-4 prose lg:prose-lg prose-blue dark:prose-dark">
|
||||
<noscript><meta http-equiv="refresh" content="{{ default 0 .Params.redirectDelay }}; url={{ $redirectUrl }}" /></noscript>
|
||||
<h1 class="font-bold text-3xl">Redirecting ...</h1>
|
||||
<a href="{{ $redirectUrl }}">Click here if nothing happens</a>
|
||||
|
||||
<script>
|
||||
var destination = "{{ $redirectUrl }}";
|
||||
window.location.href = destination + (window.location.search || '') + (window.location.hash || '');
|
||||
</script>
|
||||
|
||||
</article>
|
||||
{{ end }}
|
42
themes/quark-hugo/layouts/alias.html
Normal file
42
themes/quark-hugo/layouts/alias.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" (dict "Title" "redirecting...") -}}
|
||||
|
||||
<body id="top" class="header-fixed sticky-footer">
|
||||
<div id="page-wrapper">
|
||||
<section id="header" class="section">
|
||||
<section class="container {{ site.Params.GridSize }}">
|
||||
<nav class="navbar">
|
||||
<section class="navbar-section logo">
|
||||
{{ partial "logo.html" (dict "ctx" . "mobile" true) }}
|
||||
</section>
|
||||
</nav>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section id="body-wrapper" class="section">
|
||||
<section class="container {{ site.Params.GridSize }}">
|
||||
{{ $redirectUrl := .Permalink }} {{ if hasPrefix .Permalink "/" }} {{
|
||||
$redirectUrl = printf "%s" .Permalink | printf "%s%s" site.BaseURL |
|
||||
printf "%s" }} {{ end }}
|
||||
<article
|
||||
class="mb-16 max-w-5xl mx-auto px-4 prose lg:prose-lg prose-blue dark:prose-dark"
|
||||
>
|
||||
<noscript
|
||||
><meta http-equiv="refresh" content="0; url={{ $redirectUrl }}"
|
||||
/></noscript>
|
||||
<h1 class="font-bold text-3xl">Redirecting ...</h1>
|
||||
<a href="{{ $redirectUrl }}">Click here if nothing happens</a>
|
||||
|
||||
<script>
|
||||
var destination = "{{ $redirectUrl }}";
|
||||
window.location.href = destination + (window.location.search || '') + (window.location.hash || '');
|
||||
</script>
|
||||
</article>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{ block "footer" . }} {{- partial "footer.html" . -}} {{ end }}
|
||||
</body>
|
||||
</html>
|
|
@ -1,5 +1,5 @@
|
|||
<section id="footer" class="section bg-dark-gray">
|
||||
<section class="container {{ .Site.Params.GridSize }}">
|
||||
<section class="container {{ site.Params.GridSize }}">
|
||||
<p>© 2018-{{ now.Format "2006"}} Itsblue Development</p>
|
||||
</section>
|
||||
</section>
|
|
@ -16,7 +16,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="{{ site.BaseURL }}/css/fontawesome.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="{{ site.BaseURL }}/css/bricklayer.css">
|
||||
|
||||
{{ $title := print .Title " | " .Site.Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
{{ $title := print .Title " | " site.Title }}
|
||||
{{ if .IsHome }}{{ $title = site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
</head>
|
|
@ -1,5 +1,5 @@
|
|||
<section id="header" class="section">
|
||||
<section class="container {{ .Site.Params.GridSize }}">
|
||||
<section class="container {{ site.Params.GridSize }}">
|
||||
<nav class="navbar">
|
||||
<section class="navbar-section logo">
|
||||
{{ partial "logo.html" (dict "ctx" . "mobile" true) }}
|
||||
|
|
Loading…
Reference in a new issue