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
|
|
@ -1,6 +1,7 @@
|
|||
{{ define "main" }}
|
||||
{{ if not .Params.menu }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if not .Params.hideDate }}
|
||||
<p class="byline">
|
||||
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
||||
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
|
||||
|
|
@ -8,6 +9,7 @@
|
|||
{{ with .Params.author }}· {{.}}{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<content>
|
||||
{{ .Content }}
|
||||
</content>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,19 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
<content>
|
||||
{{ .Content }}
|
||||
|
||||
<h2>My most recent posts</h2>
|
||||
<ul class="blog-posts">
|
||||
{{ $max := default 3 .Site.Params.postsToShowOnIndex }}
|
||||
{{ $posts := where .Site.RegularPages "Section" "posts" }}
|
||||
{{ range first $max $posts.ByDate.Reverse }}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
<p><a href="/posts/">All posts →</a></p>
|
||||
|
||||
</content>
|
||||
{{ end }}
|
||||
|
|
|
|||
5
layouts/page/presentation.html
Normal file
5
layouts/page/presentation.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<ul>
|
||||
{{ range sort .Site.Data.presentations "date" }}
|
||||
<li><a href={{ .link }}>{{ .title }} ({{ .author }})</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
|
@ -1,3 +1,2 @@
|
|||
<!-- A partial to be overwritten by the user.
|
||||
Simply place a custom_head.html into
|
||||
your local /layouts/partials-directory -->
|
||||
{{ $autoTheme := resources.Get "auto-theme.css" | minify }}
|
||||
<link href="{{ $autoTheme.RelPermalink }}" rel="stylesheet">
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<small>
|
||||
{{ .Site.Copyright }} | {{ markdownify .Site.Params.madeWith }}
|
||||
</small>
|
||||
<div class="footer-copy">
|
||||
{{ .Site.Copyright }}
|
||||
{{ with .Site.Params.madeWith }} | {{ markdownify . }}{{ end }}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
<a class="skip-link" href="#main-content">{{ i18n "skip-link" }}</a>
|
||||
<div class="mesh-wrap mesh-wrap-top" aria-hidden="true">
|
||||
<img src="/mesh.svg" alt="" class="mesh-image mesh-image-top">
|
||||
</div>
|
||||
|
||||
<a href="{{ relURL .Site.Home.RelPermalink }}" class="title"><h1>{{ .Site.Title }}</h1></a>
|
||||
<nav>{{- partial "nav.html" . -}}</nav>
|
||||
|
|
|
|||
|
|
@ -2,21 +2,3 @@
|
|||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
<a href='{{ absURL "index.xml" }}'>RSS</a>
|
||||
|
||||
<!-- Convert this page's translations into a dict -->
|
||||
{{ $translations := dict }}
|
||||
{{ range .Translations }}
|
||||
{{ $translations = merge $translations (dict .Language.Lang .) }}
|
||||
{{ end }}
|
||||
|
||||
<!-- Create a link to every translation -->
|
||||
{{ range where .Site.Languages "Lang" "!=" .Page.Lang }}
|
||||
{{ with (index $translations .Lang) }}
|
||||
<a href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a>
|
||||
{{ else }}
|
||||
<!-- The complicated setup was necessary to make a grayed out link -->
|
||||
{{ if not .Params.hideUntranslated }}
|
||||
<a class="disabled" role="link" aria-disabled="true">{{ .LanguageName }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
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