* typo in og tags
This commit is contained in:
parent
8040481038
commit
501916cb57
@ -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">
|
||||
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user