diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-07-31 09:21:24 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-07-31 09:21:24 +0200 |
commit | 1c18f3fc49051fe75604b804e514be7e15712526 (patch) | |
tree | 707f38033fc6033436c70eb6baa179728ca18817 /docs/layouts | |
parent | cb9dfc2613ae5125cafa450097fb0f62dd3770e7 (diff) | |
parent | 50ec65fbe1a48475d3320775dab2c47389c02114 (diff) |
Merge commit '50ec65fbe1a48475d3320775dab2c47389c02114'
Diffstat (limited to 'docs/layouts')
-rw-r--r-- | docs/layouts/shortcodes/articlelist.html | 18 | ||||
-rw-r--r-- | docs/layouts/shortcodes/asciicast.html | 2 | ||||
-rw-r--r-- | docs/layouts/shortcodes/output.html | 5 |
3 files changed, 3 insertions, 22 deletions
diff --git a/docs/layouts/shortcodes/articlelist.html b/docs/layouts/shortcodes/articlelist.html deleted file mode 100644 index 2755b1e2d..000000000 --- a/docs/layouts/shortcodes/articlelist.html +++ /dev/null @@ -1,18 +0,0 @@ -<table class="utils-table"> -<thead> - <tr> - <th class="col-title">Title</td> - <th class="col-author">Author</td> - <th class="col-date">Date</td> - </tr> -</thead> -<tbody> - {{ range $ind, $art := $.Site.Data.articles.article }} - <tr> - <td><a href="{{$art.url}}" target="_blank">{{$art.title | markdownify }}</a></td> - <td>{{ $art.author | markdownify }}</td> - <td>{{ $art.date }}</td> - </tr> - {{ end }} -</tbody> -</table> diff --git a/docs/layouts/shortcodes/asciicast.html b/docs/layouts/shortcodes/asciicast.html new file mode 100644 index 000000000..ee23adc2d --- /dev/null +++ b/docs/layouts/shortcodes/asciicast.html @@ -0,0 +1,2 @@ +{{ $id := .Get 0 }} +<script type="text/javascript" src="https://asciinema.org/a/{{ $id }}.js" id="asciicast-{{ $id }}" data-rows="10" async></script> diff --git a/docs/layouts/shortcodes/output.html b/docs/layouts/shortcodes/output.html index df1a8ae89..e51d284bb 100644 --- a/docs/layouts/shortcodes/output.html +++ b/docs/layouts/shortcodes/output.html @@ -2,10 +2,7 @@ {{$icon := index (split $file ".") 1 }} <div class="code" id="{{$file | urlize}}"> <div class="filename" title="{{$file}}">{{$file}}</div> -<!-- <div class="code-icon"> - <i class="icon-{{$icon}}"></i> - </div> --> <div class="code-copy-content output-content"> - {{- .Inner -}} + <pre><code>{{- .Inner | string -}}</code></pre> </div> </div>
\ No newline at end of file |