Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use variables instead of explicit URLs #122

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/partials/article-404.hbs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<article class="doc">
<h1 class="page">{{{or page.title "Page Not Found"}}}</h1>
<div class="paragraph">
<p>The page you&#8217;re looking for does not exist. It may have been moved.
You can{{#with site.homeUrl}}
return to the
<a href="{{{this}}}">start page</a>, or{{/with}}
follow one of the links in the navigation to the left.</p>
<p>The page you&#8217;re looking for doesn&#8217;t exist. It may have been moved. You can return to the
<a href="{{{site.path}}}{{{site.homeUrl}}}">start page</a>, or follow one of the links in the navigation above.
</p>
</div>
<div class="paragraph">
<p>If you arrived on this page by clicking on a link, please notify the
owner of the site that the link is broken. If you typed the URL of this
page manually, please double check that you entered the address correctly.</p>
<p>If you arrived on this page by clicking a link on another site, please notify the owner of that site that the
link is broken.
If you typed the URL of this page manually, please double check that you entered the address correctly.</p>
</div>
</article>
10 changes: 5 additions & 5 deletions src/partials/head-meta.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<meta property="og:url" content="{{page.canonicalUrl}}">
<meta property="og:title" content="{{page.title}} :: {{site.title}}">
<meta property="og:description" content="{{page.description}}">
<meta property="og:image" content="https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png">
<meta property="og:image" content="{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png">
eric-schneider marked this conversation as resolved.
Show resolved Hide resolved
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="628">
Expand All @@ -24,18 +24,18 @@
<meta name="twitter:url" content="{{page.canonicalUrl}}">
<meta name="twitter:title" content="{{page.title}} :: {{site.title}}">
<meta name="twitter:description" content="{{page.description}}">
<meta name="twitter:image" content="https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png">
<meta name="twitter:image" content="{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png">
<script type="application/ld+json">
[
{{!-- {{commented expressions}} --}}
{{#if (eq "https://docs.datastax.com/en/astra/home/astra.html" page.canonicalUrl)}}
{{#if (eq "{{{site.url}}}{{{site.homeUrl}}}" page.canonicalUrl)}}
{
"@context": "https://schema.org",
"@type": "WebSite",
"@id": "https://docs.datastax.com",
"name": "DataStax Documentation",
"url": "{{page.canonicalUrl}}",
"image": "https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png",
"image": "{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png",
"sameAs": [
"https://github.com/datastaxdevs/",
"https://twitter.com/datastaxdevs",
Expand Down Expand Up @@ -90,7 +90,7 @@
"headline": "{{page.title}}",
"description":"{{page.description}}",
"keywords":"{{page.keywords}}",
"image": "https://docs.datastax.com/en/astra/_/img/datastax-docs-banner.png",
"image": "{{{site.url}}}{{{site.ui.url}}}/img/datastax-docs-banner.png",
"publisher":{
"@type": "Corporation",
"@id": "https://datastax.com#organization",
Expand Down
2 changes: 1 addition & 1 deletion src/partials/nav-secondary.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<li>
<a
class="text-body-small text-primary hover:bg-level2 flex rounded p-1 !no-underline transition-colors"
href="/en/glossary"
href="{{{site.path}}}/glossary"
target="_blank"
>
<span class="material-icons text-tertiary mr-2">menu_book</span>
Expand Down
Loading