Selaa lähdekoodia

feat(meta): re-constrain reading time to just posts

Close #740
George Cushen 6 vuotta sitten
vanhempi
commit
b28d5fafe5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      layouts/partials/page_metadata.html

+ 1 - 1
layouts/partials/page_metadata.html

@@ -32,7 +32,7 @@
     <meta itemprop="name" content="{{ $.Site.Params.name }}">
   </span>
 
-  {{ if not (or (eq .Site.Params.reading_time false) (eq .Params.reading_time false)) }}
+  {{ if and (eq $.Type "post") (not (or (eq $.Site.Params.reading_time false) (eq $.Params.reading_time false))) }}
   <span class="middot-divider"></span>
   <span class="article-reading-time">
     {{ $.ReadingTime }} {{ i18n "minute_read" }}