Install the lovely Highlight.js for automatic syntax highlighting of code blocks

This commit is contained in:
Danielle McLean 2018-03-21 16:35:50 +11:00
parent f0cf3b3a68
commit 27e0cb9a34
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,4 @@
$monokai_bg = #272822
$sm = 576px $sm = 576px
$md = 768px $md = 768px
$lg = 992px $lg = 992px
@ -18,7 +19,7 @@ code, pre, .code, .pre
padding .2rem .4rem padding .2rem .4rem
font-size 90% font-size 90%
color $base0A color $base0A
background-color $base00 background-color $monokai_bg
border-radius .25rem border-radius .25rem
.form-control, .form-control:focus .form-control, .form-control:focus

View file

@ -31,6 +31,8 @@
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous" /> integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/monokai.min.css"
integrity="sha384-bHqbpRh/XW+phptvH9nQvMKHwPH1ZbOxpIeAB2D2OIEL4Ni7aZzZgMFpsRra+v1g" crossorigin="anonymous" />
{% compress css %} {% compress css %}
<link rel="stylesheet" type="text/css" href={% static 'openwebicons/css/openwebicons.css' %} /> <link rel="stylesheet" type="text/css" href={% static 'openwebicons/css/openwebicons.css' %} />
<link rel="stylesheet" type="text/css" href={% static 'tippy.js/tippy.css' %} /> <link rel="stylesheet" type="text/css" href={% static 'tippy.js/tippy.css' %} />
@ -111,9 +113,14 @@
integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"></script> integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" crossorigin="anonymous" <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" crossorigin="anonymous"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"></script> integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js" crossorigin="anonymous"
integrity="sha384-ZeLYJ2PNSQjvogWP559CDAf02Qb8FE5OyQicqtz/+UhZutbrwyr87Be7NPH/RgyC"></script>
{% compress js %} {% compress js %}
<script src="{% static 'tippy.js/tippy.standalone.js' %}"></script> <script src="{% static 'tippy.js/tippy.standalone.js' %}"></script>
<script type="text/javascript">
hljs.initHighlightingOnLoad();
</script>
{% block foot %}{% endblock %} {% block foot %}{% endblock %}
{% endcompress %} {% endcompress %}
{% analytical_body_bottom %} {% analytical_body_bottom %}