Feat: better layout for projects
Chore: rename products to projects
This commit is contained in:
parent
61f2befe89
commit
651e8a2781
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
layout: redirect
|
||||
redirectUrl: "/scstw?ref=ScStwApp"
|
||||
redirectUrl: "/projects/scstw?ref=ScStwApp"
|
||||
redirectDelay: "0"
|
||||
---
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
title: Products
|
||||
layout: redirect
|
||||
title: Projects
|
||||
layout: blog
|
||||
redirectUrl: "reader-clock"
|
||||
bodyClasses: 'title-h1h2 header-animated sticky-footer'
|
||||
|
||||
menu:
|
||||
main:
|
||||
title: Products
|
||||
name: Products
|
||||
title: Projects
|
||||
name: Projects
|
||||
weight: 2
|
||||
---
|
|
@ -3,13 +3,15 @@ title: 'Reader Clock'
|
|||
layout: "modular"
|
||||
bodyClasses: 'title-h1h2 header-fixed header-animated header-dark header-transparent sticky-footer'
|
||||
modularDataDir: "reader-clock"
|
||||
image: images/reader-clock/front.jpg
|
||||
summary: "The Reader-Clock is a digital clock which tells the time by showing a quote from an actual book."
|
||||
|
||||
menu:
|
||||
main:
|
||||
title: Reader Clock
|
||||
name: Reader Clock
|
||||
weight: 2
|
||||
parent: Products
|
||||
parent: Projects
|
||||
---
|
||||
|
||||
# Reader Clock
|
|
@ -3,13 +3,15 @@ title: 'Speed Climbing Stopwatch'
|
|||
layout: "modular"
|
||||
bodyClasses: 'title-h1h2 header-fixed header-animated header-dark header-transparent sticky-footer'
|
||||
modularDataDir: "scstw"
|
||||
image: "images/scstw/BaseStation.jpg"
|
||||
summary: "The Speed Climbing Stopwatch (aka ScStw) is a modern speed climbing timing system that just works. "
|
||||
|
||||
menu:
|
||||
main:
|
||||
title: Speed Climbing Stopwatch
|
||||
name: Speed Climbing Stopwatch
|
||||
weight: 2
|
||||
parent: Products
|
||||
parent: Projects
|
||||
---
|
||||
## What next?
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: ScStw
|
||||
layout: redirect
|
||||
redirectUrl: "../products/scstw"
|
||||
redirectUrl: "/projects/scstw"
|
||||
bodyClasses: 'title-h1h2 header-animated sticky-footer'
|
||||
---
|
|
@ -12,7 +12,7 @@
|
|||
links:
|
||||
-
|
||||
text: "Check it out"
|
||||
href: "products/reader-clock"
|
||||
href: "projects/reader-clock"
|
||||
classes: "btn btn-primary"
|
||||
-
|
||||
image: "images/scstw/hero.jpeg"
|
||||
|
@ -23,7 +23,7 @@
|
|||
links:
|
||||
-
|
||||
text: "Learn more"
|
||||
href: "products/scstw"
|
||||
href: "projects/scstw"
|
||||
classes: "btn btn-primary"
|
||||
|
||||
01-hero:
|
||||
|
@ -38,7 +38,7 @@
|
|||
links:
|
||||
-
|
||||
text: "Check it out"
|
||||
href: "products/reader-clock"
|
||||
href: "projects/reader-clock"
|
||||
classes: "btn btn-primary"
|
||||
|
||||
02-highlights:
|
||||
|
|
|
@ -23,7 +23,11 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{{ .Summary }} <a href="{{ .RelPermalink }}">Read More…</a>
|
||||
{{ if .Params.summary }}
|
||||
{{ .Params.summary }}
|
||||
{{ else }}
|
||||
{{ .Summary }}
|
||||
{{ end }}<a href="{{ .RelPermalink }}">Read More…</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -35,8 +39,8 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "javascripts" }}
|
||||
<script src="/js/bricklayer.min.js"></script>
|
||||
<script src="/js/scopedQuerySelectorShim.min.js"></script>
|
||||
<script src="{{ site.BaseURL }}/js/bricklayer.min.js"></script>
|
||||
<script src="{{ site.BaseURL }}/js/scopedQuerySelectorShim.min.js"></script>
|
||||
<script>
|
||||
//Bricklayer
|
||||
var bricklayer = new Bricklayer(document.querySelector('.bricklayer'))
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
{{ 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={{ .Params.redirectUrl }}" /></noscript>
|
||||
<noscript><meta http-equiv="refresh" content="{{ default 0 .Params.redirectDelay }}; url={{ $redirectUrl }}" /></noscript>
|
||||
<h1 class="font-bold text-3xl">Redirecting ...</h1>
|
||||
<a href="{{ .Params.redirectUrl }}">Click here if nothing happens</a>
|
||||
<a href="{{ $redirectUrl }}">Click here if nothing happens</a>
|
||||
|
||||
<script>
|
||||
var destination = "{{ .Params.redirectUrl }}";
|
||||
var destination = "{{ $redirectUrl }}";
|
||||
window.location.href = destination + (window.location.search || '') + (window.location.hash || '');
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue