Refactor site to new theme
Some checks failed
Build and Deploy Hugo / deploy (push) Failing after 20s
Some checks failed
Build and Deploy Hugo / deploy (push) Failing after 20s
This commit is contained in:
parent
1c5cdb3b97
commit
2519b96a86
16 changed files with 2590 additions and 83 deletions
6
layouts/shortcodes/code.html
Normal file
6
layouts/shortcodes/code.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{ .Page.Store.Set "hasCodeBlock" true }}
|
||||
{{ $lang := .Get "language" | default "" }}
|
||||
{{ with .Get "title" }}
|
||||
<p><strong>{{ . }}</strong></p>
|
||||
{{ end }}
|
||||
{{ highlight (trim .Inner "\r\n") $lang "" }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue