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