Skip to content

Commit 2472368

Browse files
Use variables instead of explicite URLs (#122)
1 parent 7516b54 commit 2472368

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

src/partials/article-404.hbs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<article class="doc">
22
<h1 class="page">{{{or page.title "Page Not Found"}}}</h1>
33
<div class="paragraph">
4-
<p>The page you&#8217;re looking for does not exist. It may have been moved.
5-
You can{{#with site.homeUrl}}
6-
return to the
7-
<a href="{{{this}}}">start page</a>, or{{/with}}
8-
follow one of the links in the navigation to the left.</p>
4+
<p>The page you&#8217;re looking for doesn&#8217;t exist. It may have been moved. You can return to the
5+
<a href="{{{site.path}}}{{{site.homeUrl}}}">start page</a>, or follow one of the links in the navigation above.
6+
</p>
97
</div>
108
<div class="paragraph">
11-
<p>If you arrived on this page by clicking on a link, please notify the
12-
owner of the site that the link is broken. If you typed the URL of this
13-
page manually, please double check that you entered the address correctly.</p>
9+
<p>If you arrived on this page by clicking a link on another site, please notify the owner of that site that the
10+
link is broken.
11+
If you typed the URL of this page manually, please double check that you entered the address correctly.</p>
1412
</div>
1513
</article>

src/partials/head-meta.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<meta property="og:url" content="{{page.canonicalUrl}}">
1313
<meta property="og:title" content="{{page.title}} :: {{site.title}}">
1414
<meta property="og:description" content="{{page.description}}">
15-
<meta property="og:image" content="https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png">
15+
<meta property="og:image" content="{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png">
1616
<meta property="og:image:type" content="image/png">
1717
<meta property="og:image:width" content="1200">
1818
<meta property="og:image:height" content="628">
@@ -24,18 +24,18 @@
2424
<meta name="twitter:url" content="{{page.canonicalUrl}}">
2525
<meta name="twitter:title" content="{{page.title}} :: {{site.title}}">
2626
<meta name="twitter:description" content="{{page.description}}">
27-
<meta name="twitter:image" content="https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png">
27+
<meta name="twitter:image" content="{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png">
2828
<script type="application/ld+json">
2929
[
3030
{{!-- {{commented expressions}} --}}
31-
{{#if (eq "https://docs.datastax.com/en/astra/home/astra.html" page.canonicalUrl)}}
31+
{{#if (eq "{{{site.url}}}{{{site.homeUrl}}}" page.canonicalUrl)}}
3232
{
3333
"@context": "https://schema.org",
3434
"@type": "WebSite",
3535
"@id": "https://docs.datastax.com",
3636
"name": "DataStax Documentation",
3737
"url": "{{page.canonicalUrl}}",
38-
"image": "https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png",
38+
"image": "{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png",
3939
"sameAs": [
4040
"https://github.com/datastaxdevs/",
4141
"https://twitter.com/datastaxdevs",
@@ -90,7 +90,7 @@
9090
"headline": "{{page.title}}",
9191
"description":"{{page.description}}",
9292
"keywords":"{{page.keywords}}",
93-
"image": "https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png",
93+
"image": "{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png",
9494
"publisher":{
9595
"@type": "Corporation",
9696
"@id": "https://datastax.com#organization",

src/partials/nav-secondary.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<li>
1313
<a
1414
class="text-body-small text-primary hover:bg-level2 flex rounded p-1 !no-underline transition-colors"
15-
href="/en/glossary"
15+
href="{{{site.path}}}/glossary"
1616
target="_blank"
1717
>
1818
<span class="material-icons text-tertiary mr-2">menu_book</span>

0 commit comments

Comments
 (0)