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
42c90044bd
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74

+ 2
- 5
layouts/_default/search.html View File

@@ -10,9 +10,6 @@
10 10
   </header>
11 11
   <div id="search-app">
12 12
     <section>
13
-      <noscript>
14
-        Aw-shucks! Search requires use of JavaScript to function properly.
15
-      </noscript>
16 13
       <form v-on:submit.prevent class="form" action="{{ "search" | absURL }}">
17 14
         <fieldset class="form-group">
18 15
           <input v-model="query" id="query" name="s" type="search" class="form-control" maxlength="32" autocomplete="off">
@@ -25,10 +22,10 @@
25 22
       <div id="search-results">
26 23
         <article v-for="result in results" itemscope itemtype="http://schema.org/CreativeWork">
27 24
           <header itemprop="name">
28
-            <h2 itemprop="name"><a :href="result.item.url">{ result.item.title }</a></h2>
25
+            <h2 itemprop="name"><a :href="result.item.url"><span v-html="result.item.title"></span></a></h2>
29 26
           </header>
30 27
           <div v-html=result.item.summary itemprop="description"></div>
31
-          <nav class="readmore"><a itemprop="url" :href="result.item.url">Read More&nbsp;&raquo;</a></nav>
28
+          <nav class="readmore"><p><a itemprop="url" :href="result.item.url">Read More&nbsp;&raquo;</a></p></nav>
32 29
         </article>
33 30
       </div>
34 31
     </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