Switched index to use Jekyll's code highlighting
We previously used Google's Prettify, which worked on the client side. Now that we are actually using Jekyll, and it has built-in syntax highlighting, we might as well change to doing highlighting on the backend.
This commit is contained in:
parent
ff9486bbd2
commit
54441e6a22
@ -32,7 +32,6 @@ slug: home
|
|||||||
|
|
||||||
<hr class="half-rule">
|
<hr class="half-rule">
|
||||||
|
|
||||||
|
|
||||||
<div class="s2-docs-featurette">
|
<div class="s2-docs-featurette">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
@ -124,10 +123,10 @@ slug: home
|
|||||||
section of your HTML.
|
section of your HTML.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre class="code prettyprint">
|
{% highlight html %}
|
||||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" />
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/css/select2.min.css" rel="stylesheet" />
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.1/js/select2.min.js"></script>
|
||||||
</pre>
|
{% endhighlight %}
|
||||||
|
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<i class="fa fa-info-circle"></i>
|
<i class="fa fa-info-circle"></i>
|
||||||
@ -141,11 +140,11 @@ slug: home
|
|||||||
want to make awesome.
|
want to make awesome.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre class="code prettyprint">
|
{% highlight html %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$('select').select2();
|
$('select').select2();
|
||||||
</script>
|
</script>
|
||||||
</pre>
|
{% endhighlight %}
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -178,10 +177,10 @@ slug: home
|
|||||||
section of your HTML.
|
section of your HTML.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre class="code prettyprint">
|
{% highlight html %}
|
||||||
<link href="path/to/select2.min.css" rel="stylesheet" />
|
<link href="path/to/select2.min.css" rel="stylesheet" />
|
||||||
<script src="path/to/select2.min.js"></script>
|
<script src="path/to/select2.min.js"></script>
|
||||||
</pre>
|
{% endhighlight %}
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
Loading…
Reference in New Issue
Block a user