-
-{{ else }}
-{{/* Single column layout. */}}
-
-
-
-
- {{ with $st.Title }}
{{ . | markdownify | emojify }} {{ end }}
- {{ with $st.Params.subtitle }}
{{ . | markdownify | emojify }}
{{ end }}
-
-
-{{ end }}
-
- {{ with $st.Content }}{{ . }}{{ end }}
-
- {{ if $st.Params.content.filter_button }}
-
- {{ $filter_default := default (int $st.Params.content.filter_default) 0 }}
-
- {{/* Parse default filter tag from front matter in the form of either tag name or CSS class name. */}}
- {{ $default_filter_tag_raw := (index $st.Params.content.filter_button ($filter_default)).tag }}
- {{ $default_filter_tag := printf ".js-id-%s" (replace $default_filter_tag_raw " " "-") }}
- {{ if or (eq (substr $default_filter_tag_raw 0 1) "*") (eq (substr $default_filter_tag_raw 0 1) ".") }}
- {{ $default_filter_tag = $default_filter_tag_raw }}
- {{ end }}
-
-
{{ $default_filter_tag }}
-
- {{/* Only show filter buttons if there are multiple filters. */}}
- {{ if gt (len $st.Params.content.filter_button) 1 }}
-
- {{ end }}
- {{ end }}
-
-
- {{ range $idx, $item := where site.RegularPages "Type" $items_type }}
-
- {{ $link := $item.RelPermalink }}
- {{ $target := "" }}
- {{ if $item.Params.external_link }}
- {{ $link = $item.Params.external_link }}
- {{ $target = "target=\"_blank\" rel=\"noopener\"" }}
- {{ end }}
-
- {{ if eq $st.Params.design.view 1 }}
- {{ partial "portfolio_li_list" (dict "item" $item) }}
- {{ else if eq $st.Params.design.view 2 }}
- {{ partial "portfolio_li_compact" (dict "item" $item) }}
- {{ else if eq $st.Params.design.view 3 }}
- {{ partial "portfolio_li_card" (dict "widget" $st "index" $idx "item" $item "link" $link "target" $target) }}
- {{ else }}
- {{ partial "portfolio_li_showcase" (dict "widget" $st "index" $idx "item" $item "link" $link "target" $target) }}
- {{ end }}
-
- {{ end }}
-
-
-
-
diff --git a/themes/academic/layouts/partials/widgets/slider.html b/themes/academic/layouts/partials/widgets/slider.html
deleted file mode 100644
index 5da34b1..0000000
--- a/themes/academic/layouts/partials/widgets/slider.html
+++ /dev/null
@@ -1,62 +0,0 @@
-{{ $ := .root }}
-{{ $page := .page }}
-{{ $hash_id := .hash_id }}
-
-
-
- {{ range $index, $item := $page.Params.item }}
-
- {{ end }}
-
-
-
-
- {{ range $index, $item := $page.Params.item }}
-
-
-
- {{ with $item.title }}{{ . | markdownify | emojify }}{{ end }}
-
-
- {{ with $item.content }}
-
- {{ . | markdownify | emojify }}
-
- {{ end }}
-
- {{ if $item.cta_url }}
- {{ $pack := or .cta_icon_pack "fas" }}
- {{ $pack_prefix := $pack }}
- {{ if in (slice "fab" "fas" "far" "fal") $pack }}
- {{ $pack_prefix = "fa" }}
- {{ end }}
-
-
- {{- with $item.cta_icon -}} {{- end -}}
- {{- $item.cta_label | emojify | safeHTML -}}
-
-
- {{ end }}
-
-
- {{ end }}
-
-
-
-
-
- Previous
-
-
-
- Next
-
diff --git a/themes/academic/layouts/partials/widgets/tag_cloud.html b/themes/academic/layouts/partials/widgets/tag_cloud.html
deleted file mode 100644
index 595d075..0000000
--- a/themes/academic/layouts/partials/widgets/tag_cloud.html
+++ /dev/null
@@ -1,49 +0,0 @@
-{{/* Pages Widget */}}
-
-{{/* Initialise */}}
-{{ $ := .root }}
-{{ $st := .page }}
-{{ $taxonomy := $st.Params.content.taxonomy | default "tags" }}
-{{ $fontSmall := $st.Params.design.font_size_min | default 0.8 }}
-{{ $fontBig := $st.Params.design.font_size_max | default 2.5 }}
-
-{{ $items_count := $st.Params.content.count }}
-{{ if eq $items_count 0 }}
- {{ $items_count = 65535 }}
-{{ else }}
- {{ $items_count = $items_count | default 20 }}
-{{ end }}
-
-{{/* Query */}}
-{{ $tags := first $items_count (index site.Taxonomies $taxonomy).ByCount }}
-{{ $count := len $tags }}
-
-
-
-
{{ with $st.Title }}{{ . | markdownify | emojify }}{{ end }}
- {{ with $st.Params.subtitle }}
{{ . | markdownify | emojify }}
{{ end }}
-
-
- {{ with $st.Content }}{{ . }}{{ end }}
-
- {{ if ne $count 0 }}
-
- {{ $fontDelta := sub $fontBig $fontSmall }}
- {{/* Warning: Hugo's `Reverse` function appears to operate in-place, hence the order of performing $max/$min matters. */}}
- {{ $max := add (len (index $tags 0).Pages) 1 }}
- {{ $min := len (index ($tags).Reverse 0).Pages }}
- {{ $delta := sub $max $min }}
- {{ $fontStep := div $fontDelta $delta }}
-
-
- {{ range $name, $term := (sort $tags ".Page.Title" "asc") }}
- {{ $tagCount := len $term.Pages }}
- {{ $weight := div (sub (math.Log $tagCount) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }}
- {{ $fontSize := add $fontSmall (mul (sub $fontBig $fontSmall) $weight) }}
-
{{ .Page.Title }}
- {{ end }}
-
- {{ end }}
-
-
-
diff --git a/themes/academic/layouts/project/single.html b/themes/academic/layouts/project/single.html
deleted file mode 100644
index 485c72c..0000000
--- a/themes/academic/layouts/project/single.html
+++ /dev/null
@@ -1,68 +0,0 @@
-{{- define "main" -}}
-
-
-
- {{ partial "page_header.html" . }}
-
-
-
-
- {{ .Content }}
-
-
- {{ partial "page_footer" . }}
-
-
- {{ $page := . }}
- {{ $project := .File.ContentBaseName }}
-
- {{ $items := where (where site.RegularPages "Type" "post") ".Params.projects" "intersect" (slice $project) }}
- {{ $count := len $items }}
- {{ if ge $count 1 }}
-
{{ (i18n "posts") }}
- {{ range $items }}
- {{ if eq site.Params.projects.post_view 1 }}
- {{ partial "li_list" . }}
- {{ else if eq site.Params.projects.post_view 3 }}
- {{ partial "li_card" . }}
- {{ else }}
- {{ partial "li_compact" . }}
- {{ end }}
- {{ end }}
- {{ end }}
-
- {{ $items := where (where site.RegularPages "Type" "publication") ".Params.projects" "intersect" (slice $project) }}
- {{ $pubs_len := len $items }}
- {{ if ge $pubs_len 1 }}
- {{ (i18n "publications") }}
- {{ range $items }}
- {{ if eq site.Params.projects.publication_view 1 }}
- {{ partial "li_list" . }}
- {{ else if eq site.Params.projects.publication_view 3 }}
- {{ partial "li_card" . }}
- {{ else if eq site.Params.projects.publication_view 4 }}
- {{ partial "li_citation" . }}
- {{ else }}
- {{ partial "li_compact" . }}
- {{ end }}
- {{ end }}
- {{ end }}
-
- {{ $items := where (where site.RegularPages "Type" "talk") ".Params.projects" "intersect" (slice $project) }}
- {{ $talks_len := len $items }}
- {{ if ge $talks_len 1 }}
- {{ (i18n "talks") }}
- {{ range $items }}
- {{ if eq site.Params.projects.talk_view 1 }}
- {{ partial "li_list" . }}
- {{ else if eq site.Params.projects.talk_view 3 }}
- {{ partial "li_card" . }}
- {{ else }}
- {{ partial "li_compact" . }}
- {{ end }}
- {{ end }}
- {{ end }}
-
-
-
-{{- end -}}
diff --git a/themes/academic/layouts/publication/single.html b/themes/academic/layouts/publication/single.html
deleted file mode 100644
index 3e2d43a..0000000
--- a/themes/academic/layouts/publication/single.html
+++ /dev/null
@@ -1,57 +0,0 @@
-{{- define "main" -}}
-
-
-
- {{ partial "page_header.html" . }}
-
-
-
- {{ if .Params.abstract }}
-
{{ i18n "abstract" }}
-
{{ .Params.abstract | markdownify }}
- {{ end }}
-
- {{ if and (.Params.publication_types) (ne (index .Params.publication_types 0) "0") }}
-
-
-
-
-
{{ i18n "publication_type" }}
-
-
-
-
-
-
- {{ end }}
-
- {{ if .Params.publication }}
-
-
-
-
-
{{ i18n "publication" }}
-
{{ .Params.publication | markdownify }}
-
-
-
-
-
- {{ end }}
-
-
-
-
{{ .Content }}
-
- {{ partial "page_footer" . }}
-
-
-
-{{- end -}}
diff --git a/themes/academic/layouts/section/docs.html b/themes/academic/layouts/section/docs.html
deleted file mode 100644
index 1a46a84..0000000
--- a/themes/academic/layouts/section/docs.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{{- define "main" -}}
-
-{{ partial "page_header.html" . }}
-
-
- {{ with .Content }}
-
{{ . }}
- {{ end }}
-
-
-
-{{- end -}}
diff --git a/themes/academic/layouts/section/post.html b/themes/academic/layouts/section/post.html
deleted file mode 100644
index 9c282a7..0000000
--- a/themes/academic/layouts/section/post.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{{- define "main" -}}
-
-{{ partial "page_header.html" . }}
-
-
-
- {{ with .Content }}
-
{{ . }}
- {{ end }}
-
- {{ $paginator := .Paginate .Data.Pages }}
- {{ range $paginator.Pages }}
- {{ if eq $.Params.view 1 }}
- {{ partial "li_list" . }}
- {{ else if eq $.Params.view 3 }}
- {{ partial "li_card" . }}
- {{ else }}
- {{ partial "li_compact" . }}
- {{ end }}
- {{ end }}
-
- {{ partial "pagination" . }}
-
-
-
-{{- end -}}
diff --git a/themes/academic/layouts/section/publication.html b/themes/academic/layouts/section/publication.html
deleted file mode 100644
index f42e179..0000000
--- a/themes/academic/layouts/section/publication.html
+++ /dev/null
@@ -1,78 +0,0 @@
-{{- define "main" -}}
-
-{{ partial "page_header.html" . }}
-
-
-
-
-
- {{ with .Content }}
-
{{ . }}
- {{ end }}
-
- {{/* Array of distinct years. */}}
- {{ range .Pages.ByDate.Reverse }}
- {{ $year := print (.Date.Format "2006") }}
- {{ $.Scratch.SetInMap "years" $year $year }}
- {{ end }}
-
-
-
-
- {{ range .Pages.ByDate.Reverse }}
-
- {{ if .Params.publication_types }}
- {{ $.Scratch.Set "pubtype" (index .Params.publication_types 0) }}
- {{ else }}
- {{ $.Scratch.Set "pubtype" 0 }}
- {{ end }}
-
-
- {{ if eq $.Params.view 1 }}
- {{ partial "li_list" . }}
- {{ else if eq $.Params.view 3 }}
- {{ partial "li_card" . }}
- {{ else if eq $.Params.view 4 }}
- {{ partial "li_citation" . }}
- {{ else }}
- {{ partial "li_compact" . }}
- {{ end }}
-
-
- {{ end }}
-
-
-
-
-
-
-{{- end -}}
diff --git a/themes/academic/layouts/section/talk.html b/themes/academic/layouts/section/talk.html
deleted file mode 100644
index dfb581a..0000000
--- a/themes/academic/layouts/section/talk.html
+++ /dev/null
@@ -1,39 +0,0 @@
-{{- define "main" -}}
-
-{{ partial "page_header.html" . }}
-
-
-
-
-
- {{ with .Content }}
-
{{ . }}
- {{ end }}
-
- {{ range .Data.Pages.GroupByDate "2006" }}
-
-
-
{{ .Key }}
-
-
-
- {{ range .Pages }}
- {{ if eq $.Params.view 1 }}
- {{ partial "li_list" . }}
- {{ else if eq $.Params.view 3 }}
- {{ partial "li_card" . }}
- {{ else }}
- {{ partial "li_compact" . }}
- {{ end }}
- {{ end }}
-
-
-
- {{ end }}
-
-
-
-
-
-
-{{- end -}}
diff --git a/themes/academic/layouts/slides/baseof.html b/themes/academic/layouts/slides/baseof.html
deleted file mode 100644
index 98c8fa4..0000000
--- a/themes/academic/layouts/slides/baseof.html
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
- {{ $css := site.Data.assets.css }}
- {{ $cdn_url_reveal := "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.8.0" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ .Title }} | {{ site.Title }}
-
-
- {{- $theme := $.Param "slides.theme" | default "black" -}}
-
-
- {{- $highlight_style := $.Param "slides.highlight_style" | default "dracula" -}}
- {{ printf "
" (printf $css.highlight.url $css.highlight.version $highlight_style) | safeHTML }}
-
- {{ $css := resources.Get "css/reveal.css" }}
- {{ $css_custom := resources.Get "css/reveal_custom.css" }}
- {{ $style := slice $css $css_custom | resources.Concat "css/reveal_custom.css" | resources.Minify }}
-
-
-
-
-
-
-
-
- {{ block "main" . }}{{ end }}
-
-
-
-
-
-
-
diff --git a/themes/academic/layouts/slides/list.html b/themes/academic/layouts/slides/list.html
deleted file mode 100644
index e69de29..0000000
diff --git a/themes/academic/layouts/slides/single.html b/themes/academic/layouts/slides/single.html
deleted file mode 100644
index 6bd27b1..0000000
--- a/themes/academic/layouts/slides/single.html
+++ /dev/null
@@ -1,3 +0,0 @@
-{{ define "main" }}
-{{ partial "slides" (union (slice .Page) .Pages) }}
-{{ end }}
diff --git a/themes/academic/layouts/talk/single.html b/themes/academic/layouts/talk/single.html
deleted file mode 100644
index e87505a..0000000
--- a/themes/academic/layouts/talk/single.html
+++ /dev/null
@@ -1,76 +0,0 @@
-{{- define "main" -}}
-
-
-
- {{ partial "page_header.html" . }}
-
-
-
- {{ if .Params.abstract }}
-
{{ i18n "abstract" }}
-
{{ .Params.abstract | markdownify | emojify }}
- {{ else }}
-
- {{ end }}
-
-
-
-
-
-
{{ i18n "date" }}
-
- {{ partial "functions/get_event_dates" . }}
-
-
-
-
-
-
-
- {{ if .Params.event }}
-
-
- {{ end }}
-
- {{ if .Params.location }}
-
-
-
-
-
{{ i18n "location" }}
-
{{ .Params.location | markdownify }}
- {{ if .Params.address }}
-
-
{{partial "functions/get_address" (dict "root" . "address" .Params.address) }}
- {{end}}
-
-
-
-
-
- {{ end }}
-
-
-
-
- {{ .Content }}
-
-
- {{ partial "page_footer" . }}
-
-
-
-{{- end -}}
diff --git a/themes/academic/layouts/widget_page/single.html b/themes/academic/layouts/widget_page/single.html
deleted file mode 100644
index 842aa89..0000000
--- a/themes/academic/layouts/widget_page/single.html
+++ /dev/null
@@ -1,3 +0,0 @@
-{{- define "main" -}}
-{{ partial "widget_page.html" . }}
-{{- end -}}