Add highlightjs

This commit is contained in:
Oliver Davies 2017-01-07 22:54:36 +00:00
parent c9072b386e
commit b8ef0942cb
8 changed files with 15 additions and 3 deletions

View file

@ -8,8 +8,6 @@
<script src="{{ site.url }}/assets/js/site.js"></script>
{% block scripts %}{% endblock %}
{% if site.google_analytics_tracking_id %}
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', '{{ site.google_analytics_tracking_id }}', 'auto'); ga('send', 'pageview');</script>
{% endif %}

View file

@ -20,5 +20,7 @@
</div>{# .container #}
{% include 'footer' %}
{% block scripts %}{% endblock %}
</body>
</html>

View file

@ -11,3 +11,7 @@
{% include 'post/pager' %}
{% include 'post/about-author' %}
{% endblock %}
{% block scripts %}
<script>hljs.initHighlightingOnLoad();</script>
{% endblock %}