Browse Source

refactor(baseof): moved footer_section into the footer_container partial

Russell J. Hewett 6 years ago
parent
commit
d263439e74
2 changed files with 25 additions and 26 deletions
  1. 25 1
      layouts/partials/footer_container.html
  2. 0 25
      layouts/partials/footer_section.html

+ 25 - 1
layouts/partials/footer_container.html

@@ -1,5 +1,29 @@
 <div class="container">
-  {{ partial "footer_section.html" . }}
+  <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 }}
+
+      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>
 
 {{ partial "citation.html" . }}

+ 0 - 25
layouts/partials/footer_section.html

@@ -1,25 +0,0 @@
-<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 }}
-
-    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>