From 0596bbbc63f7a5afa58d5d427613fe81fe59a958 Mon Sep 17 00:00:00 2001 From: Silelou Bernard Chawo Date: Fri, 17 Nov 2023 16:09:02 +0100 Subject: [PATCH] Delete layouts directory --- layouts/_default/baseof.html | 80 --------- layouts/_default/home.json | 5 - layouts/_default/list.html | 30 ---- layouts/_default/single.html | 44 ----- layouts/index.html | 150 ---------------- layouts/partials/footer.html | 32 ---- layouts/partials/header.html | 25 --- layouts/partials/lang-switch.html | 15 -- layouts/partials/leaflet.html | 61 ------- layouts/partials/livetwitterfeed.html | 4 - layouts/partials/post-metadata.html | 11 -- layouts/partials/post-summary.html | 9 - layouts/partials/pub-links.html | 54 ------ layouts/partials/pub-summary.html | 7 - layouts/partials/share.html | 31 ---- layouts/partials/whatisthis.html | 43 ----- layouts/publication/single.html | 51 ------ layouts/section/publication.html | 63 ------- layouts/section/studies.html | 59 ------- layouts/shortcodes/fetchapi.html | 50 ------ layouts/shortcodes/share_data.html | 63 ------- layouts/shortcodes/video.html | 3 - layouts/studies/single.html | 241 -------------------------- 23 files changed, 1131 deletions(-) delete mode 100644 layouts/_default/baseof.html delete mode 100644 layouts/_default/home.json delete mode 100644 layouts/_default/list.html delete mode 100644 layouts/_default/single.html delete mode 100644 layouts/index.html delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/header.html delete mode 100644 layouts/partials/lang-switch.html delete mode 100644 layouts/partials/leaflet.html delete mode 100644 layouts/partials/livetwitterfeed.html delete mode 100644 layouts/partials/post-metadata.html delete mode 100644 layouts/partials/post-summary.html delete mode 100644 layouts/partials/pub-links.html delete mode 100644 layouts/partials/pub-summary.html delete mode 100644 layouts/partials/share.html delete mode 100644 layouts/partials/whatisthis.html delete mode 100644 layouts/publication/single.html delete mode 100644 layouts/section/publication.html delete mode 100644 layouts/section/studies.html delete mode 100644 layouts/shortcodes/fetchapi.html delete mode 100644 layouts/shortcodes/share_data.html delete mode 100644 layouts/shortcodes/video.html delete mode 100644 layouts/studies/single.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index ef343f6..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,80 +0,0 @@ - - -{{ partial "header.html" . }} - - {{ block "header" . }} -
- - {{ end }} -
- {{ block "fullmain" . }} -
- {{ block "main" . }} - (add a main block to your template) - {{ end }} -
- {{ end }} - {{ partial "footer.html" . }} - - diff --git a/layouts/_default/home.json b/layouts/_default/home.json deleted file mode 100644 index 4b770d4..0000000 --- a/layouts/_default/home.json +++ /dev/null @@ -1,5 +0,0 @@ -{{- $len := len (where .Site.RegularPages.ByDate "Section" "studies") }} -[{{ range $index, $elem := where .Site.RegularPages.ByDate "Section" "studies" }} -{{ (merge .Params (dict "permalink" .Permalink )) | jsonify}}{{ if lt $index (sub $len 1) }},{{ end }} -{{ end }} -] \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index 23062c9..0000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,30 +0,0 @@ -{{ define "top-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "title-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "main" }} -
-
-
-
-

{{.Title}}

