Skip to content

Commit

Permalink
Add opengraph meta tags to add details to social media previews (#230)
Browse files Browse the repository at this point in the history
* Add opengraph meta tags to allow social media previews

* Removed unused tags

* changed twitter card size

* proper image and reverted twitter card size

* suggestion added

* suggestion added

Co-authored-by: Kris Stern <[email protected]>

* suggestion added

Co-authored-by: Kris Stern <[email protected]>

---------

Co-authored-by: Kris Stern <[email protected]>
  • Loading branch information
KitsuneKode and krisstern authored Nov 25, 2024
1 parent 9530f8d commit c4381f2
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,27 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link href='/favicon.ico' rel='shortcut icon' type='image/x-icon'>
<link href='/apple-touch-icon.png' rel='apple-touch-icon' sizes='180x180'>
<link href='/favicon-32x32.png' rel='icon' sizes='32x32' type='image/png'>
<link href='/favicon-16x16.png' rel='icon' sizes='16x16' type='image/png'>
<link href="/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
<link href="/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png" />
<link href="/favicon-16x16.png" rel="icon" sizes="16x16" type="image/png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<meta property="og:title" content="Jenkins Statistics" />
<meta property="og:type" content="website"/>
<meta property="og:image" content="https://raw.githubusercontent.com/jenkins-infra/jenkins.io/refs/heads/master/content/images/gsoc/opengraph.png" />
<meta property="og:url" content="https://stats.jenkins.io" />
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:description" content="This site shows statistics related to Jenkins infrastructure" />
<meta property="og:site_name" content="Jenkins Statistics" />
<meta name="twitter:image:alt" content="Jenkins Statistics" />

<!-- Non-essential, but required for analytics -->
<!-- <meta property="fb:app_id" content="your_app_id" /> -->
<!-- <meta name="twitter:site" content="@twitter-handle" /> -->

<title>Jenkins Statistics</title>

<!-- Load necessary scripts for jio-navbar -->
<script type="module" src="https://unpkg.com/@jenkinsci/jenkins-io-components?module"></script>
<script src="https://unpkg.com/@webcomponents/[email protected]/webcomponents-loader.js"></script>
Expand Down

0 comments on commit c4381f2

Please sign in to comment.