Skip to content

Commit

Permalink
[docs] refactor copy-snippets syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed May 13, 2020
1 parent b48f80d commit 5445a8b
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions site/src/_includes/components/copy-snippet.njk
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{% extends "layouts/normal-section-wrapper.njk" %}
{% block section %}
<div class="copy-snippet-widget">
<div class="secondary-font-color"><strong>Place this snippet in your head or just before your close body tag:<strong></div>
<div class="tertiary-font-color"><strong>Place this snippet in your head or just before your close body tag:<strong></div>

<div class="snippet-for-copy">
{% markdownConvert %}
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/quicklink/{{ site.quicklinkVersion }}/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {
quicklink.listen();
});
</script>
```
{% endmarkdownConvert %}
{% highlight "html" %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/quicklink/{{ site.quicklinkVersion }}/quicklink.umd.js"></script>
<script>
window.addEventListener('load', () => {
quicklink.listen();
});
</script>
{% endhighlight %}
</div>

<div>
Expand Down

0 comments on commit 5445a8b

Please sign in to comment.