yukyo0821 3 年 前
コミット
32993605ff

+ 1 - 1
themes/hugo-lamp/layouts/_default/list.html

@@ -14,7 +14,7 @@
         <div class="row">
             <div class="col-md-8">
             {{ $paginator := .Paginate .Data.Pages }}
-            {{ range $paginator.Pages }}
+            {{ range where $paginator.Pages "Draft" false }}
             <div class="mb-5 post">
                 <div class="mb-4">
                     <a href="{{ .RelPermalink }}">

+ 1 - 1
themes/hugo-lamp/layouts/blog/list.html

@@ -14,7 +14,7 @@
         <div class="row">
             <div class="col-md-8">
             {{ $paginator := .Paginate .Data.Pages }}
-            {{ range $paginator.Pages }}
+            {{ range where $paginator.Pages "Draft" false }}
             <div class="mb-5 post">
                 <div class="mb-4">
                     <a href="{{ .RelPermalink }}">