Skip to content

Commit

Permalink
feat(layouts) update header and footer regarding theme, call feather …
Browse files Browse the repository at this point in the history
…replace method
  • Loading branch information
eagleusb committed May 12, 2023
1 parent 386e9dd commit f5c386c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 74 deletions.
1 change: 1 addition & 0 deletions layouts/partials/extended_footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script type="text/javascript">feather.replace({ color: '#1d6cd7' })</script>
1 change: 1 addition & 0 deletions layouts/partials/extended_head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
13 changes: 9 additions & 4 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
</div>
</footer>

<script src="{{ "assets/main.js" | absURL }}"></script>
<script src="{{ "assets/prism.js" | absURL }}"></script>
<script src="{{ "assets/cat.js" | absURL }}"></script>
<script async src="//gc.zgo.at/count.js" data-goatcounter="https://eagleusb.goatcounter.com/count"></script>
{{ $menu := resources.Get "js/menu.js" | js.Build }}
{{ $prism := resources.Get "js/prism.js" | js.Build }}
{{ $bundle := slice $menu $prism | resources.Concat "bundle.js" | resources.Minify }}

<script type="text/javascript" src="{{ $bundle.RelPermalink }}"></script>
<!-- <script type="text/javascript" src="{{ " assets/cat.js" | absURL }}"></script> -->

<!-- Extended footer section-->
{{ partial "extended_footer.html" . }}
70 changes: 0 additions & 70 deletions layouts/partials/head.html

This file was deleted.

0 comments on commit f5c386c

Please sign in to comment.