From 3024225072335a896898999547808954e6c75054 Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Sun, 31 Oct 2021 02:21:57 +0000 Subject: [PATCH] Improve news list page --- assets/images/default-news-cover.png | Bin 0 -> 3506 bytes themes/academic/assets/scss/ansol.scss | 8 + themes/academic/layouts/authors/list.html | 39 ----- themes/academic/layouts/authors/terms.html | 23 --- themes/academic/layouts/docs/list.html | 3 - themes/academic/layouts/docs/single.html | 3 - themes/academic/layouts/noticias/list.html | 36 +++++ .../layouts/partials/widget_page.html | 91 ------------ .../layouts/partials/widgets/about.html | 109 -------------- .../partials/widgets/accomplishments.html | 48 ------ .../layouts/partials/widgets/blank.html | 20 --- .../layouts/partials/widgets/contact.html | 138 ------------------ .../layouts/partials/widgets/experience.html | 59 -------- .../layouts/partials/widgets/featured.html | 82 ----------- .../layouts/partials/widgets/featurette.html | 41 ------ .../layouts/partials/widgets/hero.html | 67 --------- .../layouts/partials/widgets/pages.html | 103 ------------- .../layouts/partials/widgets/people.html | 61 -------- .../layouts/partials/widgets/portfolio.html | 93 ------------ .../layouts/partials/widgets/slider.html | 62 -------- .../layouts/partials/widgets/tag_cloud.html | 49 ------- themes/academic/layouts/project/single.html | 68 --------- .../academic/layouts/publication/single.html | 57 -------- themes/academic/layouts/section/docs.html | 18 --- themes/academic/layouts/section/post.html | 26 ---- .../academic/layouts/section/publication.html | 78 ---------- themes/academic/layouts/section/talk.html | 39 ----- themes/academic/layouts/slides/baseof.html | 71 --------- themes/academic/layouts/slides/list.html | 0 themes/academic/layouts/slides/single.html | 3 - themes/academic/layouts/talk/single.html | 76 ---------- .../academic/layouts/widget_page/single.html | 3 - 32 files changed, 44 insertions(+), 1530 deletions(-) create mode 100644 assets/images/default-news-cover.png delete mode 100644 themes/academic/layouts/authors/list.html delete mode 100644 themes/academic/layouts/authors/terms.html delete mode 100644 themes/academic/layouts/docs/list.html delete mode 100644 themes/academic/layouts/docs/single.html create mode 100644 themes/academic/layouts/noticias/list.html delete mode 100644 themes/academic/layouts/partials/widget_page.html delete mode 100644 themes/academic/layouts/partials/widgets/about.html delete mode 100644 themes/academic/layouts/partials/widgets/accomplishments.html delete mode 100644 themes/academic/layouts/partials/widgets/blank.html delete mode 100644 themes/academic/layouts/partials/widgets/contact.html delete mode 100644 themes/academic/layouts/partials/widgets/experience.html delete mode 100644 themes/academic/layouts/partials/widgets/featured.html delete mode 100644 themes/academic/layouts/partials/widgets/featurette.html delete mode 100644 themes/academic/layouts/partials/widgets/hero.html delete mode 100644 themes/academic/layouts/partials/widgets/pages.html delete mode 100644 themes/academic/layouts/partials/widgets/people.html delete mode 100644 themes/academic/layouts/partials/widgets/portfolio.html delete mode 100644 themes/academic/layouts/partials/widgets/slider.html delete mode 100644 themes/academic/layouts/partials/widgets/tag_cloud.html delete mode 100644 themes/academic/layouts/project/single.html delete mode 100644 themes/academic/layouts/publication/single.html delete mode 100644 themes/academic/layouts/section/docs.html delete mode 100644 themes/academic/layouts/section/post.html delete mode 100644 themes/academic/layouts/section/publication.html delete mode 100644 themes/academic/layouts/section/talk.html delete mode 100644 themes/academic/layouts/slides/baseof.html delete mode 100644 themes/academic/layouts/slides/list.html delete mode 100644 themes/academic/layouts/slides/single.html delete mode 100644 themes/academic/layouts/talk/single.html delete mode 100644 themes/academic/layouts/widget_page/single.html diff --git a/assets/images/default-news-cover.png b/assets/images/default-news-cover.png new file mode 100644 index 0000000000000000000000000000000000000000..fb345d61e0c444ad3b9528196f0d2a1a1015b485 GIT binary patch literal 3506 zcmeHKZ#>g$8^1RTiG!4i#G%p&`CkcbPx((&N*;zqA=0Le31f9SQb;8fno9nZe>oVV zZF(3fQ`Qru&`FsQn#PZ@?fL0>p7)(zoLA??@6B~zpYQ$qT-W#ey{`M>eoto=B`qZY zfQqY&!$AO$Q~(edMR_=4%;hc}EGM}9lL&zJ@ud$jl$f;?Tt{;BC3)jRN#vuaj{`E9 zyzRuPNMguQ!trhR(_#6Oc3LnZ+STD7hvEt*29hfV$N?Qf$Od{hgzg`tH%#DrM`>3CN&=?@EMNyrk|Uf*W}U;bz?0z&$8A! z(-OD-BpdFIi-Cwe1^GryCD82_#m^yIyJz0+AEPj9rs+`onC+>wsymN)#H}ZSpQi~w z@TC?%Q6!zICHVWE(ZjoCg=Y&;dSP{QCjP;#rIVK@j~5k}lFke96kD3?qa=Fz{T-h7 z&J{?tCr|h3Ju0d3KXo}nb0N6MV zT-GOxBadNfjojdyyRzTVyk z#;UvJ-tzq>5Vuk>>hP4{@(gs+)V?UHDc8ir9s&A20nex2$)NodgCSA|@0GDg`R}%w z_AE?z`H0BlvurV>IIPQmo&`BD+0`&k*(!vKKX;#3$KVC&BT@R9XALZGfNaSmEMNP7 zJ9BT*!Oe-e=Hjnt4as<~1LYyQM0LZZqUP9+KdNQkUFmGU_zmF2Q55dCnF`+x+Odho znoQwLDKko7D#c>OJ*pgN_rjX!_fxEcI34ifJ__eJ6VSA4J9^Q%he_&;WO;?eZ3%>g z&3Ew=n`-!vFPMJV1#V}}YquypfJhzfXcm+%gk+WC7P_x=GJo5btpImNjk?;3J~7af z{HC9{izo=ty%djszRV8=j5i`5p3A{g_%?-t!0lRTgNrFE9?ApXa1@U7?}UWlFHdJo zZt1X2dFS^5u;OYyW@||T$r>^#n zEa=F+S6)up>vw2MaPeDnl4%Y`vvcz0JFDHbPb8V#_C?dCVhi$ms8BK^b#0KBuLJIyoL9+Wg=oR7ZBYVAcmj`CR^^P@qSgBBrUjz`F_X!b zPZ*KiU2UCm3hvJVHT8>yS+V0Zu_Bd3a=LoGuy7-YIb}6e!Y&Q{iSevNVXTg zji7~ijmWdK6zb~Am^`_R+`qFN;gR zXn3$sTS+BFh3SG;XE!edRo5NFUSVA9oSPi54VLkBi6JhI`zFw8L-X8BP8)5FJDk(E z5!iYVLpRUb%@Goz$pm|Udhq4X?^erZwcm1dK{o#YL1!%6u<%k5TYPef6(OIZrZV6W z&&%TF*;s5y&=uFl%?qo=Tw|bfhfaLfyx2BI$hi84Z}fPtFKeb`)W5k&RAA+~!ETiT z>r31t5y!OSvrwa$|KglBq>@7e`_BU`4i>J3rbMJ-KJDGdX-SFcv7}ds?kx*}2ad<1 zhdbH}-{?3?KjoXV#@~c@bF*ojGip?f50Y@U9GY>0Mz4)(ji&jL$pRal6R@9zW)`Mq zDX22qnp+exdPd1|jV;`Lo@Z!gfS^Q1$o-`&s>g7oMg~tCfX38_jKgp9ik;yFTG;q! j%Z`p2IdBQmh@cB_`(qi1IDdkeTadOB3?!JYdLqF*>d literal 0 HcmV?d00001 diff --git a/themes/academic/assets/scss/ansol.scss b/themes/academic/assets/scss/ansol.scss index 366109d..975beb0 100644 --- a/themes/academic/assets/scss/ansol.scss +++ b/themes/academic/assets/scss/ansol.scss @@ -198,10 +198,17 @@ nav.main .nav-search:hover { p { margin: 0px; } +.news-list-title { + margin: 2rem auto; + font-weight: 300; + font-size: 2.25rem; +} + .news-list li { padding: 0px; position: relative; display: flex; + align-items: flex-start; } .news-list li .text { @@ -236,6 +243,7 @@ p { margin: 0px; } width: 320px; height: 160px; object-fit: cover; + display: block; } .campaign-cover { diff --git a/themes/academic/layouts/authors/list.html b/themes/academic/layouts/authors/list.html deleted file mode 100644 index 504e3f5..0000000 --- a/themes/academic/layouts/authors/list.html +++ /dev/null @@ -1,39 +0,0 @@ -{{- define "main" -}} - -{{/* Author profile page. */}} - -{{/* If an account has not been created for this user, just display their name as the title. */}} -{{ if not .File }} -
-

