mirror of
https://github.com/litruv/Docs-Viewer.git
synced 2026-07-24 02:36:07 +10:00
Add dynamic Open Graph site name meta tag for improved social sharing
This commit is contained in:
10
index.html
10
index.html
@@ -7,8 +7,6 @@
|
||||
|
||||
<meta name="description" content="Documentation for Litruv's tools and projects">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:site_name" content="Litruv Documentation">
|
||||
<meta property="og:title" content="Documentation">
|
||||
<meta property="og:description" content="Documentation for Litruv's tools and projects">
|
||||
<meta property="og:url" content="">
|
||||
<meta name="twitter:card" content="summary">
|
||||
@@ -18,6 +16,14 @@
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/themes/prism-tomorrow.min.css">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css">
|
||||
|
||||
<script>
|
||||
var link = document.createElement('meta');
|
||||
link.setAttribute('property', 'og:site_name');
|
||||
link.content = "Litruv Documentation Test OG Tags";
|
||||
document.getElementsByTagName('head')[0].appendChild(link);
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
Reference in New Issue
Block a user