Skip to content

Commit

Permalink
ui/docs: Add meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jadyndev committed Feb 25, 2022
1 parent 3037f09 commit dac3af2
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
7 changes: 7 additions & 0 deletions antora-playbook-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ ui:
bundle:
url: ui/build/ui-bundle.zip
snapshot: true

asciidoc:
attributes:
description: 'Teebeutel (eng. Teabag) is an electronic, Entropia themed con-badge for the GPN20, featuring an ESP32 microprocessor running micropython.'
keywords: 'Teebeutel, Entropia, GPN20'
page-og-image: '/_/img/preview.jpg'
page-og-type: website
7 changes: 7 additions & 0 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ ui:
bundle:
url: ui/build/ui-bundle.zip
snapshot: true

asciidoc:
attributes:
description: 'Teebeutel (eng. Teabag) is an electronic, Entropia themed con-badge for the GPN20, featuring an ESP32 microprocessor running micropython.'
keywords: 'Teebeutel, Entropia, GPN20'
page-og-image: '/_/img/preview.jpg'
page-og-type: website
Binary file added ui/src/img/preview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions ui/src/partials/head-info.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{#with page.canonicalUrl}}
<link rel="canonical" href="{{{this}}}">
<meta property="og:url" content="{{{this}}}">
{{/with}}
{{#unless (eq page.attributes.pagination undefined)}}
{{#with page.previous}}
Expand All @@ -11,10 +12,17 @@
{{/unless}}
{{#with page.description}}
<meta name="description" content="{{this}}">
<meta property="og:description" content="{{this}}">
{{/with}}
{{#with page.keywords}}
<meta name="keywords" content="{{this}}">
{{/with}}
{{#with (or antoraVersion site.antoraVersion)}}
<meta name="generator" content="Antora {{this}}">
{{/with}}
{{# with page.attributes.og-type}}
<meta property="og:type" content="website">
{{/with}}
{{# with page.attributes.og-image}}
<meta property="og:image" content="{{{../site.url}}}{{{this}}}">
{{/with}}
3 changes: 2 additions & 1 deletion ui/src/partials/head-title.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<title>{{{detag (or page.title defaultPageTitle)}}}{{#with site.title}} :: {{this}}{{/with}}</title>
<title>{{{detag (or page.title defaultPageTitle)}}}{{#with site.title}} | {{this}}{{/with}}</title>
<meta property="og:title" content="{{{detag (or page.title defaultPageTitle)}}}{{#with site.title}} | {{this}}{{/with}}">
2 changes: 1 addition & 1 deletion ui/src/partials/head.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{> head-prelude}}
{{> head-title}}
{{> head-scripts}}
{{> head-info}}
{{> head-styles}}
{{> head-meta}}
{{> head-scripts}}
{{> head-icons}}

0 comments on commit dac3af2

Please sign in to comment.