Added description meta tag.
This commit is contained in:
parent
95447c6178
commit
8c1d543276
@ -1,14 +1,17 @@
|
||||
package com.jessebrault.site
|
||||
|
||||
import groowt.view.component.web.BaseWebViewComponent
|
||||
import org.jetbrains.annotations.Nullable
|
||||
|
||||
class Head extends BaseWebViewComponent {
|
||||
|
||||
final String title
|
||||
final @Nullable String description
|
||||
final Object openGraph
|
||||
|
||||
Head(Map attr) {
|
||||
title = attr.title
|
||||
description = attr.description
|
||||
openGraph = attr.openGraph?.call() ?: ''
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,7 @@ class StandardPage extends BaseWebViewComponent {
|
||||
final String spotifyUrl
|
||||
final String youtubeUrl
|
||||
final String title
|
||||
final @Nullable String description
|
||||
final @Nullable Closure<WebViewComponent> openGraph
|
||||
final Closure<WebViewComponent> banner
|
||||
final List<String> pageScripts
|
||||
@ -23,6 +24,7 @@ class StandardPage extends BaseWebViewComponent {
|
||||
this.spotifyUrl = spotifyUrl
|
||||
this.youtubeUrl = youtubeUrl
|
||||
this.title = attr.title
|
||||
this.description = attr.description
|
||||
this.openGraph = attr.openGraph
|
||||
this.banner = attr.banner ?: { '' }
|
||||
this.pageScripts = attr.pageScripts ?: []
|
||||
|
@ -7,6 +7,7 @@ package com.jessebrault.site
|
||||
<% children -> children << openGraph %>
|
||||
|
||||
<title>$title</title>
|
||||
<WhenNotNull item={description} render={<meta name="description" content={it} />} />
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
|
@ -5,7 +5,7 @@ import com.jessebrault.site.icon.SpotifyIcon
|
||||
import com.jessebrault.site.icon.YoutubeIcon
|
||||
---
|
||||
<html lang="en">
|
||||
<Head title={title} openGraph={openGraph} />
|
||||
<Head title={title} description={description} openGraph={openGraph} />
|
||||
<body>
|
||||
<div class="header-banner-container">
|
||||
<Header />
|
||||
|
@ -10,6 +10,8 @@ import jakarta.inject.Inject
|
||||
@PageSpec(name = 'Biography', path = '/')
|
||||
class BiographyPage extends WvcPageView {
|
||||
|
||||
static final String description = 'Conductor and composer Jesse Brault studied orchestral conducting at the Juilliard School with Maestros Alan Gilbert and James Ross.'
|
||||
|
||||
final Text biography
|
||||
private final TitleMaker titleMaker
|
||||
|
||||
|
@ -6,6 +6,7 @@ import com.jessebrault.site.util.OpenGraph
|
||||
---
|
||||
<StandardPage
|
||||
title={title}
|
||||
description="Compositions by Jesse Brault."
|
||||
openGraph={<OpenGraph
|
||||
title="Compositions"
|
||||
type="website"
|
||||
|
@ -6,10 +6,11 @@ import com.jessebrault.site.util.OpenGraph
|
||||
---
|
||||
<StandardPage
|
||||
title={title}
|
||||
description={description}
|
||||
openGraph={<OpenGraph
|
||||
title="Biography"
|
||||
type="website"
|
||||
description={"Conductor and composer Jesse Brault studied orchestral conducting at the Juilliard School with Maestros Alan Gilbert and James Ross."}
|
||||
description={description}
|
||||
path="/"
|
||||
/>}
|
||||
banner={<BiographyBanner />}
|
||||
|
@ -13,6 +13,7 @@ import com.jessebrault.site.util.OpenGraph
|
||||
path={selfPage.path}
|
||||
/>}
|
||||
title={title}
|
||||
description={composition.description}
|
||||
>
|
||||
<div class="article-container">
|
||||
<a id="back-to-compositions" href="/compositions">Back to compositions</a>
|
||||
|
@ -6,6 +6,7 @@ import com.jessebrault.site.util.OpenGraph
|
||||
---
|
||||
<StandardPage
|
||||
title={title}
|
||||
description="Contact information for Jesse Brault."
|
||||
openGraph={<OpenGraph
|
||||
title="Contact"
|
||||
type="website"
|
||||
|
Loading…
Reference in New Issue
Block a user