Browse Source

fix(layouts): move inline-level content in navs inside <p>

provides better layout when styles are stripped clean
Josh Habdas 1 year ago
parent
commit
1b0187da4f
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74

+ 1
- 1
layouts/_default/search.html View File

@@ -29,7 +29,7 @@
29 29
               <h2 itemprop="name"><a :href="result.item.url"><span v-html="result.item.title"></span></a></h2>
30 30
             </header>
31 31
             <div v-html=result.item.summary itemprop="description"></div>
32
-            <nav class="readmore"><a itemprop="url" :href="result.item.url">Read More&nbsp;&raquo;</a></nav>
32
+            <nav class="readmore"><p><a itemprop="url" :href="result.item.url">Read More&nbsp;&raquo;</a></p></nav>
33 33
           </article>
34 34
         </div>
35 35
       </section>

+ 3
- 1
layouts/partials/page-summary.html View File

@@ -14,7 +14,9 @@
14 14
     {{ .Summary }}
15 15
   </div>
16 16
   {{ if .Truncated }}
17
-    <nav class="readmore"><a itemprop="url" href="{{ .RelPermalink }}">Read More&nbsp;&raquo;</a></nav>
17
+    <nav class="readmore"><p>
18
+      <a itemprop="url" href="{{ .RelPermalink }}">Read More&nbsp;&raquo;</a>
19
+    </p></nav>
18 20
   {{ end }}
19 21
   <meta itemprop="inLanguage" content="{{ .Site.LanguageCode }}">
20 22
   <meta itemprop="datePublished" content="{{ dateFormat "2006-01-02T15:04:05-07:00" (default .Date (.PublishDate)) }}">

+ 2
- 2
layouts/partials/pagination.html View File

@@ -1,4 +1,4 @@
1
-<nav>
1
+<nav><p>
2 2
   {{ if .Paginator.HasPrev }}
3 3
     <a href="{{ .Paginator.Prev.URL }}">&laquo; Previous</a> |
4 4
   {{ end }}
@@ -10,4 +10,4 @@
10 10
   {{ if .Paginator.HasNext }}
11 11
     | <a href="{{ .Paginator.Next.URL }}">Next &raquo;</a>
12 12
   {{ end }}
13
-</nav>
13
+</p></nav>

Loading…
Cancel
Save