{{ .Title }}

-
-{{ end }} - -
-
- {{/* Show the About widget if an account exists for this user. */}} - {{ if .File }} - {{ $widget := "widgets/about.html" }} - {{ $username := (path.Base (path.Split .Path).Dir) }}{{/* Alternatively, use `index .Params.authors 0` */}} - {{ $params := dict "root" $ "page" . "author" $username }} - {{ partial $widget $params }} - {{end}} - - {{ $query := where .Pages ".IsNode" false }} - {{ $count := len $query }} - {{ if $count }} -
-

{{ i18n "user_profile_latest" | default "Latest" }}

- -
- {{ end }} -
-
- -{{- end -}} diff --git a/themes/academic/layouts/authors/terms.html b/themes/academic/layouts/authors/terms.html deleted file mode 100644 index bd6350e..0000000 --- a/themes/academic/layouts/authors/terms.html +++ /dev/null @@ -1,23 +0,0 @@ -{{- define "main" -}} - -{{/* List of all authors. */}} - -{{ partial "page_header.html" . }} - -
- {{ with .Content }} -
{{ . }}
- {{ end }} - -
    - {{ $paginator := .Paginate .Data.Pages }} - {{ range $k, $v := $paginator.Pages }} - {{ $name := $v.Title }} -
  • {{$name}}
  • - {{ end }} -
