~xdavidwu/xdavidwu.link

4606e4ddb034f6310bd84dd1a70f7151605bdd65 — Michael Rose 6 years ago 28c33e9
Add `id` to page title
3 files changed, 3 insertions(+), 3 deletions(-)

M _layouts/archive.html
M _layouts/search.html
M _layouts/single.html
M _layouts/archive.html => _layouts/archive.html +1 -1
@@ 19,7 19,7 @@ layout: default

  <div class="archive">
    {% unless page.header.overlay_color or page.header.overlay_image %}
      <h1 class="page__title">{{ page.title }}</h1>
      <h1 id="page-title" class="page__title">{{ page.title }}</h1>
    {% endunless %}
    {{ content }}
  </div>

M _layouts/search.html => _layouts/search.html +1 -1
@@ 17,7 17,7 @@ layout: default

  <div class="archive">
    {% unless page.header.overlay_color or page.header.overlay_image %}
      <h1 class="page__title">{{ page.title }}</h1>
      <h1 id="page-title" class="page__title">{{ page.title }}</h1>
    {% endunless %}

    {{ content }}

M _layouts/single.html => _layouts/single.html +1 -1
@@ 26,7 26,7 @@ layout: default
    <div class="page__inner-wrap">
      {% unless page.header.overlay_color or page.header.overlay_image %}
        <header>
          {% if page.title %}<h1 class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
          {% if page.title %}<h1 id="page-title" class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
          {% if page.read_time %}
            <p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
          {% endif %}