Merge branch 'move-inline-script' into 'master'
Move inline script to script file See merge request tschwery/blog-hugo!8
This commit is contained in:
commit
93968dc305
2 changed files with 21 additions and 0 deletions
20
layouts/partials/footer.html
Normal file
20
layouts/partials/footer.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
<footer role="contentinfo">
|
||||
<div class="hr"></div>
|
||||
<div class="footer-link">
|
||||
{{ with .Site.Params.email }}<a href="mailto:{{ . }}" target="_blank">Email</a>{{ end }}
|
||||
{{ with .Site.Params.twitter }}<a href="{{ . }}" target="_blank">Twitter</a>{{ end }}
|
||||
{{ with .Site.Params.facebook }}<a href="{{ . }}" target="_blank">Facebook</a>{{ end }}
|
||||
{{ with .Site.Params.github }}<a href="{{ . }}" target="_blank">GitHub</a>{{ end }}
|
||||
{{ with .Site.Params.gitlab }}<a href="{{ . }}" target="_blank">GitLab</a>{{ end }}
|
||||
</div>
|
||||
<div class="copyright">Copyright © {{ .Site.Copyright | safeHTML }}</div>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
|
||||
<script src="/js/init.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
1
static/js/init.js
Normal file
1
static/js/init.js
Normal file
|
@ -0,0 +1 @@
|
|||
hljs.initHighlightingOnLoad();
|
Loading…
Add table
Reference in a new issue