- - {{ partial "pagination" . }} -
- -{{- end -}} diff --git a/themes/academic/layouts/docs/list.html b/themes/academic/layouts/docs/list.html deleted file mode 100644 index 34d123d..0000000 --- a/themes/academic/layouts/docs/list.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- define "main" -}} -{{ partial "docs_layout.html" . }} -{{- end -}} diff --git a/themes/academic/layouts/docs/single.html b/themes/academic/layouts/docs/single.html deleted file mode 100644 index 34d123d..0000000 --- a/themes/academic/layouts/docs/single.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- define "main" -}} -{{ partial "docs_layout.html" . }} -{{- end -}} diff --git a/themes/academic/layouts/noticias/list.html b/themes/academic/layouts/noticias/list.html new file mode 100644 index 0000000..752ad09 --- /dev/null +++ b/themes/academic/layouts/noticias/list.html @@ -0,0 +1,36 @@ +{{- define "main" -}} + +

Notícias

+ + + +{{- end -}} diff --git a/themes/academic/layouts/partials/widget_page.html b/themes/academic/layouts/partials/widget_page.html deleted file mode 100644 index 452896e..0000000 --- a/themes/academic/layouts/partials/widget_page.html +++ /dev/null @@ -1,91 +0,0 @@ -{{/* Notify JS that this is a widget page */}} - - -{{/* Get widget page */}} -{{ $page := "" }} -{{ $headless_bundle := "" }} -{{ if .IsHome }} - {{ $page = "/home/index.md" }} - {{ $headless_bundle = site.GetPage $page }} - {{/* Check homepage exists */}} - {{ if not $headless_bundle }} - {{ errorf "Homepage not found at %s!" $page }} - {{ errorf "Add the `/home/index.md` homepage file to each language's content folder. For example, your site should have a `content/home/` folder containing `index.md` and your homepage sections, or for multi-language sites, `content/en/home/` and `content/zh/home/` etc. Refer to the 'Build Your Homepage' and 'Language' documentation at https://sourcethemes.com/academic/docs/ and the example homepage at https://github.com/gcushen/hugo-academic/tree/master/exampleSite/content/home/index.md ." }} - {{ end }} -{{ else }} - {{ $page = .File.Path }} - {{ $headless_bundle = site.GetPage $page }} - {{/* Check widget page exists. */}} - {{ if not $headless_bundle }} - {{ errorf "Widget Page not found at %s!" $page }} - {{ errorf "View the Widget Page documentation at https://sourcethemes.com/academic/docs/managing-content/#create-a-widget-page ." }} - {{ errorf "If the Hugo version is between 0.65 and 0.68, it may be a confirmed Hugo bug that is expected to be fixed in Hugo v0.69: https://github.com/gcushen/hugo-academic/issues/1595#issuecomment-605514973 ." }} - {{ end }} -{{ end }} - -{{/* Load page sections */}} -{{ range $index, $st := where ( $headless_bundle.Resources.ByType "page" ) ".Params.active" "!=" false }} - {{/* Begin widget styling */}} - {{ $bg := $st.Params.design.background }} - {{ $style := "" }} - - {{ if $bg.color }} - {{ $style = printf "background-color: %s;" ($bg.color | default "transparent") }} - {{ end }} - - {{ if and $bg.gradient_start $bg.gradient_end }} - {{ $style = printf "%sbackground-image: linear-gradient(%s, %s);" $style $bg.gradient_start $bg.gradient_end }} - {{ end }} - - {{ if $bg.image }} - {{ $darken := "" }} - {{ if $bg.image_darken }} - {{ $darken = printf "linear-gradient(rgba(0, 0, 0, %s), rgba(0, 0, 0, %s))," (string $bg.image_darken) (string $bg.image_darken) }} - {{ end }} - {{/* See Hugo note on linking assets in styles: https://github.com/gohugoio/hugoThemes#common-permalink-issues */}} - {{ $style = printf "%sbackground-image: %s url('%s');" $style $darken (printf "img/%s" $bg.image | absURL) }} - {{ with $bg.image_size }} - {{/* Allow sizes: actual, cover, and contain. */}} - {{ $style = printf "%sbackground-size: %s;" $style (replace . "actual" "auto") }} - {{ end }} - {{ with $bg.image_position }} - {{/* Allow valid CSS positions including left, center, and right. */}} - {{ $style = printf "%sbackground-position: %s;" $style . }} - {{ end }} - {{ end }} - - {{ with $st.Params.design.spacing.padding }} - {{ $style_pad := printf "padding: %s;" (delimit . " ") }} - {{ $style = print $style $style_pad }} - {{ end }} - - {{ with $st.Params.advanced.css_style }} - {{ $style = print $style . }} - {{ end }} - - {{/* Fix Hugo's ContentBaseName returning wrong file base name when page section is within a bundle. */}} - {{ $hash_id := replace $st.File.ContentBaseName "index" (path.Base (path.Split .Path).Dir) }} - - {{ $widget := or $st.Params.widget "blank" }} - {{ if eq $widget "custom" }}{{ $widget = "blank" }}{{ end }}{{/* Support legacy Custom widget */}} - {{ if eq $widget "projects" }}{{ $widget = "portfolio" }}{{ end }}{{/* Support legacy Projects widget */}} - - {{ $widget_path := printf "widgets/%s.html" $widget }} - {{ $widget_args := dict "root" $ "page" $st "hash_id" $hash_id }} - {{ $css_classes := $st.Params.advanced.css_class | default "" }} - {{ $extra_attributes := "" }} - {{ $use_container := true }} - - {{/* Special case: Slider widget. */}} - {{ if in (slice "slider") $widget }} - {{ $css_classes = print $css_classes " carousel slide" }} - {{ $extra_attributes = printf "data-ride=\"carousel\" data-interval=\"%s\"" (string $st.Params.interval | default "5000") }} - {{ $use_container = false }} - {{ end }} - -
- {{if $use_container}}
{{end}} - {{ partial $widget_path $widget_args }} - {{if $use_container}}
{{end}} -
-{{ end }} diff --git a/themes/academic/layouts/partials/widgets/about.html b/themes/academic/layouts/partials/widgets/about.html deleted file mode 100644 index 94d9943..0000000 --- a/themes/academic/layouts/partials/widgets/about.html +++ /dev/null @@ -1,109 +0,0 @@ -{{ $ := .root }} -{{ $page := .page }} - -{{ $author := "" }} -{{ if .author }} - {{ $author = .author }} -{{ else }} - {{ $author = $page.Params.author }} -{{end}} - -{{ $person_page_path := (printf "/authors/%s" $author) }} -{{ $person_page := site.GetPage $person_page_path }} -{{ if not $person_page }} - {{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://sourcethemes.com/academic/docs/page-builder/#about " $person_page_path }} -{{end}} -{{ $person := $person_page.Params }} -{{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }} -{{ $avatar_shape := site.Params.avatar.shape | default "circle" }} - - -
-
-
- - {{ if site.Params.avatar.gravatar }} - {{$person_page.Title}} - {{ else if $avatar }} - {{ $avatar_image := $avatar.Fill "270x270 Center" }} - {{$person_page.Title}} - {{ end }} - -
-

{{ $person_page.Title }}

- {{ with $person.role }}

{{ . | markdownify | emojify }}

{{ end }} - - {{ range $person.organizations }} -

- {{ with .url }}{{ end }} - {{ .name }} - {{ if .url }}{{ end }} -

- {{ end }} -
- - - -
-
-
- - {{/* Only display widget title in explicit instances of about widget, not in author pages. */}} - {{ if and $page.Params.widget $page.Title }}

{{ $page.Title | markdownify | emojify }}

{{ end }} - - {{ $person_page.Content }} - -
- - {{ with $person.interests }} -
-

{{ i18n "interests" | markdownify }}

-
    - {{ range . }} -
  • {{ . | markdownify | emojify }}
  • - {{ end }} -
-
- {{ end }} - - {{ with $person.education }} -
-

{{ i18n "education" | markdownify }}

-
    - {{ range .courses }} -
  • - -
    -

    {{ .course }}{{ with .year }}, {{ . }}{{ end }}

    -

    {{ .institution }}

    -
    -
  • - {{ end }} -
-
- {{ end }} - -
-
-
diff --git a/themes/academic/layouts/partials/widgets/accomplishments.html b/themes/academic/layouts/partials/widgets/accomplishments.html deleted file mode 100644 index c9a8cf2..0000000 --- a/themes/academic/layouts/partials/widgets/accomplishments.html +++ /dev/null @@ -1,48 +0,0 @@ -{{ $ := .root }} -{{ $page := .page }} - - -
-
-

{{ with $page.Title }}{{ . | markdownify }}{{ end }}

- {{ with $page.Params.subtitle }}

{{ . | markdownify }}

{{ end }} -
-
- {{ with $page.Content }}{{ . }}{{ end }} - - {{ if $page.Params.item }} - {{ range $idx, $key := sort $page.Params.item ".date_start" "desc" }} -
-
- {{- with .url -}}{{- end -}} -

{{.title | markdownify | emojify}}

- {{- with .url -}}
{{- end -}} - - - - {{with .description}} -
{{. | markdownify | emojify}}
- {{end}} - - {{ with .certificate_url }} - - {{ i18n "see_certificate" | default "See certificate" }} - - {{ end }} -
-
- {{end}} - {{end}} -
-
diff --git a/themes/academic/layouts/partials/widgets/blank.html b/themes/academic/layouts/partials/widgets/blank.html deleted file mode 100644 index 9f75bef..0000000 --- a/themes/academic/layouts/partials/widgets/blank.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ $st := .page }} -{{ $columns := $st.Params.design.columns | default "2" }} - -
- {{ if ne $columns "1" }} -
- {{ with $st.Title }}

