hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

exfile.html (923B)

    1 {{ $file := .Get 0}}
    2 {{ $filepath := replace $file "static/" ""}}
    3 {{ $syntax := index (split $file ".") 1 }}
    4 {{ $syntaxoverride := eq (len .Params) 2 }}
    5 <div class="code-copy" id="{{$file | urlize}}">
    6 	<div class="code-copy-header examplesite"><div class="action-buttons"></div><span class="filename"><i class="icon-website"></i>{{$filepath}}</span><i class="icon-{{$syntax}} input"></i></div>
    7 	<button class="copy-button" title="Copy to clipboard" data-clipboard-snippet>
    8 			<div class="copy-text"><i class="icon-clipboard"></i> COPY</div>
    9 	</button>
   10 	<pre><code class="language-{{if $syntaxoverride}}{{.Get 1}}{{else}}{{$syntax}}{{end}}">{{- readFile $file -}}</code></pre>
   11 	<a role="button" target="_blank" href="{{$.Site.Params.ghdocsrepo}}{{$file}}" title="See {{$filepath}} source on GitHub" class="tooltip see-on-github" data-tooltip="See {{$filepath}} source on GitHub">Source<i class="icon-github"></i></a>
   12 </div>