From 501916cb57b07169bce99666b0da1551071ca94c Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 17 Oct 2021 21:22:13 -0700 Subject: [PATCH] * typo in og tags --- gitpage/layouts/partials/head.html | 2 +- ts/category.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gitpage/layouts/partials/head.html b/gitpage/layouts/partials/head.html index 83fdff7..67e304a 100644 --- a/gitpage/layouts/partials/head.html +++ b/gitpage/layouts/partials/head.html @@ -19,7 +19,7 @@ - + diff --git a/ts/category.ts b/ts/category.ts index 146ab72..40ed497 100644 --- a/ts/category.ts +++ b/ts/category.ts @@ -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'