{{ . | markdownify | emojify }}

{{ end }} - {{ with $st.Params.subtitle }}

{{ . | markdownify | emojify }}

{{ end }} -
-
- {{ $st.Content }} -
- {{ else }} -
- {{ with $st.Title }}

{{ . | markdownify | emojify }}

{{ end }} - {{ with $st.Params.subtitle }}

{{ . | markdownify | emojify }}

{{ end }} - {{ $st.Content }} -
- {{ end }} -
diff --git a/themes/academic/layouts/partials/widgets/contact.html b/themes/academic/layouts/partials/widgets/contact.html deleted file mode 100644 index ddc4609..0000000 --- a/themes/academic/layouts/partials/widgets/contact.html +++ /dev/null @@ -1,138 +0,0 @@ -{{ $ := .root }} -{{ $page := .page }} -{{ $autolink := default true $page.Params.autolink }} -{{ $data := site.Params }} - - -
-
-

{{ with $page.Title }}{{ . | markdownify }}{{ end }}

- {{ with $page.Params.subtitle }}

{{ . | markdownify }}

{{ end }} -
-
- {{ with $page.Content }}{{ . }}{{ end }} - - {{ if $page.Params.email_form }} - - {{ $post_action := "" }} - {{ if eq $page.Params.email_form 1 }} - {{ $post_action = "netlify" }} - {{ else }} - {{ if not $data.email }} - {{ errorf "Please set an email address for the contact form using the `email` parameter in `params.toml`. Otherwise, set `email_form = 0` to disable the contact form." }} - {{ end }} - {{ $post_action = printf "action=\"https://formspree.io/%s\"" $data.email }} - {{end}} - -
-
-
- - -
-
- - -
-
- - -
- -
-
- {{end}} - -
    - - {{ if and $data.email (not $page.Params.email_form) }} -
  • - - - {{- if $autolink }}{{ $data.email }}{{ else }}{{ $data.email }}{{ end -}} - -
  • - {{ end }} - - {{ with $data.phone }} -
  • - - - {{- if $autolink }}{{ . }}{{ else }}{{ . }}{{ end -}} - -
  • - {{ end }} - - {{ $addr_formatted := "" }}{{/* Scoping for maps. */}} - {{ if $data.address.street | or $data.address.city | or $data.address.region | or $data.address.postcode | or $data.address.country }} - {{ $addr_formatted = partial "functions/get_address" (dict "root" . "address" $data.address) }} -
  • - - {{$addr_formatted}} -
  • - {{ end }} - - {{ with $data.directions }} -
  • - - {{ . | markdownify | emojify }} -
  • - {{ end }} - - {{ with $data.office_hours }} -
  • - - - {{- if not (reflect.IsSlice .)}}{{/* Support legacy string format. */}} - {{- . | markdownify | emojify -}} - {{else}} - {{- delimit . "
    " | markdownify | emojify -}} - {{end -}} -
    -
  • - {{ end }} - - {{ with $data.appointment_url }} -
  • - - {{ i18n "book_appointment" | default "Book an appointment" }} -
  • - {{ end }} - - {{/* Contact links. */}} - {{ range $data.contact_links }} - {{ $pack := or .icon_pack "fas" }} - {{ $pack_prefix := $pack }} - {{ if in (slice "fab" "fas" "far" "fal") $pack }} - {{ $pack_prefix = "fa" }} - {{ end }} - {{ $link := .link }} - {{ $scheme := (urls.Parse $link).Scheme }} - {{ $target := "" }} - {{ if not $scheme }} - {{ $link = .link | relLangURL }} - {{ else if in (slice "http" "https") $scheme }} - {{ $target = "target=\"_blank\" rel=\"noopener\"" }} - {{ end }} -
  • - - {{.name|markdownify|emojify|safeHTML}} -
  • - {{ end }} - -
- - {{ if and site.Params.map.engine $data.coordinates.latitude }} -
- - - - - - -
-
- {{ end }} - -
-
diff --git a/themes/academic/layouts/partials/widgets/experience.html b/themes/academic/layouts/partials/widgets/experience.html deleted file mode 100644 index 5d39637..0000000 --- a/themes/academic/layouts/partials/widgets/experience.html +++ /dev/null @@ -1,59 +0,0 @@ -{{ $ := .root }} -{{ $page := .page }} - - -
-
-

{{ with $page.Title }}{{ . | markdownify }}{{ end }}

- {{ with $page.Params.subtitle }}

{{ . | markdownify }}

{{ end }} -
-
- {{ with $page.Content }}{{ . }}{{ end }} - - {{ if $page.Params.experience }} - {{ $exp_len := len $page.Params.experience }} - {{ range $idx, $key := sort $page.Params.experience ".date_start" "asc" }} -
- -
-
-
 
-
 
-
-
-   -
-
-
 
-
 
-
-
- -
-
-
-

{{.title | markdownify | emojify}}

-

- {{- with .company_url}}{{end}}{{.company | markdownify | emojify}}{{with .company_url}}{{end -}} -

-
- {{ (time .date_start).Format ($page.Params.date_format | default "January 2006") }} – - {{ if .date_end}} - {{ (time .date_end).Format ($page.Params.date_format | default "January 2006") }} - {{else}} - {{ i18n "present" | default "Present" }} - {{end}} - {{with .location}} - - {{.}} - {{end}} -
- {{with .description}}
{{. | markdownify | emojify}}
{{end}} -
-
-
-
- {{end}} - {{end}} -
-
diff --git a/themes/academic/layouts/partials/widgets/featured.html b/themes/academic/layouts/partials/widgets/featured.html deleted file mode 100644 index 95e6592..0000000 --- a/themes/academic/layouts/partials/widgets/featured.html +++ /dev/null @@ -1,82 +0,0 @@ -{{/* Featured Content Widget */}} - -{{/* Initialise */}} -{{ $ := .root }} -{{ $st := .page }} -{{ $items_type := $st.Params.content.page_type | default "post" }} -{{ $items_count := $st.Params.content.count | default 65535 }} -{{ $items_sort := $st.Params.content.order| default "desc" }} - -{{/* Query */}} -{{ $query := where (where site.RegularPages "Type" $items_type) "Params.featured" true }} -{{ $archive_page := site.GetPage "Section" $items_type }} - -{{/* Filters */}} -{{ if $st.Params.content.filters.tag }} - {{ $archive_page := site.GetPage (printf "tags/%s" (urlize $st.Params.content.filters.tag)) }} - {{ $query = $query | intersect $archive_page.Pages }} -{{ end }} -{{ if $st.Params.content.filters.category }} - {{ $archive_page := site.GetPage (printf "categories/%s" (urlize $st.Params.content.filters.category)) }} - {{ $query = $query | intersect $archive_page.Pages }} -{{ end }} -{{ if $st.Params.content.filters.publication_type }} - {{ $archive_page := site.GetPage (printf "publication_types/%s" $st.Params.content.filters.publication_type) }} - {{ $query = $query | intersect $archive_page.Pages }} -{{ end }} -{{ if $st.Params.content.filters.author }} - {{ $archive_page = site.GetPage (printf "authors/%s" (urlize $st.Params.content.filters.author)) }} - {{ $query = $query | intersect $archive_page.Pages }} -{{ end }} - -{{/* Sort */}} -{{ $sort_by := "Date" }} -{{ $query = sort $query $sort_by $items_sort }} - -{{/* Limit */}} -{{ $query = first $items_count $query }} - -{{/* Localisation */}} -{{ $i18n := "" }} -{{ if eq $items_type "post" }} - {{ $i18n = "more_posts" }} -{{ else if eq $items_type "talk" }} - {{ $i18n = "more_talks" }} -{{ else if eq $items_type "publication" }} - {{ $i18n = "more_publications" }} -{{ else }} - {{ $i18n = "more_pages" }} -{{ end }} - -
-
-

{{ with $st.Title }}{{ . | markdownify | emojify }}{{ end }}

- {{ with $st.Params.subtitle }}

{{ . | markdownify | emojify }}

{{ end }} -
-
- - {{ with $st.Content }}{{ . }}{{ end }} - - {{ range $post := $query }} - {{ if eq $st.Params.design.view 1 }} - {{ partial "li_list" . }} - {{ else if eq $st.Params.design.view 3 }} - {{ partial "li_card" . }} - {{ else if eq $st.Params.design.view 4 | and (eq $items_type "publication") }} - {{ partial "li_citation" . }} - {{ else }} - {{ partial "li_compact" . }} - {{ end }} - {{end}} - - {{ if $st.Params.content.link_to_archive }} - - {{ end }} - -
-
diff --git a/themes/academic/layouts/partials/widgets/featurette.html b/themes/academic/layouts/partials/widgets/featurette.html deleted file mode 100644 index 56df3c0..0000000 --- a/themes/academic/layouts/partials/widgets/featurette.html +++ /dev/null @@ -1,41 +0,0 @@ -{{ $ := .root }} -{{ $page := .page }} - -
- {{ with $page.Title }} -
-

{{ . | markdownify | emojify }}

- {{ if $page.Params.subtitle }}

{{ $page.Params.subtitle | markdownify | emojify }}

{{ end }} -
- {{ end }} - - {{ with $page.Content }} -
- {{ . }} -
- {{ end }} - - {{ range $page.Params.feature }} - {{ $pack := or .icon_pack "fas" }} - {{ $pack_prefix := $pack }} - {{ if in (slice "fab" "fas" "far" "fal") $pack }} - {{ $pack_prefix = "fa" }} - {{ end }} -
- {{ with .icon }} -
- {{- if eq $pack "emoji" -}} - {{- . | emojify -}} - {{- else if eq $pack "custom" -}} - {{- $svg_icon := resources.Get (printf "images/icon-pack/%s.svg" .) -}} - {{- if $svg_icon -}}{{.}}{{- end -}} - {{- else -}} - - {{- end -}} -
- {{ end }} -

{{ .name | markdownify | emojify }}

- {{ with .description }}

{{ . | markdownify | emojify }}

{{ end }} -
- {{ end }} -
diff --git a/themes/academic/layouts/partials/widgets/hero.html b/themes/academic/layouts/partials/widgets/hero.html deleted file mode 100644 index 40fc944..0000000 --- a/themes/academic/layouts/partials/widgets/hero.html +++ /dev/null @@ -1,67 +0,0 @@ -{{ $ := .root }} -{{ $page := .page }} -{{ $bg := $page.Params.design.background }} - -{{ if $page.Params.hero_media }} -
-
-{{ end }} - - {{ with $page.Content }} -
{{ . }}
- {{ end }} - - {{/* Call-to-action link */}} - {{ if $page.Params.cta.url }} - {{ $pack := or $page.Params.cta.icon_pack "fas" }} - {{ $pack_prefix := $pack }} - {{ if in (slice "fab" "fas" "far" "fal") $pack }} - {{ $pack_prefix = "fa" }} - {{ end }} - {{ $link := $page.Params.cta.url }} - {{ $scheme := (urls.Parse $link).Scheme }} - {{ $target := "" }} - {{ if not $scheme }} - {{ $link = $link | relLangURL }} - {{ else if in (slice "http" "https") $scheme }} - {{ $target = "target=\"_blank\" rel=\"noopener\"" }} - {{ end }} -

- {{ if $page.Params.cta.icon }}{{end}}{{ $page.Params.cta.label | markdownify | emojify | safeHTML }} - - {{/* Alternative Call-to-action link */}} - {{ if $page.Params.cta_alt.url }} - {{ $link := $page.Params.cta_alt.url }} - {{ $scheme := (urls.Parse $link).Scheme }} - {{ $target := "" }} - {{ if not $scheme }} - {{ $link = $link | relLangURL }} - {{ else if in (slice "http" "https") $scheme }} - {{ $target = "target=\"_blank\" rel=\"noopener\"" }} - {{ end }} - {{ $page.Params.cta_alt.label | markdownify | emojify | safeHTML }} - {{ end }} -

- {{ end }} - - {{/* Call-to-action note */}} - {{ with $page.Params.cta_note }} -

- {{ .label | markdownify | emojify | safeHTML }} -

- {{ end }} - - {{/* Hero image */}} - {{ if $page.Params.hero_media }} -
-
-

- A “ANSOL - Associação Nacional para o Software Livre” é uma associação - portuguesa sem fins lucrativos que tem como fim a divulgação, promoção, - desenvolvimento, investigação e estudo da Informática Livre e das suas - repercussões sociais, políticas, filosóficas, culturais, técnicas e - científicas. -

-
-
-{{ end }} diff --git a/themes/academic/layouts/partials/widgets/pages.html b/themes/academic/layouts/partials/widgets/pages.html deleted file mode 100644 index 3973229..0000000 --- a/themes/academic/layouts/partials/widgets/pages.html +++ /dev/null @@ -1,103 +0,0 @@ -{{/* Pages Widget */}} - -{{/* Initialise */}} -{{ $ := .root }} -{{ $st := .page }} -{{ $items_type := $st.Params.content.page_type | default "post" }} -{{ $items_offset := $st.Params.content.offset | default 0 }} -{{ $items_count := $st.Params.content.count }} -{{ if eq $items_count 0 }} - {{ $items_count = 65535 }} -{{ else }} - {{ $items_count = $items_count | default 5 }} -{{ end }} -{{ $items_sort := $st.Params.content.order | default "desc" }} - -{{/* Query */}} -{{ $query := where site.RegularPages "Type" $items_type }} -{{ $archive_page := site.GetPage "Section" $items_type }} - -{{/* Filters */}} -{{ if $st.Params.content.filters.tag }} - {{ $archive_page = site.GetPage (printf "tags/%s" (urlize $st.Params.content.filters.tag)) }} - {{ $query = $query | intersect $archive_page.Pages }} -{{ end }} -{{ if $st.Params.content.filters.category }} - {{ $archive_page = site.GetPage (printf "categories/%s" (urlize $st.Params.content.filters.category)) }} - {{ $query = $query | intersect $archive_page.Pages }} -{{ end }} -{{ if $st.Params.content.filters.publication_type }} - {{ $archive_page = site.GetPage (printf "publication_types/%s" $st.Params.content.filters.publication_type) }} - {{ $query = $query | intersect $archive_page.Pages }} -{{ end }} -{{ if $st.Params.content.filters.author }} - {{ $archive_page = site.GetPage (printf "authors/%s" (urlize $st.Params.content.filters.author)) }} - {{ $query = $query | intersect $archive_page.Pages }} -{{ end }} -{{ if $st.Params.content.filters.exclude_featured }} - {{ $query = where $query "Params.featured" "!=" true }} -{{ end }} -{{ if $st.Params.content.filters.exclude_past }} - {{ $query = where $query "Date" ">=" now }} -{{ end }} -{{ if $st.Params.content.filters.exclude_future }} - {{ $query = where $query "Date" "<" now }} -{{ end }} - -{{ $count := len $query }} - -{{/* Sort */}} -{{ $sort_by := "Date" }} -{{ $query = sort $query $sort_by $items_sort }} - -{{/* Offset and Limit */}} -{{ if gt $items_offset 0 }} - {{ $query = first $items_count (after $items_offset $query) }} -{{ else }} - {{ $query = first $items_count $query }} -{{ end }} - -{{/* Localisation */}} -{{ $i18n := "" }} -{{ if eq $items_type "post" }} - {{ $i18n = "more_posts" }} -{{ else if eq $items_type "talk" }} - {{ $i18n = "more_talks" }} -{{ else if eq $items_type "publication" }} - {{ $i18n = "more_publications" }} -{{ else }} - {{ $i18n = "more_pages" }} -{{ end }} - -
-
-

{{ with $st.Title }}{{ . | markdownify | emojify }}{{ end }}

- {{ with $st.Params.subtitle }}

{{ . | markdownify | emojify }}

{{ end }} -
-
- - {{ with $st.Content }}{{ . }}{{ end }} - - {{ range $post := $query }} - {{ if eq $st.Params.design.view 1 }} - {{ partial "li_list" . }} - {{ else if eq $st.Params.design.view 3 }} - {{ partial "li_card" . }} - {{ else if eq $st.Params.design.view 4 | and (eq $items_type "publication") }} - {{ partial "li_citation" . }} - {{ else }} - {{ partial "li_compact" . }} - {{ end }} - {{end}} - - {{ if gt $count $items_count }} - - {{ end }} - -
-
diff --git a/themes/academic/layouts/partials/widgets/people.html b/themes/academic/layouts/partials/widgets/people.html deleted file mode 100644 index 051f4bc..0000000 --- a/themes/academic/layouts/partials/widgets/people.html +++ /dev/null @@ -1,61 +0,0 @@ -{{/* People Widget */}} - -{{/* Initialise */}} -{{ $ := .root }} -{{ $page := .page }} -{{ $show_social := $page.Params.design.show_social | default false }} -{{ $show_interests := $page.Params.design.show_interests | default true }} - -
- {{ with $page.Title }} -
-

{{ . | markdownify | emojify }}

- {{ if $page.Params.subtitle }}

{{ $page.Params.subtitle | markdownify | emojify }}

{{ end }} -
- {{ end }} - - {{ with $page.Content }} -
- {{ . }} -
- {{ end }} - - {{ range $page.Params.content.user_groups }} - {{ $query := where (where site.Pages "Section" "authors") ".Params.user_groups" "intersect" (slice .) }} - - {{if $query}} -
-

{{ . | markdownify }}

-
- {{end}} - - {{ range $query }} - {{ $avatar := (.Resources.ByType "image").GetMatch "*avatar*" }} - {{/* Get link to user's profile page. */}} - {{ $link := "" }} - {{ with site.GetPage (printf "/authors/%s" (path.Base (path.Split .Path).Dir)) }} - {{ $link = .RelPermalink }} - {{ end }} -
- {{ $src := "" }} - {{ if site.Params.avatar.gravatar }} - {{ $src = printf "https://s.gravatar.com/avatar/%s?s=150" (md5 .Params.email) }} - {{ else if $avatar }} - {{ $avatar_image := $avatar.Fill "270x270 Center" }} - {{ $src = $avatar_image.RelPermalink }} - {{ end }} - {{ if $src }} - {{ $avatar_shape := site.Params.avatar.shape | default "circle" }} - {{with $link}}{{end}}Avatar{{if $link}}{{end}} - {{ end }} - -
-

{{with $link}}{{end}}{{ .Title }}{{if $link}}{{end}}

- {{ with .Params.role }}

{{ . | markdownify | emojify }}

{{ end }} - {{ if $show_social }}{{ partial "social_links" . }}{{ end }} - {{ if and $show_interests .Params.interests }}

{{ delimit .Params.interests ", " | markdownify | emojify }}

{{ end }} -
-
- {{ end }} - {{ end }} -
diff --git a/themes/academic/layouts/partials/widgets/portfolio.html b/themes/academic/layouts/partials/widgets/portfolio.html deleted file mode 100644 index a5839dd..0000000 --- a/themes/academic/layouts/partials/widgets/portfolio.html +++ /dev/null @@ -1,93 +0,0 @@ -{{/* Portfolio Widget */}} - -{{/* Initialise */}} -{{ $ := .root }} -{{ $st := .page }} -{{ $items_type := $st.Params.content.page_type | default "project" }} -{{ $columns := $st.Params.design.columns | default "2" }} - -{{ if ne $columns "1" }} -{{/* Standard dual-column layout. */}} - -
-
- - {{ with $st.Title }}

{{ . | markdownify | emojify }}

{{ end }} - {{ with $st.Params.subtitle }}

{{ . | markdownify | emojify }}

{{ end }} - -
-
- -{{ 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 }} -
-
-
-
- {{ range $idx, $item := $st.Params.content.filter_button }} - {{/* Parse filter tag from front matter in the form of either tag name or CSS class name. */}} - {{ $data_filter := printf ".js-id-%s" (replace .tag " " "-") }} - {{ if or (eq (substr .tag 0 1) "*") (eq (substr .tag 0 1) ".") }} - {{ $data_filter = .tag }} - {{ end }} - {{ .name }} - {{ end }} -
-
-
-
- {{ 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 }} - - - - - - - - - - - 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" . }} - - -
-
-{{- 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" }}
-
- {{ $pub_types := partial "functions/get_pub_types" $ }} - {{ range $index, $pubtype := .Params.publication_types }} - - {{ index $pub_types (int .) }} - - {{ end }} -
-
-
-
-
-
- {{ 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 }} -
    - {{ if gt (len .Sections) 0}} - {{ range .Sections }} -
  • {{.LinkTitle}}
    {{with .Params.summary}}

    {{. | plainify | emojify}}

    {{end}}
  • - {{end}} - {{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 }} -
-
-
-
-
{{ i18n "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 -}}