-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!-- Google tag (gtag.js) --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NXW2P6CCF3"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', 'G-NXW2P6CCF3'); | ||
</script> | ||
|
||
<script> | ||
(function () { | ||
// See these pages for details: | ||
// https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls | ||
// https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics | ||
let base = "https://doc.veryl-lang.org/book"; | ||
{{#if (eq language "en")}} | ||
let canonical_href = `${base}/{{ path }}`; | ||
{{else}} | ||
let canonical_href = `${base}/{{ language }}/{{ path }}`; | ||
{{/if}} | ||
// mdbook gives us a string ending in ".md", we replace it with ".html": | ||
canonical_href = canonical_href.slice(0, -"md".length) + "html"; | ||
if (canonical_href.endsWith("/index.html")) { | ||
canonical_href = canonical_href.slice(0, -"index.html".length); | ||
} | ||
let link = document.createElement("link"); | ||
link.rel = "canonical"; | ||
link.href = canonical_href; | ||
document.head.appendChild(link); | ||
})() | ||
</script> | ||
|
||
<meta property="og:url" content="https://github.com/veryl-lang/veryl" /> | ||
<meta property="og:title" content="Veryl: A Modern Hardware Description Language" /> | ||
<meta property="og:description" content="Veryl is a hardware description language which is designed as a SystemVerilog alternative." /> | ||
<meta property="og:image" content="https://github.com/veryl-lang/veryl/raw/master/support/logo/veryl_ogp.png" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters