Updates migrating previous theme to hugo-bearcub
Some checks failed
github pages / deploy (push) Failing after 2s

This commit is contained in:
Alex Selimov 2026-03-02 19:38:07 -05:00
parent 1d12a76549
commit ef8f417c6c
14 changed files with 213 additions and 26 deletions

View file

@ -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>

View file

@ -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 }}

View file

@ -0,0 +1,5 @@
<ul>
{{ range sort .Site.Data.presentations "date" }}
<li><a href={{ .link }}>{{ .title }} ({{ .author }})</a></li>
{{ end }}
</ul>

View file

@ -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">

View file

@ -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>

View file

@ -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>

View file

@ -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 }}

View 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 "" }}

View file

@ -0,0 +1 @@
<i class={{ .Get "class" }}></i>

View 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>

View 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>

View 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>

View file