From 7fd28892fa66cd2e48ef4b80796a84e28670b831 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Sun, 6 Feb 2022 20:11:04 +0800 Subject: [PATCH] remove rel="permalink" weird custom rel usage without any obvious effect --- _includes/archive-single.html | 4 ++-- _sass/minimal-mistakes/_archive.scss | 13 ------------- assets/js/lunr/lunr-en.js | 4 ++-- 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/_includes/archive-single.html b/_includes/archive-single.html index e399ea5..8538864 100644 --- a/_includes/archive-single.html +++ b/_includes/archive-single.html @@ -25,9 +25,9 @@ {% endif %}

{% if post.link %} - {{ title }} Permalink + {{ title }} Permalink {% else %} - {{ title }} + {{ title }} {% endif %}

{% include page__meta.html type=include.type %} diff --git a/_sass/minimal-mistakes/_archive.scss b/_sass/minimal-mistakes/_archive.scss index c9f95be..1ab8263 100644 --- a/_sass/minimal-mistakes/_archive.scss +++ b/_sass/minimal-mistakes/_archive.scss @@ -24,10 +24,6 @@ position: relative; z-index: 10; } - - a[rel="permalink"] { - position: static; - } } .archive__subtitle { @@ -47,15 +43,6 @@ overflow: hidden; text-overflow: ellipsis; - a[rel="permalink"]::before { - content: ''; - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - } - a + a { opacity: 0.5; } diff --git a/assets/js/lunr/lunr-en.js b/assets/js/lunr/lunr-en.js index caa908e..f6887ca 100644 --- a/assets/js/lunr/lunr-en.js +++ b/assets/js/lunr/lunr-en.js @@ -52,7 +52,7 @@ document.addEventListener('DOMContentLoaded', () => { searchitem.innerHTML = '
'+ '

'+ - ''+store[ref].title+''+ + ''+store[ref].title+''+ '

'+ '
'+ '' @@ -64,7 +64,7 @@ document.addEventListener('DOMContentLoaded', () => { searchitem.innerHTML = ''; -- 2.43.0