feat: Add Open Graph and Twitter meta tags, make the domain configurable, and use WebP for thumbnails.
This commit is contained in:
@@ -10,7 +10,17 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
@if(typeof item !== 'undefined')
|
||||
<link rel="canonical" href="https://w0bm.com/{{ item.id }}" />@endif
|
||||
<link rel="canonical" href="https://{{ domain }}/{{ item.id }}" />
|
||||
<meta property="og:site_name" content="f0bm" />
|
||||
<meta property="og:title" content="f0bm - {{ item.id }}" />
|
||||
<meta property="og:url" content="https://{{ domain }}/{{ item.id }}" />
|
||||
<meta property="og:image" content="https://{{ domain }}{{ item.thumbnail }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="twitter:card" content="summary_large_image" />
|
||||
<meta property="twitter:title" content="f0bm - {{ item.id }}" />
|
||||
<meta property="twitter:image" content="https://{{ domain }}{{ item.thumbnail }}" />
|
||||
<meta property="twitter:url" content="https://{{ domain }}/{{ item.id }}" />
|
||||
@endif
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user