Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets/ts
diff options
context:
space:
mode:
authorJimmy Cai <jimmehcai@gmail.com>2020-09-03 12:47:55 +0300
committerJimmy Cai <jimmehcai@gmail.com>2020-09-03 12:47:55 +0300
commitaf487e0f3fc36cddb94a1b895c38da212d0ad466 (patch)
tree5e7781e498373df0daf7b8411fec7ae017138254 /assets/ts
parent4bf9d8296184dfbfed7cd165366f046342eb66ab (diff)
feat(style): remove timeago.js, and improve article-time style
Diffstat (limited to 'assets/ts')
-rw-r--r--assets/ts/main.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/assets/ts/main.ts b/assets/ts/main.ts
index 73f8daa..10ab28e 100644
--- a/assets/ts/main.ts
+++ b/assets/ts/main.ts
@@ -9,14 +9,6 @@ let Stack = {
*/
menu();
- /**
- * Add timeago
- */
- const timeagoElements = document.querySelectorAll('article time[data-timeago=true]');
- if (timeagoElements.length) {
- timeago.render(timeagoElements);
- }
-
if (document.querySelector('.article-content')) {
createGallery('.article-content');
}