* typo in og tags

This commit is contained in:
shockrah 2021-10-17 21:22:13 -07:00
parent 8040481038
commit 501916cb57
2 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@
<meta property="og:title" content="{{.Site.Title}}">
<meta property="og:site_name" content="{{.Site.Title}}">
<meta property="og:url" content="{{.Site.BaseURL}}">
<meta property="og:description" content="A self hosted solution sharing clips">
<meta property="og:description" content="A self hosted solution for sharing clips">
<meta property="og:type" content="website">
<meta property="og:image" content="{{.Site.BaseURL}}/images/og-bg.jpg">

View File

@ -16,7 +16,10 @@ class VideoMeta {
let link = document.createElement('a')
if(this.name) {
link.href = `/clip/${this.category}/${this.name}`
link.text = this.name.replace('.', ' ').replace('-', ' ')
link.text = this.name
for(const chars of ['.', '-', '_', 'mp4', 'mkv', 'webm']) {
link.text = link.text.replace(chars, ' ')
}
} else {
link.href = '#'
link.text = this.name + 'ft. No thumbnail'