Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bake/solar-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbake <bake@192k.pw>2018-04-16 22:37:12 +0300
committerbake <bake@192k.pw>2018-04-16 22:37:12 +0300
commitbface1a019296e1fa5c47a3d78c82d082ea69e86 (patch)
tree47b6365c299fda53c8699bc0f8fe588997896201
parent2ada045c80d3aaec981a0cab4e71e0e3339f2362 (diff)
added highlightjs go
-rw-r--r--layouts/partials/footer.html8
-rw-r--r--static/js/highlight.go.min.js1
2 files changed, 8 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 0ff5fe6..b0de64a 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,14 +1,20 @@
</div>
<footer id="footer">
- <p class="copyright">Powered by <a href="http://ghost.org">Hugo</a> and the <a href="https://github.com/BakeRolls/solar-theme-hugo">Solar</a>-theme.</p>
+ <p class="copyright">Powered by
+ <a href="http://ghost.org">Hugo</a> and the
+ <a href="https://github.com/BakeRolls/solar-theme-hugo">Solar</a>-theme.</p>
</footer>
</div>
<script src="{{ .Site.BaseURL }}js/highlight.min.js"></script>
+<script src="{{ .Site.BaseURL }}js/highlight.go.min.js"></script>
<script>
hljs.initHighlightingOnLoad()
</script>
+<script>
+ var _paq = _paq || []; _paq.push(["trackPageView"]), _paq.push(["enableLinkTracking"]), function () { var e = "//analytics.192k.pw/"; _paq.push(["setTrackerUrl", e + "piwik.php"]), _paq.push(["setSiteId", "1"]); var a = document, p = a.createElement("script"), t = a.getElementsByTagName("script")[0]; p.type = "text/javascript", p.async = !0, p.defer = !0, p.src = e + "piwik.js", t.parentNode.insertBefore(p, t) }();
+</script>
</body>
</html> \ No newline at end of file
diff --git a/static/js/highlight.go.min.js b/static/js/highlight.go.min.js
new file mode 100644
index 0000000..cf58a7e
--- /dev/null
+++ b/static/js/highlight.go.min.js
@@ -0,0 +1 @@
+hljs.registerLanguage("go",function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],k:t,i:"</",c:[e.CLCM,e.CBCM,{cN:"string",v:[e.QSM,{b:"'",e:"[^\\\\]'"},{b:"`",e:"`"}]},{cN:"number",v:[{b:e.CNR+"[dflsi]",r:1},e.CNM]},{b:/:=/},{cN:"function",bK:"func",e:/\s*\{/,eE:!0,c:[e.TM,{cN:"params",b:/\(/,e:/\)/,k:t,i:/["']/}]}]}}); \ No newline at end of file