Skip to content

Commit

Permalink
#13 add html metatags with placeholder content
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzebeling committed Sep 10, 2020
1 parent 17ade32 commit c41574f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script>
import { Router } from "@sveltech/routify";
import { metatags } from '@sveltech/routify'
import { routes } from "../.routify/routes";
import { setContext } from "svelte";
import WordpressAdapter from "./js/WordpressAdapter.js";
Expand All @@ -8,6 +9,18 @@
"WordpressAdapter",
new WordpressAdapter("https://api.robinweissenborn.de/wp-json/wp/v2")
);
metatags.title = 'Robin Weißenborn'; // site.title
metatags.author = 'Robin Weißenborn'; // site.contact.name
metatags.description = 'Description...'; // site.description
metatags.keywords = 'tag1, tag2,'; // site.tags
metatags.generator = 'encoding.group';
metatags['geo.region'] = 'DE';
metatags['og:type'] = 'website';
metatags['og:url'] = 'https://robinweissenborn.de'; // site.url
metatags['og:image'] = 'image'; // site.image
metatags['og:locale'] = 'de_DE';
</script>

<style type="text/scss" global>
Expand Down

0 comments on commit c41574f

Please sign in to comment.