Explorar o código

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

Close #740
George Cushen %!s(int64=6) %!d(string=hai) anos
pai
achega
b28d5fafe5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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" }}