~xdavidwu/xdavidwu.link

7fd28892fa66cd2e48ef4b80796a84e28670b831 — xdavidwu 2 years ago 27daca2
remove rel="permalink"

weird custom rel usage without any obvious effect
3 files changed, 4 insertions(+), 17 deletions(-)

M _includes/archive-single.html
M _sass/minimal-mistakes/_archive.scss
M assets/js/lunr/lunr-en.js
M _includes/archive-single.html => _includes/archive-single.html +2 -2
@@ 25,9 25,9 @@
    {% endif %}
    <h2 class="archive__item-title no_toc" itemprop="headline">
      {% if post.link %}
        <a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}" rel="permalink"><i class="fa fa-fw fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
        <a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}"><i class="fa fa-fw fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
      {% else %}
        <a href="{{ post.url | relative_url }}" rel="permalink">{{ title }}</a>
        <a href="{{ post.url | relative_url }}">{{ title }}</a>
      {% endif %}
    </h2>
    {% include page__meta.html type=include.type %}

M _sass/minimal-mistakes/_archive.scss => _sass/minimal-mistakes/_archive.scss +0 -13
@@ 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;
  }

M assets/js/lunr/lunr-en.js => assets/js/lunr/lunr-en.js +2 -2
@@ 52,7 52,7 @@ document.addEventListener('DOMContentLoaded', () => {
        searchitem.innerHTML =
          '<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">'+
            '<h2 class="archive__item-title" itemprop="headline">'+
              '<a href="'+store[ref].url+'" rel="permalink">'+store[ref].title+'</a>'+
              '<a href="'+store[ref].url+'">'+store[ref].title+'</a>'+
            '</h2>'+
            '<div class="archive__item-teaser">'+
              '<img src="'+store[ref].teaser+'" alt="">'


@@ 64,7 64,7 @@ document.addEventListener('DOMContentLoaded', () => {
    	searchitem.innerHTML =
          '<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">'+
            '<h2 class="archive__item-title" itemprop="headline">'+
              '<a href="'+store[ref].url+'" rel="permalink">'+store[ref].title+'</a>'+
              '<a href="'+store[ref].url+'">'+store[ref].title+'</a>'+
            '</h2>'+
            '<p class="archive__item-excerpt" itemprop="description">'+store[ref].excerpt.split(" ").splice(0,20).join(" ")+'...</p>'+
          '</article>';