Create snippet component

This commit is contained in:
Jeremy Thomas
2017-08-30 20:44:39 +01:00
parent 1776d601da
commit 9b06974cd1
15 changed files with 180 additions and 216 deletions

View File

@@ -1,6 +1,6 @@
<hr style="margin-bottom: 0;">
<h3 id="{{ include.name | slugify }}" class="title is-4 bd-anchor-title">
<h3 id="{{ include.name | slugify }}" class="title is-4 is-spaced bd-anchor-title">
{{ include.name }}
<a class="bd-anchor-link" href="#{{ include.name | slugify }}">
#

View File

@@ -0,0 +1,8 @@
<div class="bd-snippet">
<div class="bd-snippet-preview">
{{ include.content }}
</div>
<div class="bd-snippet-code">
{% highlight html %}{{ include.content }}{% endhighlight %}
</div>
</div>