-
- - {{.Content}} -
- -
-
{{ partial "livetwitterfeed.html" . }}
-
-{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 5744bf8..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,44 +0,0 @@ -{{ define "top-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "title-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "whatisthis" }} -{{ partial "whatisthis.html" . }} -{{ end }} -{{ define "main" }} -
-
-
- {{ if .Params.image }} - - {{ end }} -

{{ .Title }}

- {{ partial "post-metadata" . }} -
- {{ .Content }} -
- - - - -
- - - - -
-
-{{ end }} diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index f90befe..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,150 +0,0 @@ -{{ define "top-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "title-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} - -{{ define "main" }} -
- -
- - - -
- -
-

{{ i18n "FrontSubtitle" }}

-

{{ i18n "FrontTitle" }}

- {{ .Content }} -
- -{{ if .Site.Params.dashboard }} - -{{ end }} -
- -
-
-

{{ i18n "FrontMapHeading" }}

- {{ if .Site.Params.leaflet_enable }} - {{ partial "leaflet.html" . }} - {{ end}} -
- -
- - -
-
-

{{ i18n "FrontWhy" }}

-

{{ i18n "FrontWhyText" }}

-
-
-

 

- -
- -
-

{{ i18n "FrontContribute" }}

-

{{ i18n "FrontContributeText" }}

- {{ i18n "FrontContribute" }} -
-
-
-

{{ i18n "sponsored" }}:

-
-
- -
-
-
-
-
- - -
- -
-

{{ i18n "FrontStayupdated" }}

-
- -
-
- -
-

{{ .Site.Params.blogDescription }}

-
-
-
- -
-
- -
-

{{ .Site.Params.studiesDescription }}

-
-
-
- -
-
- -
-

{{ .Site.Params.publicationDescription }}

-
-
-
-
- -
-
-

{{ i18n "FrontPartner" }}

- {{ range where .Pages "Section" "studies" }} - {{ range .Pages }} - {{ if .Params.logo_url }} - - - - {{ end }} - {{ end }} - {{ end }} -
-
- -{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index a2b0507..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,32 +0,0 @@ - diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index c79022c..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,25 +0,0 @@ - - - {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }} - - - {{ block "head" . }} - - - - - - - {{ $style := resources.Get "css/hzi.css" }} - - {{ end }} - {{ if .Site.Params.leaflet_enable }} - - - {{ end }} - - \ No newline at end of file diff --git a/layouts/partials/lang-switch.html b/layouts/partials/lang-switch.html deleted file mode 100644 index 3113f1e..0000000 --- a/layouts/partials/lang-switch.html +++ /dev/null @@ -1,15 +0,0 @@ - - -{{ if .Site.IsMultiLingual }} - {{ range .Site.Languages }} - {{ if not (eq . $.Site.Language) }} - {{ range $.Translations }} - - {{ .Language.Lang }} - - - {{ end }} - {{ end }} - {{ end }} -{{ end }} - \ No newline at end of file diff --git a/layouts/partials/leaflet.html b/layouts/partials/leaflet.html deleted file mode 100644 index 4d62955..0000000 --- a/layouts/partials/leaflet.html +++ /dev/null @@ -1,61 +0,0 @@ -
- - - diff --git a/layouts/partials/livetwitterfeed.html b/layouts/partials/livetwitterfeed.html deleted file mode 100644 index da5cf90..0000000 --- a/layouts/partials/livetwitterfeed.html +++ /dev/null @@ -1,4 +0,0 @@ - -Tweets by {{ .Site.Params.twitter_feed }} - \ No newline at end of file diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html deleted file mode 100644 index 6a9df3e..0000000 --- a/layouts/partials/post-metadata.html +++ /dev/null @@ -1,11 +0,0 @@ -
- -
diff --git a/layouts/partials/post-summary.html b/layouts/partials/post-summary.html deleted file mode 100644 index fc943dd..0000000 --- a/layouts/partials/post-summary.html +++ /dev/null @@ -1,9 +0,0 @@ - -
- -
-

{{ .Summary | truncate 120 }}

-
-
diff --git a/layouts/partials/pub-links.html b/layouts/partials/pub-links.html deleted file mode 100644 index 04faa48..0000000 --- a/layouts/partials/pub-links.html +++ /dev/null @@ -1,54 +0,0 @@ -{{ with $.Params.doi }} - - - DOI - -{{ end }} - -{{ with $.Params.url_pdf }} - - - PDF - -{{ end }} - -{{ with $.Params.url_slides }} - - - {{ i18n "PubIconsSlides" }} - -{{ end }} - -{{ with $.Params.url_video }} - - - Video - -{{ end }} - -{{ with $.Params.url_code }} - - - Code - -{{ end }} - -{{ with $.Params.url_dataset }} - - - {{ i18n "PubIconsData" }} - -{{ end }} - -{{ with $.Params.url_project }} - - - {{ i18n "PubIconsProject" }} - -{{ end }} - -{{ range $.Params.url_custom }} - - {{ .name }} - -{{ end }} diff --git a/layouts/partials/pub-summary.html b/layouts/partials/pub-summary.html deleted file mode 100644 index e525012..0000000 --- a/layouts/partials/pub-summary.html +++ /dev/null @@ -1,7 +0,0 @@ - -{{ .Title | safeHTML }} -
- - {{ i18n "PubIconsAbstract" }} - {{ partial "pub-links" . }} - diff --git a/layouts/partials/share.html b/layouts/partials/share.html deleted file mode 100644 index 26347a2..0000000 --- a/layouts/partials/share.html +++ /dev/null @@ -1,31 +0,0 @@ -{{ if .Site.Params.sharing }} -
- -
-{{ end }} diff --git a/layouts/partials/whatisthis.html b/layouts/partials/whatisthis.html deleted file mode 100644 index 43bb537..0000000 --- a/layouts/partials/whatisthis.html +++ /dev/null @@ -1,43 +0,0 @@ - diff --git a/layouts/publication/single.html b/layouts/publication/single.html deleted file mode 100644 index 4c67397..0000000 --- a/layouts/publication/single.html +++ /dev/null @@ -1,51 +0,0 @@ -{{ define "top-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "title-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "main" }} -
-
-
-

{{ .Title }}

- - {{ if .Params.image }} - - {{end}} -

Abstract

-

{{ .Params.abstract }}

-
- {{ if .Params.publication }} -
-
Cite
-
{{ .Params.publication | markdownify }}
-
- {{ end }} -
-
Date
- -
- {{ if .Params.doi }} -
-
DOI
- -
- {{ end }} -
-
Links
-
- {{ partial "pub-links" . }} -
-
-
-
{{ .Content }}
-
-
-{{ end }} diff --git a/layouts/section/publication.html b/layouts/section/publication.html deleted file mode 100644 index d577fdb..0000000 --- a/layouts/section/publication.html +++ /dev/null @@ -1,63 +0,0 @@ -{{ define "top-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "title-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "main" }} -
-
-

{{.Title}}

- -
-
- - {{ $pages := .Site.RegularPages }} - {{ range .Site.Home.Translations }} - {{ $pages = $pages | lang.Merge .Site.RegularPages }} - {{ end }} - -
-

{{ i18n "PubPreprints" }}

-

*{{ i18n "PubPreprintsText" }}

- - {{ range (where (where $pages "Params.publication_preprint" "!=" nil) "Params.publication_preprint" "!=" "").GroupByDate "2006-01" "desc" }} -
-
-

{{ .Key }}

-
-
-
    - {{ range .Pages.ByDate.Reverse }} -
  • {{ partial "pub-summary" . }}
  • - {{ end }} -
-
-
- {{ end }} -
-
-

{{ i18n "PubPublished" }}

-

*{{ i18n "PubPublishedText" }}

- - {{ range (where (where $pages "Params.publication" "!=" nil) "Params.publication" "!=" "").GroupByDate "2006-01" "desc" }} -
-
-

{{ .Key }}

-
-
-
    - {{ range .Pages.ByDate.Reverse }} -
  • {{ partial "pub-summary" . }}
  • - {{ end }} -
-
-
- {{ end }} -
-
-{{ end }} diff --git a/layouts/section/studies.html b/layouts/section/studies.html deleted file mode 100644 index bab9576..0000000 --- a/layouts/section/studies.html +++ /dev/null @@ -1,59 +0,0 @@ -{{ define "top-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "title-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "main" }} -
-
- - - - - - - - - - - - - - {{ range .Pages }} - - - - - - - - - - - {{ end }} -
{{ i18n "StudiesAbbr" }}{{ i18n "StudiesPeriod" }}{{ i18n "StudiesLocation" }}N{{ i18n "StudiesOutcome" }}{{ i18n "StudiesName" }}{{ i18n "StudiesPi" }}{{ i18n "StudiesInst" }}
{{.Params.abbreviation}}{{.Params.study_dates.sample_start}} -- {{.Params.study_dates.sample_end}} - {{ with .Params.recruitment.location }} - {{ i18n "StudiesLocationCount" (len .) }} in - {{ end }} - {{ delimit .Params.recruitment.country ", " }} - {{.Params.study_numbers.study_population}}{{.Params.study_info.primary_outcomes}} {{.Title}} - {{ if .Params.study_pi.Email}} - {{.Params.study_pi.Name}} - {{ else }} - {{.Params.study_pi.Name}} - {{ end }} - {{.Params.study_pi.institution}}
-
-
-{{ end }} diff --git a/layouts/shortcodes/fetchapi.html b/layouts/shortcodes/fetchapi.html deleted file mode 100644 index 4d10729..0000000 --- a/layouts/shortcodes/fetchapi.html +++ /dev/null @@ -1,50 +0,0 @@ -
- - {{ $urlSearchPre := "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?"}} - - {{ $urlSummaryPre := "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?"}} - - - {{$searchTerm := .Get "searchterm" }} - {{$minDate := .Get "mindate" }} - {{$maxDate := .Get "maxdate" }} - {{$articlesRetrieved := .Get "articlesretrieved" }} - - - {{ $dataSearch := getJSON $urlSearchPre "db=pubmed&datetype=pdat&mindate=" $minDate "&maxdate=" $maxDate "&retmode=json&retmax=" $articlesRetrieved "&term=" $searchTerm "&field=title&rettype=field" }} - - -
-
-

Search term(s): {{$searchTerm}}

-
-
-

Min date: {{$minDate}}

-
-
-

Max date: {{$maxDate}}

-
-
-

Articles Retrieved: {{$articlesRetrieved}}

-
-
- - -
- {{range $dataSearch.esearchresult.idlist }} - {{$articleId := . }} - - {{$urlSummary := printf "%s%s" "db=pubmed&retmode=json&id=" $articleId}} - - {{ $dataSummary := getJSON $urlSummaryPre $urlSummary}} - {{$dataResult := $dataSummary.result }} - {{$stringifyId := string .}} - {{$articleData := index $dataResult $stringifyId }} -
-

{{ safeHTML $articleData.title }}

-

Last author: {{ $articleData.lastauthor }} {{ $articleData.elocationid }}

-
- {{ end }} - PubMed - as supplied by publisher -
-
diff --git a/layouts/shortcodes/share_data.html b/layouts/shortcodes/share_data.html deleted file mode 100644 index 09a27e1..0000000 --- a/layouts/shortcodes/share_data.html +++ /dev/null @@ -1,63 +0,0 @@ - -
- - -
- - -

{{ i18n "ContributeDocuments" }}

-

- {{ i18n "ContributeDocumentsText" }}:
- {{ i18n "ContributeSend" }} -

- - - - - diff --git a/layouts/shortcodes/video.html b/layouts/shortcodes/video.html deleted file mode 100644 index e0f4114..0000000 --- a/layouts/shortcodes/video.html +++ /dev/null @@ -1,3 +0,0 @@ - \ No newline at end of file diff --git a/layouts/studies/single.html b/layouts/studies/single.html deleted file mode 100644 index ef53a6c..0000000 --- a/layouts/studies/single.html +++ /dev/null @@ -1,241 +0,0 @@ -{{ define "top-bar-right" }} - -{{ partial "lang-switch.html" $ }} -{{ end }} -{{ define "main" }} -
-
-
- - {{ if .Params.logo_url }} - - {{ else }} -

- {{ end }} -

{{ .Title }}

- - -
- {{ .Content }} - -

{{ i18n "StudiesOverview" }}

- - - - - - - - {{ with .Params.abbreviation }} - - - - - {{ end }} - - {{ with .Params.study_info.funding_sources }} - - - - - {{ end }} - - {{ with .Params.recruitment.country }} - - - - - {{ end }} - - {{ with .Params.recruitment.location }} - - - - - {{ end }} - - {{ with .Params.study_info.primary_outcomes }} - - - - - {{ end }} - - {{ with .Params.study_info.secondary_outcomes }} - - - - - {{ end }} - - {{ with .Params.study_info.research_question }} - - - - - {{ end }} - - {{ if .Params.study_info.diagnostic_test }} - - - - - {{ end }} - - {{ with .Params.study_info.tested_antibody_classes }} - - - - - {{ end }} - - {{ with .Params.study_numbers.study_population }} - - - - - {{ end }} - - {{ with .Params.study_numbers.population }} - - - - - {{ end }} - - {{ if .Params.study_pi.name }} - - - - - {{ end }} - - {{ if .Params.team }} - - - - - {{ end }} - - {{ with .Params.project_url }} - - - - - {{ end }} - - {{ if .Params.study_dates.sample_start }} - - - - - {{ end }} - - {{ with .Params.study_dates.study_start }} - - - - - {{ end }} - - {{ with .Params.study_dates.study_first_results }} - - - - - {{ end }} - -
{{ i18n "StudiesName" }}{{.Title}}
{{ i18n "StudiesAbbr" }}{{ . }}
{{ i18n "StudiesSponsor" }}{{ . }}
{{ i18n "StudiesRegion" }}{{ delimit . ", " }}
{{ i18n "StudiesLocation" }} - {{ range first 1 . }}{{ .place_name }}{{ end }}{{ range after 1 . }}, {{ .place_name }}{{ end }} -
{{ i18n "StudiesOutcome" }}{{ . }}
{{ i18n "StudiesOutcomeSec" }}{{ . }}
{{ i18n "StudiesResearchQuestion" }}{{ . }}
{{ i18n "StudiesMethod" }} -
    - {{ range $item := $.Params.study_info.diagnostic_test }} -
  • - {{ with $item.product }}{{ . }}{{ end }} - {{ if $item.company }} - , {{ $item.company }} - {{ with $item.address }}({{ . }}){{ end }} - {{ end }} - {{ with $item.type }}, {{ . }}{{ end }} -
  • - {{ end }} -
-
{{ i18n "StudiesAntibody" }}{{ delimit . ", " }}
{{ i18n "StudiesSamplesize" }}{{ . }}
{{ i18n "StudiesPopulationInArea" }}{{ . }}
{{ i18n "StudiesPi" }} - {{ .Params.study_pi.name }} - {{ with .Params.study_pi.institution }} - , {{ . }} - {{ end }} - {{ with .Params.study_pi.email }} - , {{ . }} - {{ end }} -
{{ i18n "StudiesTeam" }} -
    - {{ range $member := $.Params.team }} -
  • - {{ with $member.name }}{{ . }}{{ end }}{{ with $member.role }}, {{ . }}{{ end }}{{ with $member.institution }}, {{ . }}{{ end }} -
  • - {{ end }} -
-
WWW{{ . }}
{{ i18n "StudiesPeriod" }} - {{ .Params.study_dates.sample_start }} - {{ with .Params.study_dates.sample_end }} - till {{ . }} - {{ end }} -
{{ i18n "StudiesStart" }}{{ . }}
{{ i18n "StudiesFirstResults" }}{{ . }}
- -
-

{{ i18n "StudiesMetadata" }}

- {{ highlight (.Params | jsonify (dict "prefix" " " "indent" " ") ) "json" "linenos=false" }} -
-
- - - - - - -
- - - - -
- -
-{{ end }}