Updates migrating previous theme to hugo-bearcub
Some checks failed
github pages / deploy (push) Failing after 2s
Some checks failed
github pages / deploy (push) Failing after 2s
This commit is contained in:
parent
1d12a76549
commit
ef8f417c6c
14 changed files with 213 additions and 26 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 "" }}
|
||||
1
layouts/shortcodes/fontawesome.html
Normal file
1
layouts/shortcodes/fontawesome.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<i class={{ .Get "class" }}></i>
|
||||
6
layouts/shortcodes/img.html
Normal file
6
layouts/shortcodes/img.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<center>
|
||||
<img {{ with .Get "src" }} src="{{ . }}"{{ end }}
|
||||
{{ with .Get "width" }} width="{{ . }}"{{ end }}
|
||||
{{ with .Get "max-width" }} style=" max-width:{{ . }}" {{ end }}
|
||||
>
|
||||
</center>
|
||||
6
layouts/shortcodes/presentations.html
Normal file
6
layouts/shortcodes/presentations.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<ul>
|
||||
{{ range .Site.Data.presentations }}
|
||||
<li>{{ .authors }} ({{ .date }}) {{ .title }}. {{ .conference }} {{ with .link }}
|
||||
<a href={{ . }}>[Link]</a>{{ end }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
5
layouts/shortcodes/publications.html
Normal file
5
layouts/shortcodes/publications.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<ul>
|
||||
{{ range .Site.Data.publications }}
|
||||
<li>{{ .authors }} ({{ .year }}). {{ .title }}. <em>{{ .journal }}</em> {{ .volume }}, {{ .pages }} {{ with .link }} <a href={{ . }}>[Link]</a>{{ end }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
0
layouts/shortcodes/recent-articles.html
Normal file
0
layouts/shortcodes/recent-articles.html
Normal file
Loading…
Add table
Add a link
Reference in a new issue