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'