Jelajahi Sumber

refactor(baseof): minor adjustments to site_footer to help accomodate the docs layout

Russell J. Hewett 6 tahun lalu
induk
melakukan
044957aca1
2 mengubah file dengan 26 tambahan dan 26 penghapusan
  1. 4 1
      layouts/_default/baseof.html
  2. 22 25
      layouts/partials/site_footer.html

+ 4 - 1
layouts/_default/baseof.html

@@ -13,8 +13,11 @@
 
   {{ partial "site_js.html" . }}
 
-  {{ partial "site_footer.html" . }}
+  <div class="container">
+    {{ partial "site_footer.html" . }}
+  </div>
 
+  {{ partial "citation.html" . }}
 
 </body>
 

+ 22 - 25
layouts/partials/site_footer.html

@@ -1,29 +1,26 @@
-<div class="container">
-  <footer class="site-footer">
-    {{ with site.GetPage "privacy.md" }}
-    <p class="powered-by">
-      {{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}
-    </p>
-    {{ end }}
+<footer class="site-footer">
+  {{ with site.GetPage "privacy.md" }}
+  <p class="powered-by">
+    {{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}
+  </p>
+  {{ end }}
 
-    <p class="powered-by">
-      {{ with site.Copyright }}{{ replace . "{year}" now.Year | markdownify}} &middot; {{ end }}
+  <p class="powered-by">
+    {{ with site.Copyright }}{{ replace . "{year}" now.Year | markdownify}} &middot; {{ end }}
 
-      Powered by the
-      <a href="https://sourcethemes.com/academic/" target="_blank" rel="noopener">Academic theme</a> for
-      <a href="https://gohugo.io" target="_blank" rel="noopener">Hugo</a>.
+    Powered by the
+    <a href="https://sourcethemes.com/academic/" target="_blank" rel="noopener">Academic theme</a> for
+    <a href="https://gohugo.io" target="_blank" rel="noopener">Hugo</a>.
 
-      {{ if ne .Type "docs" }}
-      <span class="float-right" aria-hidden="true">
-        <a href="#" id="back_to_top">
-          <span class="button_icon">
-            <i class="fas fa-chevron-up fa-2x"></i>
-          </span>
-        </a>
-      </span>
-      {{ end }}
-    </p>
-  </footer>
-</div>
+    {{ if ne .Type "docs" }}
+    <span class="float-right" aria-hidden="true">
+      <a href="#" id="back_to_top">
+        <span class="button_icon">
+          <i class="fas fa-chevron-up fa-2x"></i>
+        </span>
+      </a>
+    </span>
+    {{ end }}
+  </p>
+</footer>
 
-{{ partial "citation.html" . }}