Improve semantics

Amolith created

Change summary

themes/secluded/layouts/_default/list.html | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

Detailed changes

themes/secluded/layouts/_default/list.html 🔗

@@ -11,11 +11,11 @@
     {{ if eq $title "Posts" }}
     <div class="categories">
         <h2>Categories</h2>
-        {{range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
-        <a class="button" href="{{.Permalink}}">
-            <p>{{.Title}}</p>
-        </a>
-        {{end}}
+        <p>
+            {{ range ($.Site.GetPage "taxonomyTerm" "categories").Pages }}
+            <a class="button" href="{{.Permalink}}">{{.Title}}</a>
+            {{- end }}
+        </p>
     </div>
     {{ end }}
 
@@ -30,11 +30,11 @@
                     <span class="posts-day">{{ if .Site.Params.dateformShort }}{{ .Date.Format .Site.Params.dateformShort }}{{ else }}{{ .Date.Format "Jan 02"}}{{ end }}</span>
                 </a>
                 <p>{{ .Summary | truncate 140 }}</p>
-                {{ range (.GetTerms "tags") }}
-                <a class="button" href="{{.Permalink}}">
-                    <p>{{.Title}}</p>
-                </a>
-                {{ end }}
+                <p>
+                    {{- range (.GetTerms "tags") }}
+                    <a class="button" href="{{.Permalink}}">{{.Title}}</a>
+                    {{- end }}
+                </p>
             </li>
             {{- end }}
         </ul>