From 0c433bab1f2a01d4bff6fec22eaf1fa3227b8037 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Tue, 16 Jul 2024 20:48:07 +0300 Subject: [PATCH 01/33] Research -> Publications --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.toml b/config.toml index ce84b5ba..a83a7f4f 100644 --- a/config.toml +++ b/config.toml @@ -39,7 +39,7 @@ relativeURLs = false weight = 4 [[menu.main]] parent = "about" - name = "Research" + name = "Publications" url = "/about/publications" weight = 5 [[menu.main]] From 5514c5e7530f63f1b263669cf00b8dacb26ea978 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Tue, 16 Jul 2024 23:24:55 +0300 Subject: [PATCH 02/33] Changed Career section (temp) --- config.toml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index a83a7f4f..06da4258 100644 --- a/config.toml +++ b/config.toml @@ -54,9 +54,20 @@ relativeURLs = false weight = 7 [[menu.main]] parent = "about" - name = "Careers" - url = "/about/careers" + name = "Join Us" + url = "" + identifier = "join-us" weight = 8 +[[menu.main]] + parent = "join-us" + name = "Open invitation to faculty, students, and volunteers" + url = "" + weight = 20 +[[menu.main]] + parent = "join-us" + name = "Open paid positions" + url = "/about/careers" + weight = 30 [[menu.main]] parent = "about" name = "Contact Us" From dbaf31a4ba34fe060e58538822d653b9e7561bf4 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Wed, 17 Jul 2024 19:27:23 +0300 Subject: [PATCH 03/33] Added new items to 'About' section. --- config.toml | 23 ++++++++++++++++++- .../assets/css/layout/_header_footer.scss | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 06da4258..75602c05 100644 --- a/config.toml +++ b/config.toml @@ -68,11 +68,32 @@ relativeURLs = false name = "Open paid positions" url = "/about/careers" weight = 30 +[[menu.main]] + parent = "about" + name = "Help Us Suggest new data sources (your own, or others)" + identifier = "suggest-data" + url = "" + weight = 9 +[[menu.main]] + parent = "suggest-data" + name = "Suggest an addition or improvement" + url = "" + weight = 20 +[[menu.main]] + parent = "suggest-data" + name = "Suggest an addition or improvement" + url = "" + weight = 20 +[[menu.main]] + parent = "about" + name = "Support Us (Donate to support our mission)" + url = "" + weight = 10 [[menu.main]] parent = "about" name = "Contact Us" url = "https://docs.google.com/forms/d/e/1FAIpQLScqgT1fKZr5VWBfsaSp-DNaN03aV6EoZU4YljIzHJ1Wl_zmtg/viewform" - weight = 9 + weight = 11 # epidemic-signals [[menu.main]] diff --git a/themes/delphi/assets/css/layout/_header_footer.scss b/themes/delphi/assets/css/layout/_header_footer.scss index 95eb694b..cf8f0d0f 100644 --- a/themes/delphi/assets/css/layout/_header_footer.scss +++ b/themes/delphi/assets/css/layout/_header_footer.scss @@ -38,7 +38,7 @@ $mobile-margin: 15px; } .uk-navbar-dropdown { - width: 13em; + width: auto; } } From 5380d1dff98fa83da3685ae46c14f5f26c86ef76 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Thu, 18 Jul 2024 17:05:54 +0300 Subject: [PATCH 04/33] Epidemic Signals menu restructuring. --- config.toml | 67 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 51 insertions(+), 16 deletions(-) diff --git a/config.toml b/config.toml index 75602c05..d8ccc732 100644 --- a/config.toml +++ b/config.toml @@ -104,40 +104,75 @@ relativeURLs = false weight = 2 [[menu.main]] parent = "epidemic-signals" - name = "About COVIDcast" + name = "About Delphi Epidata" url = "/epidemic-signals/" weight = 1 [[menu.main]] parent = "epidemic-signals" - name = "About CTIS" - url = "/epidemic-signals/ctis" - weight = 10 + name = "Signal Discovery & Selection" + url = "" + weight = 2 [[menu.main]] - identifier = "epidemic-signals-covidcast" parent = "epidemic-signals" - name = "COVIDcast Dashboard" - url = "/covidcast/" + name = "Signal Visualizaion" + url = "" + identifier = "signal-visualization" + weight = 3 +[[menu.main]] + parent = "signal-visualization" + name = "EpiVis" + url = "" + weight = 10 +[[menu.main]] + parent = "signal-visualization" + name = "Current “Covidcast Dashboard”" + url = "" weight = 20 [[menu.main]] - parent = "epidemic-signals" - name = "CTIS Dashboard" - url = "/covidcast/survey-results" + parent = "signal-visualization" + name = "Covidcast 1.0 (“Classic”)" + url = "" weight = 30 [[menu.main]] parent = "epidemic-signals" - name = "Export Data" + name = "Signal Export" url = "/covidcast/export" - weight = 40 + weight = 4 [[menu.main]] parent = "epidemic-signals" - name = "Flu & Other Pathogens" - url = "/flu/" - weight = 50 + name = "Dashboard Builder" + url = "/covidcast/dashboard" + weight = 5 +[[menu.main]] + parent = "epidemic-signals" + name = "Signal Availability, Coverage & Latency" + url = "/covidcast/indicator-status" + weight = 6 +[[menu.main]] + parent = "epidemic-signals" + name = "Signal API" + url = "" + weight = 7 +[[menu.main]] + parent = "epidemic-signals" + name = "Report a problem" + url = "" + weight = 8 +[[menu.main]] + parent = "epidemic-signals" + name = "Suggest or request a new data source" + url = "" + weight = 9 +[[menu.main]] + parent = "epidemic-signals" + name = "Learn more" + url = "" + weight = 10 [[menu.main]] parent = "epidemic-signals" name = "Terms Of Use" url = "/epidemic-signals/terms-of-use" - weight = 60 + weight = 11 # tools [[menu.main]] From c17c3ff0c93d609cc8175a1f66c89afdbee191d1 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Fri, 19 Jul 2024 11:05:11 +0300 Subject: [PATCH 05/33] Added few changes --- config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index d8ccc732..439f3824 100644 --- a/config.toml +++ b/config.toml @@ -121,12 +121,12 @@ relativeURLs = false [[menu.main]] parent = "signal-visualization" name = "EpiVis" - url = "" + url = "/epivis/" weight = 10 [[menu.main]] parent = "signal-visualization" name = "Current “Covidcast Dashboard”" - url = "" + url = "/covidcast/" weight = 20 [[menu.main]] parent = "signal-visualization" From 60edef2c2dfffc51ecc6bdfee115718665af4af7 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Fri, 19 Jul 2024 17:11:03 +0300 Subject: [PATCH 06/33] Added 'Nowcasting and Forecasting' and 'For Modelers and Developers section'. --- config.toml | 342 ++++++++++++++++++++++++++++++++------------------- package.json | 4 +- 2 files changed, 217 insertions(+), 129 deletions(-) diff --git a/config.toml b/config.toml index 439f3824..a3b44292 100644 --- a/config.toml +++ b/config.toml @@ -34,13 +34,13 @@ relativeURLs = false weight = 3 [[menu.main]] parent = "about" - name = "Center of Excellence" - url = "/about/center-of-excellence" + name = "Publications" + url = "/about/publications" weight = 4 [[menu.main]] parent = "about" - name = "Publications" - url = "/about/publications" + name = "Presentations" + url = "" weight = 5 [[menu.main]] parent = "about" @@ -101,23 +101,23 @@ relativeURLs = false name = "Epidemic Signals" pre = "solid/virus" url = "/epidemic-signals/" - weight = 2 + weight = 1 [[menu.main]] parent = "epidemic-signals" name = "About Delphi Epidata" url = "/epidemic-signals/" - weight = 1 + weight = 2 [[menu.main]] parent = "epidemic-signals" name = "Signal Discovery & Selection" url = "" - weight = 2 + weight = 3 [[menu.main]] parent = "epidemic-signals" name = "Signal Visualizaion" url = "" identifier = "signal-visualization" - weight = 3 + weight = 4 [[menu.main]] parent = "signal-visualization" name = "EpiVis" @@ -137,177 +137,265 @@ relativeURLs = false parent = "epidemic-signals" name = "Signal Export" url = "/covidcast/export" - weight = 4 + weight = 5 [[menu.main]] parent = "epidemic-signals" name = "Dashboard Builder" - url = "/covidcast/dashboard" - weight = 5 + url = "" + weight = 6 [[menu.main]] parent = "epidemic-signals" name = "Signal Availability, Coverage & Latency" url = "/covidcast/indicator-status" - weight = 6 + weight = 7 [[menu.main]] parent = "epidemic-signals" name = "Signal API" url = "" - weight = 7 + weight = 8 [[menu.main]] parent = "epidemic-signals" name = "Report a problem" url = "" - weight = 8 + weight = 9 [[menu.main]] parent = "epidemic-signals" name = "Suggest or request a new data source" url = "" - weight = 9 + weight = 10 [[menu.main]] parent = "epidemic-signals" name = "Learn more" url = "" - weight = 10 + weight = 11 [[menu.main]] parent = "epidemic-signals" name = "Terms Of Use" url = "/epidemic-signals/terms-of-use" - weight = 11 + weight = 12 -# tools -[[menu.main]] - identifier = "tools" - name = "Tools" - pre = "solid/screwdriver-wrench" - url = "/tools/" - weight = 5 +# nowcasting-and-forecasting [[menu.main]] - parent = "tools" - name = "Tools Overview" - url = "/tools/" + identifier = "nowcasting-and-forecasting" + name = "Nowcasting and Forecasting" + url = "" weight = 1 -# utils -[[menu.main]] - parent = "tools" - identifier = "utils" - name = "Dashboards" - url = "/tools/#dashboards" - weight = 9 -[[menu.main]] - parent = "utils" - name = "Delphi Epidata Dashboard" - url = "/covidcast/" - weight = 10 [[menu.main]] - parent = "utils" - name = "Indicator Status" - url = "/covidcast/indicator-status" - weight = 20 + parent = "nowcasting-and-forecasting" + name = "Ongoing forecasts" + url = "" + weight = 2 [[menu.main]] - parent = "utils" - name = "Dashboard Builder" - url = "/covidcast/dashboard" - weight = 30 + parent = "nowcasting-and-forecasting" + name = "Historical forecasts" + url = "" + weight = 3 [[menu.main]] - parent = "utils" + parent = "nowcasting-and-forecasting" name = "Forecast Evaluation" url = "/forecast-eval/" - weight = 40 -[[menu.main]] - parent = "utils" - name = "Epi Signal Visualization" - url = "/epivis/" - weight = 50 + weight = 4 [[menu.main]] - parent = "tools" - name = "Archived" - url = "/tools/#archived" - weight = 80 - + parent = "nowcasting-and-forecasting" + name = "Forecast Hub" + url = "" + weight = 5 [[menu.main]] - parent = "tools" - identifier = "forecasting" - name = "Forecasting" - url = "/tools/#forecasting" - weight = 50 + parent = "nowcasting-and-forecasting" + name = "Learn More" + url = "" + weight = 6 +# for-modelers-and-developers [[menu.main]] - parent = "forecasting" - name = "COVID Forecasting" - url = "https://covid19forecasthub.org/" - weight = 1 -[[menu.main]] - parent = "forecasting" - name = "Flu Forecasting" - url = "https://www.cdc.gov/flu/weekly/flusight/index.html" + identifier = "for-modelers-and-developers" + name = "For Modelers and Developers" + url = "" weight = 2 - -[[menu.main]] - identier = "Code" - pre = "solid/code" - name = "Code" - url = "code" - weight = 90 [[menu.main]] - parent = "Code" - name = "Code Overview" - url = "code" - weight = 1 + parent = "for-modelers-and-developers" + pre = "brands/github" + name = "GitHub" + url = "https://github.com/cmu-delphi/" + weight = 3 [[menu.main]] - parent = "Code" - identifier = "APIClients" - name = "API and Clients" - url = "/code/#api-and-clients" - weight = 2 + parent = "for-modelers-and-developers" + name = "Epidata signal API" + url = "" + weight = 4 [[menu.main]] - parent = "APIClients" - name = "Epidata" - url = "https://github.com/cmu-delphi/delphi-epidata" - weight = 7 + parent = "for-modelers-and-developers" + identifier = "r-packages" + name = "R packages" + weight = 5 [[menu.main]] - parent = "APIClients" - name = "Epidatr" + parent = "r-packages" + name = "epidatr" url = "https://cmu-delphi.github.io/epidatr/" - weight = 8 -[[menu.main]] - parent = "APIClients" - name = "Epidatpy" - url = "https://github.com/cmu-delphi/epidatpy" - weight = 9 - -[[menu.main]] - parent = "Code" - identifier = "forecastingCode" - name = "Forecasting" - url = "code#forecasting" weight = 10 [[menu.main]] - parent = "forecastingCode" - name = "Forecasting Manual" - weight = 1 -[[menu.main]] - parent = "forecastingCode" - name = "Epiprocess" + parent = "r-packages" + name = "epiprocess" url = "https://cmu-delphi.github.io/epiprocess/" - weight = 7 + weight = 20 [[menu.main]] - parent = "forecastingCode" - name = "Epipredict" + parent = "r-packages" + name = "epipredict" url = "https://cmu-delphi.github.io/epipredict/" - weight = 7 + weight = 30 [[menu.main]] - parent = "Code" - name = "Github" - pre = "brands/github" - url = "https://github.com/cmu-delphi/" - weight = 70 - + parent = "for-modelers-and-developers" + identifier = "python-packages" + name = "Python packages" + weight = 6 +[[menu.main]] + parent = "python-packages" + name = "Util" + url = "" + weight = 10 [[menu.main]] - identifier = "api" - name = "Epidata API" - pre = "solid/database" - url = "https://cmu-delphi.github.io/delphi-epidata/" - weight = 100 + parent = "for-modelers-and-developers" + name = "Videos / Howtos" + url = "" + weight = 7 + + + + +# tools +#[[menu.main]] +# identifier = "tools" +# name = "Tools" +# pre = "solid/screwdriver-wrench" +# url = "/tools/" +# weight = 5 +#[[menu.main]] +# parent = "tools" +# name = "Tools Overview" +# url = "/tools/" +# weight = 1 +## utils +#[[menu.main]] +# parent = "tools" +# identifier = "utils" +# name = "Dashboards" +# url = "/tools/#dashboards" +# weight = 9 +#[[menu.main]] +# parent = "utils" +# name = "Delphi Epidata Dashboard" +# url = "/covidcast/" +# weight = 10 +#[[menu.main]] +# parent = "utils" +# name = "Indicator Status" +# url = "/covidcast/indicator-status" +# weight = 20 +#[[menu.main]] +# parent = "utils" +# name = "sdfasdfsadDashboard Builder" +# url = "/covidcast/dashboard" +# weight = 30 +#[[menu.main]] +# parent = "utils" +# name = "sladjfhjsadkhfkjsdhaForecast Evaluation" +# url = "/forecast-eval/" +# weight = 40 +#[[menu.main]] +# parent = "utils" +# name = "Epi Signal Visualization" +# url = "/epivis/" +# weight = 50 +#[[menu.main]] +# parent = "tools" +# name = "Archived" +# url = "/tools/#archived" +# weight = 80 + +#[[menu.main]] +# parent = "tools" +# identifier = "forecasting" +# name = "Forecasting" +# url = "/tools/#forecasting" +# weight = 50 + +#[[menu.main]] +# parent = "forecasting" +# name = "COVID Forecasting" +# url = "https://covid19forecasthub.org/" +# weight = 1 +#[[menu.main]] +# parent = "forecasting" +# name = "Flu Forecasting" +# url = "https://www.cdc.gov/flu/weekly/flusight/index.html" +# weight = 2 + +#[[menu.main]] +# identier = "Code" +# pre = "solid/code" +# name = "Code" +# url = "code" +# weight = 90 +#[[menu.main]] +# parent = "Code" +# name = "Code Overview" +# url = "code" +# weight = 1 +#[[menu.main]] +# parent = "Code" +# identifier = "APIClients" +# name = "API and Clients" +# url = "/code/#api-and-clients" +# weight = 2 +#[[menu.main]] +# parent = "APIClients" +# name = "Epidata" +# url = "https://github.com/cmu-delphi/delphi-epidata" +# weight = 7 +#[[menu.main]] +# parent = "APIClients" +# name = "Epidatr" +# url = "https://cmu-delphi.github.io/epidatr/" +# weight = 8 +#[[menu.main]] +# parent = "APIClients" +# name = "Epidatpy" +# url = "https://github.com/cmu-delphi/epidatpy" +# weight = 9 + +#[[menu.main]] +# parent = "Code" +# identifier = "forecastingCode" +# name = "Forecasting" +# url = "code#forecasting" +# weight = 10 +#[[menu.main]] +# parent = "forecastingCode" +# name = "Forecasting Manual" +# weight = 1 +#[[menu.main]] +# parent = "forecastingCode" +# name = "Epiprocess" +# url = "https://cmu-delphi.github.io/epiprocess/" +# weight = 7 +#[[menu.main]] +# parent = "forecastingCode" +# name = "Epipredict" +# url = "https://cmu-delphi.github.io/epipredict/" +# weight = 7 +#[[menu.main]] +# parent = "Code" +# name = "Github" +# pre = "brands/github" +# url = "https://github.com/cmu-delphi/" +# weight = 70 + +#[[menu.main]] +# identifier = "api" +# name = "Epidata API" +# pre = "solid/database" +# url = "https://cmu-delphi.github.io/delphi-epidata/" +# weight = 100 [params] description = "Developing the Theory and Practice of Epidemiological Forecasting" diff --git a/package.json b/package.json index 594f5d6c..05507be5 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "build:blog": "Rscript -e \"blogdown::build_site(local=FALSE, run_hugo=FALSE, build_rmd='md5sum')\"", "prebuild": "npm run clean", "build": "hugo --gc --minify", - "start": "hugo server -D", + "start": "hugo server -D --disableFastRender", "start:blog": "Rscript -e \"blogdown::serve_site(port=1313, browser=FALSE)\"", "format": "prettier *.* \"(.vscode|content|data|themes)/**\" --write", "lint": "prettier *.* \"(.vscode|content|data|themes)/**\" --check", @@ -47,4 +47,4 @@ "lint-staged": { "*.{js,scss,css,yaml,md,html,json,yml}": "prettier --write" } -} +} \ No newline at end of file From 992d5f4ac0cd1938d17a7fd782be5cd811f0c442 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Mon, 22 Jul 2024 23:39:27 +0300 Subject: [PATCH 07/33] Replaced bullets with dropdown menus. --- config.toml | 73 ++++++++++++------- .../assets/css/layout/_header_footer.scss | 1 + themes/delphi/layouts/partials/nav.html | 31 ++++---- 3 files changed, 60 insertions(+), 45 deletions(-) diff --git a/config.toml b/config.toml index a3b44292..e8b5c080 100644 --- a/config.toml +++ b/config.toml @@ -12,7 +12,6 @@ relativeURLs = false [[menu.main]] identifier = "about" name = "About" - pre = "solid/circle-info" url = "/about" weight = 1 @@ -37,11 +36,11 @@ relativeURLs = false name = "Publications" url = "/about/publications" weight = 4 -[[menu.main]] - parent = "about" - name = "Presentations" - url = "" - weight = 5 +#[[menu.main]] +# parent = "about" +# name = "Presentations" +# url = "" +# weight = 5 [[menu.main]] parent = "about" name = "Blog" @@ -58,11 +57,11 @@ relativeURLs = false url = "" identifier = "join-us" weight = 8 -[[menu.main]] - parent = "join-us" - name = "Open invitation to faculty, students, and volunteers" - url = "" - weight = 20 +#[[menu.main]] +# parent = "join-us" +# name = "Open invitation to faculty, students, and volunteers" +# url = "" +# weight = 20 [[menu.main]] parent = "join-us" name = "Open paid positions" @@ -99,7 +98,6 @@ relativeURLs = false [[menu.main]] identifier = "epidemic-signals" name = "Epidemic Signals" - pre = "solid/virus" url = "/epidemic-signals/" weight = 1 [[menu.main]] @@ -180,11 +178,11 @@ relativeURLs = false name = "Nowcasting and Forecasting" url = "" weight = 1 -[[menu.main]] - parent = "nowcasting-and-forecasting" - name = "Ongoing forecasts" - url = "" - weight = 2 +#[[menu.main]] +# parent = "nowcasting-and-forecasting" +# name = "Ongoing forecasts" +# url = "" +# weight = 2 [[menu.main]] parent = "nowcasting-and-forecasting" name = "Historical forecasts" @@ -200,11 +198,11 @@ relativeURLs = false name = "Forecast Hub" url = "" weight = 5 -[[menu.main]] - parent = "nowcasting-and-forecasting" - name = "Learn More" - url = "" - weight = 6 +#[[menu.main]] +# parent = "nowcasting-and-forecasting" +# name = "Learn More" +# url = "" +# weight = 6 # for-modelers-and-developers [[menu.main]] @@ -253,14 +251,33 @@ relativeURLs = false name = "Util" url = "" weight = 10 +#[[menu.main]] +# parent = "for-modelers-and-developers" +# name = "Videos / Howtos" +# url = "" +# weight = 7 + +# intranet [[menu.main]] - parent = "for-modelers-and-developers" - name = "Videos / Howtos" + identifier = "intranet" + name = "Intranet" url = "" - weight = 7 - - - + weight = 3 +[[menu.main]] + parent = "intranet" + name = "FLaSH (for internal triaging)" + url = "" + weight = 1 +[[menu.main]] + parent = "intranet" + name = "Delphi Calendar" + url = "" + weight = 2 +[[menu.main]] + parent = "intranet" + name = "Delphi Mailing Lists" + url = "" + weight = 3 # tools #[[menu.main]] diff --git a/themes/delphi/assets/css/layout/_header_footer.scss b/themes/delphi/assets/css/layout/_header_footer.scss index cf8f0d0f..8257ddb8 100644 --- a/themes/delphi/assets/css/layout/_header_footer.scss +++ b/themes/delphi/assets/css/layout/_header_footer.scss @@ -27,6 +27,7 @@ $mobile-margin: 15px; margin-top: 0; margin-bottom: 0; align-items: flex-end; + max-width: 1400px; } .uk-badge { diff --git a/themes/delphi/layouts/partials/nav.html b/themes/delphi/layouts/partials/nav.html index 7ab53bd7..e7ed3add 100644 --- a/themes/delphi/layouts/partials/nav.html +++ b/themes/delphi/layouts/partials/nav.html @@ -32,26 +32,23 @@
  • {{ partial "menu/item.html" . }} - {{ if (in (split $currentPage.Site.Params.highlightLinks ",") .URL) }} - New - {{ end }} + {{ if .HasChildren }} + {{ partial "font-awesome.html" "solid/angle-down" }} + {{ end}}
  • {{ if .HasChildren }} -
  • - -
  • +
    + +
    {{ end }} {{ end }} From 65c159a3cb61deee8720f6b974f6ab04c85110b7 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Mon, 22 Jul 2024 23:47:02 +0300 Subject: [PATCH 08/33] Prettier formatting --- package.json | 2 +- themes/delphi/layouts/partials/nav.html | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 05507be5..4df12868 100644 --- a/package.json +++ b/package.json @@ -47,4 +47,4 @@ "lint-staged": { "*.{js,scss,css,yaml,md,html,json,yml}": "prettier --write" } -} \ No newline at end of file +} diff --git a/themes/delphi/layouts/partials/nav.html b/themes/delphi/layouts/partials/nav.html index e7ed3add..4ccffef4 100644 --- a/themes/delphi/layouts/partials/nav.html +++ b/themes/delphi/layouts/partials/nav.html @@ -34,21 +34,21 @@ {{ partial "menu/item.html" . }} {{ if .HasChildren }} {{ partial "font-awesome.html" "solid/angle-down" }} - {{ end}} + {{ end }} {{ if .HasChildren }} -
    - -
    +
    + +
    {{ end }} {{ end }} From 113de6175726aaa9257e9fa03804c6ccd8ee37eb Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Tue, 23 Jul 2024 00:00:30 +0300 Subject: [PATCH 09/33] Changed navigation items --- config.toml | 45 ++++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/config.toml b/config.toml index e8b5c080..a533af68 100644 --- a/config.toml +++ b/config.toml @@ -69,7 +69,7 @@ relativeURLs = false weight = 30 [[menu.main]] parent = "about" - name = "Help Us Suggest new data sources (your own, or others)" + name = "Help Us" identifier = "suggest-data" url = "" weight = 9 @@ -85,7 +85,7 @@ relativeURLs = false weight = 20 [[menu.main]] parent = "about" - name = "Support Us (Donate to support our mission)" + name = "Support Us (Donate)" url = "" weight = 10 [[menu.main]] @@ -148,9 +148,25 @@ relativeURLs = false weight = 7 [[menu.main]] parent = "epidemic-signals" - name = "Signal API" + name = "Epidata API" url = "" weight = 8 +[[menu.main]] + parent = "epidemic-signals" + identifier = "ctis" + name = "CTIS (“The Facebook Covid Survey”)" + url = "" + weight = 9 +[[menu.main]] + parent = "ctis" + name = "About CTIS" + url = "" + weight = 10 +[[menu.main]] + parent = "ctis" + name = "CTIS Dashboard" + url = "" + weight = 20 [[menu.main]] parent = "epidemic-signals" name = "Report a problem" @@ -178,14 +194,14 @@ relativeURLs = false name = "Nowcasting and Forecasting" url = "" weight = 1 -#[[menu.main]] -# parent = "nowcasting-and-forecasting" -# name = "Ongoing forecasts" -# url = "" -# weight = 2 [[menu.main]] parent = "nowcasting-and-forecasting" - name = "Historical forecasts" + name = "COVID-19 Forecasting" + url = "" + weight = 2 +[[menu.main]] + parent = "nowcasting-and-forecasting" + name = "Flu Forecasting" url = "" weight = 3 [[menu.main]] @@ -193,16 +209,7 @@ relativeURLs = false name = "Forecast Evaluation" url = "/forecast-eval/" weight = 4 -[[menu.main]] - parent = "nowcasting-and-forecasting" - name = "Forecast Hub" - url = "" - weight = 5 -#[[menu.main]] -# parent = "nowcasting-and-forecasting" -# name = "Learn More" -# url = "" -# weight = 6 + # for-modelers-and-developers [[menu.main]] From 14a22195dac3324267417cd9e6de4b3799d92c4f Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Fri, 26 Jul 2024 23:14:37 +0300 Subject: [PATCH 10/33] Fixed navigation bar pulldown menus --- config.toml | 228 +++--------------------- themes/delphi/layouts/partials/nav.html | 91 +++------- 2 files changed, 54 insertions(+), 265 deletions(-) diff --git a/config.toml b/config.toml index a533af68..00e38d16 100644 --- a/config.toml +++ b/config.toml @@ -57,32 +57,11 @@ relativeURLs = false url = "" identifier = "join-us" weight = 8 -#[[menu.main]] -# parent = "join-us" -# name = "Open invitation to faculty, students, and volunteers" -# url = "" -# weight = 20 [[menu.main]] parent = "join-us" name = "Open paid positions" url = "/about/careers" - weight = 30 -[[menu.main]] - parent = "about" - name = "Help Us" - identifier = "suggest-data" - url = "" weight = 9 -[[menu.main]] - parent = "suggest-data" - name = "Suggest an addition or improvement" - url = "" - weight = 20 -[[menu.main]] - parent = "suggest-data" - name = "Suggest an addition or improvement" - url = "" - weight = 20 [[menu.main]] parent = "about" name = "Support Us (Donate)" @@ -108,7 +87,7 @@ relativeURLs = false [[menu.main]] parent = "epidemic-signals" name = "Signal Discovery & Selection" - url = "" + url = "/signals/" weight = 3 [[menu.main]] parent = "epidemic-signals" @@ -129,7 +108,7 @@ relativeURLs = false [[menu.main]] parent = "signal-visualization" name = "Covidcast 1.0 (“Classic”)" - url = "" + url = "/covidcast/classic/" weight = 30 [[menu.main]] parent = "epidemic-signals" @@ -138,55 +117,60 @@ relativeURLs = false weight = 5 [[menu.main]] parent = "epidemic-signals" - name = "Dashboard Builder" - url = "" + name = "Signal Documentation" + url = "https://cmu-delphi.github.io/delphi-epidata/api/covidcast_signals.html" weight = 6 +[[menu.main]] + parent = "epidemic-signals" + name = "Dashboard Builder" + url = "/covidcast/dashboard/" + weight = 7 [[menu.main]] parent = "epidemic-signals" name = "Signal Availability, Coverage & Latency" url = "/covidcast/indicator-status" - weight = 7 + weight = 8 [[menu.main]] parent = "epidemic-signals" name = "Epidata API" - url = "" - weight = 8 + url = "https://cmu-delphi.github.io/delphi-epidata/" + weight = 9 [[menu.main]] parent = "epidemic-signals" identifier = "ctis" name = "CTIS (“The Facebook Covid Survey”)" url = "" - weight = 9 + weight = 10 [[menu.main]] parent = "ctis" name = "About CTIS" - url = "" - weight = 10 + url = "/epidemic-signals/ctis/" + weight = 11 [[menu.main]] parent = "ctis" name = "CTIS Dashboard" - url = "" + url = "/covidcast/survey-results/" weight = 20 [[menu.main]] parent = "epidemic-signals" name = "Report a problem" url = "" - weight = 9 + weight = 12 [[menu.main]] parent = "epidemic-signals" name = "Suggest or request a new data source" url = "" - weight = 10 + weight = 13 [[menu.main]] parent = "epidemic-signals" name = "Learn more" url = "" - weight = 11 + weight = 14 [[menu.main]] parent = "epidemic-signals" name = "Terms Of Use" url = "/epidemic-signals/terms-of-use" - weight = 12 + weight = 15 # nowcasting-and-forecasting [[menu.main]] @@ -197,12 +181,12 @@ relativeURLs = false [[menu.main]] parent = "nowcasting-and-forecasting" name = "COVID-19 Forecasting" - url = "" + url = "https://covid19forecasthub.org/" weight = 2 [[menu.main]] parent = "nowcasting-and-forecasting" name = "Flu Forecasting" - url = "" + url = "https://www.cdc.gov/flu/weekly/flusight/index.html" weight = 3 [[menu.main]] parent = "nowcasting-and-forecasting" @@ -225,8 +209,8 @@ relativeURLs = false weight = 3 [[menu.main]] parent = "for-modelers-and-developers" - name = "Epidata signal API" - url = "" + name = "Epidata API" + url = "https://cmu-delphi.github.io/delphi-epidata/" weight = 4 [[menu.main]] parent = "for-modelers-and-developers" @@ -256,170 +240,8 @@ relativeURLs = false [[menu.main]] parent = "python-packages" name = "Util" - url = "" + url = "https://github.com/cmu-delphi/epidatpy" weight = 10 -#[[menu.main]] -# parent = "for-modelers-and-developers" -# name = "Videos / Howtos" -# url = "" -# weight = 7 - -# intranet -[[menu.main]] - identifier = "intranet" - name = "Intranet" - url = "" - weight = 3 -[[menu.main]] - parent = "intranet" - name = "FLaSH (for internal triaging)" - url = "" - weight = 1 -[[menu.main]] - parent = "intranet" - name = "Delphi Calendar" - url = "" - weight = 2 -[[menu.main]] - parent = "intranet" - name = "Delphi Mailing Lists" - url = "" - weight = 3 - -# tools -#[[menu.main]] -# identifier = "tools" -# name = "Tools" -# pre = "solid/screwdriver-wrench" -# url = "/tools/" -# weight = 5 -#[[menu.main]] -# parent = "tools" -# name = "Tools Overview" -# url = "/tools/" -# weight = 1 -## utils -#[[menu.main]] -# parent = "tools" -# identifier = "utils" -# name = "Dashboards" -# url = "/tools/#dashboards" -# weight = 9 -#[[menu.main]] -# parent = "utils" -# name = "Delphi Epidata Dashboard" -# url = "/covidcast/" -# weight = 10 -#[[menu.main]] -# parent = "utils" -# name = "Indicator Status" -# url = "/covidcast/indicator-status" -# weight = 20 -#[[menu.main]] -# parent = "utils" -# name = "sdfasdfsadDashboard Builder" -# url = "/covidcast/dashboard" -# weight = 30 -#[[menu.main]] -# parent = "utils" -# name = "sladjfhjsadkhfkjsdhaForecast Evaluation" -# url = "/forecast-eval/" -# weight = 40 -#[[menu.main]] -# parent = "utils" -# name = "Epi Signal Visualization" -# url = "/epivis/" -# weight = 50 -#[[menu.main]] -# parent = "tools" -# name = "Archived" -# url = "/tools/#archived" -# weight = 80 - -#[[menu.main]] -# parent = "tools" -# identifier = "forecasting" -# name = "Forecasting" -# url = "/tools/#forecasting" -# weight = 50 - -#[[menu.main]] -# parent = "forecasting" -# name = "COVID Forecasting" -# url = "https://covid19forecasthub.org/" -# weight = 1 -#[[menu.main]] -# parent = "forecasting" -# name = "Flu Forecasting" -# url = "https://www.cdc.gov/flu/weekly/flusight/index.html" -# weight = 2 - -#[[menu.main]] -# identier = "Code" -# pre = "solid/code" -# name = "Code" -# url = "code" -# weight = 90 -#[[menu.main]] -# parent = "Code" -# name = "Code Overview" -# url = "code" -# weight = 1 -#[[menu.main]] -# parent = "Code" -# identifier = "APIClients" -# name = "API and Clients" -# url = "/code/#api-and-clients" -# weight = 2 -#[[menu.main]] -# parent = "APIClients" -# name = "Epidata" -# url = "https://github.com/cmu-delphi/delphi-epidata" -# weight = 7 -#[[menu.main]] -# parent = "APIClients" -# name = "Epidatr" -# url = "https://cmu-delphi.github.io/epidatr/" -# weight = 8 -#[[menu.main]] -# parent = "APIClients" -# name = "Epidatpy" -# url = "https://github.com/cmu-delphi/epidatpy" -# weight = 9 - -#[[menu.main]] -# parent = "Code" -# identifier = "forecastingCode" -# name = "Forecasting" -# url = "code#forecasting" -# weight = 10 -#[[menu.main]] -# parent = "forecastingCode" -# name = "Forecasting Manual" -# weight = 1 -#[[menu.main]] -# parent = "forecastingCode" -# name = "Epiprocess" -# url = "https://cmu-delphi.github.io/epiprocess/" -# weight = 7 -#[[menu.main]] -# parent = "forecastingCode" -# name = "Epipredict" -# url = "https://cmu-delphi.github.io/epipredict/" -# weight = 7 -#[[menu.main]] -# parent = "Code" -# name = "Github" -# pre = "brands/github" -# url = "https://github.com/cmu-delphi/" -# weight = 70 - -#[[menu.main]] -# identifier = "api" -# name = "Epidata API" -# pre = "solid/database" -# url = "https://cmu-delphi.github.io/delphi-epidata/" -# weight = 100 [params] description = "Developing the Theory and Practice of Epidemiological Forecasting" diff --git a/themes/delphi/layouts/partials/nav.html b/themes/delphi/layouts/partials/nav.html index 4ccffef4..32ead6e9 100644 --- a/themes/delphi/layouts/partials/nav.html +++ b/themes/delphi/layouts/partials/nav.html @@ -15,80 +15,47 @@ uk-parent {{- end -}}" > - {{ if .HasChildren }} + {{ if .HasChildren }} {{ partial "menu/item.html" . }} {{ partial "font-awesome.html" "solid/angle-down" }} - {{ else }} - - {{ partial "menu/item.html" . }} - - {{ end }} - {{ if .HasChildren }}
    - + {{ if .HasChildren }} +
    + +
    + {{ end }} + + {{ end }} +
    + {{ else }} + + {{ partial "menu/item.html" . }} + + {{ end }} {{ end }} - From 8e2e2588cd27f2406e09aca6f56400d14314780b Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Fri, 26 Jul 2024 23:20:11 +0300 Subject: [PATCH 11/33] Fixed linting --- themes/delphi/layouts/partials/nav.html | 49 ++++++++++++------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/themes/delphi/layouts/partials/nav.html b/themes/delphi/layouts/partials/nav.html index 32ead6e9..1756dd0f 100644 --- a/themes/delphi/layouts/partials/nav.html +++ b/themes/delphi/layouts/partials/nav.html @@ -15,43 +15,42 @@ uk-parent {{- end -}}" > - {{ if .HasChildren }} + {{ if .HasChildren }} {{ partial "menu/item.html" . }} {{ partial "font-awesome.html" "solid/angle-down" }} {{ else }} {{ partial "menu/item.html" . }} - {{ end }} {{ end }} From 700498cffc20ea18932164e7576e533cf47e7bfc Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Mon, 29 Jul 2024 18:17:38 +0300 Subject: [PATCH 12/33] Added 'Open in new tab' if link goes to the external source. --- config.toml | 50 ++++++++++++++++--------- themes/delphi/layouts/partials/nav.html | 21 +++++++++-- 2 files changed, 50 insertions(+), 21 deletions(-) diff --git a/config.toml b/config.toml index 4ed18a87..a67c1f8e 100644 --- a/config.toml +++ b/config.toml @@ -36,42 +36,39 @@ relativeURLs = false name = "Publications" url = "/about/publications" weight = 4 -#[[menu.main]] -# parent = "about" -# name = "Presentations" -# url = "" -# weight = 5 [[menu.main]] parent = "about" name = "Blog" url = "/blog" - weight = 6 + weight = 5 [[menu.main]] parent = "about" name = "News" url = "/about/news" - weight = 7 + weight = 6 [[menu.main]] parent = "about" name = "Join Us" url = "" identifier = "join-us" - weight = 8 + weight = 7 [[menu.main]] parent = "join-us" name = "Open paid positions" url = "/about/careers" - weight = 9 + weight = 8 [[menu.main]] parent = "about" name = "Support Us (Donate)" url = "" - weight = 10 + weight = 9 [[menu.main]] parent = "about" name = "Contact Us" url = "https://docs.google.com/forms/d/e/1FAIpQLScqgT1fKZr5VWBfsaSp-DNaN03aV6EoZU4YljIzHJ1Wl_zmtg/viewform" - weight = 11 + weight = 10 + [menu.main.params] + external = true # epidemic-signals [[menu.main]] @@ -89,6 +86,8 @@ relativeURLs = false name = "Signal Discovery & Selection" url = "/signals/" weight = 3 + [menu.main.params] + external = true [[menu.main]] parent = "epidemic-signals" name = "Signal Visualizaion" @@ -120,6 +119,8 @@ relativeURLs = false name = "Signal Documentation" url = "https://cmu-delphi.github.io/delphi-epidata/api/covidcast_signals.html" weight = 6 + [menu.main.params] + external = true [[menu.main]] parent = "epidemic-signals" name = "Dashboard Builder" @@ -135,6 +136,8 @@ relativeURLs = false name = "Epidata API" url = "https://cmu-delphi.github.io/delphi-epidata/" weight = 9 + [menu.main.params] + external = true [[menu.main]] parent = "epidemic-signals" identifier = "ctis" @@ -161,16 +164,11 @@ relativeURLs = false name = "Suggest or request a new data source" url = "" weight = 13 -[[menu.main]] - parent = "epidemic-signals" - name = "Learn more" - url = "" - weight = 14 [[menu.main]] parent = "epidemic-signals" name = "Terms Of Use" url = "/epidemic-signals/terms-of-use" - weight = 15 + weight = 14 # nowcasting-and-forecasting [[menu.main]] @@ -183,16 +181,22 @@ relativeURLs = false name = "COVID-19 Forecasting" url = "https://covid19forecasthub.org/" weight = 2 + [menu.main.params] + external = true [[menu.main]] parent = "nowcasting-and-forecasting" name = "Flu Forecasting" url = "https://www.cdc.gov/flu/weekly/flusight/index.html" weight = 3 + [menu.main.params] + external = true [[menu.main]] parent = "nowcasting-and-forecasting" name = "Forecast Evaluation" url = "/forecast-eval/" weight = 4 + [menu.main.params] + external = true # for-modelers-and-developers @@ -207,11 +211,15 @@ relativeURLs = false name = "GitHub" url = "https://github.com/cmu-delphi/" weight = 3 + [menu.main.params] + external = true [[menu.main]] parent = "for-modelers-and-developers" name = "Epidata API" url = "https://cmu-delphi.github.io/delphi-epidata/" weight = 4 + [menu.main.params] + external = true [[menu.main]] parent = "for-modelers-and-developers" identifier = "r-packages" @@ -222,16 +230,22 @@ relativeURLs = false name = "epidatr" url = "https://cmu-delphi.github.io/epidatr/" weight = 10 + [menu.main.params] + external = true [[menu.main]] parent = "r-packages" name = "epiprocess" url = "https://cmu-delphi.github.io/epiprocess/" weight = 20 + [menu.main.params] + external = true [[menu.main]] parent = "r-packages" name = "epipredict" url = "https://cmu-delphi.github.io/epipredict/" weight = 30 + [menu.main.params] + external = true [[menu.main]] parent = "for-modelers-and-developers" identifier = "python-packages" @@ -242,6 +256,8 @@ relativeURLs = false name = "Util" url = "https://github.com/cmu-delphi/epidatpy" weight = 10 + [menu.main.params] + external = true [params] description = "Developing the Theory and Practice of Epidemiological Forecasting" diff --git a/themes/delphi/layouts/partials/nav.html b/themes/delphi/layouts/partials/nav.html index 1756dd0f..5c4bca75 100644 --- a/themes/delphi/layouts/partials/nav.html +++ b/themes/delphi/layouts/partials/nav.html @@ -16,7 +16,10 @@ {{- end -}}" > {{ if .HasChildren }} - + {{ partial "menu/item.html" . }} {{ partial "font-awesome.html" "solid/angle-down" }} @@ -24,7 +27,10 @@
      {{ range .Children }}
    • - + {{ partial "menu/item.html" . }} {{ if .HasChildren }} {{ partial "font-awesome.html" "solid/angle-right" }} @@ -35,7 +41,11 @@ {{ else }} - + {{ partial "menu/item.html" . }} {{ end }} From 78afb619583b433b982e2c7bfcee3883a6fa35e8 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Mon, 29 Jul 2024 19:40:22 +0300 Subject: [PATCH 13/33] Linting --- themes/delphi/layouts/partials/nav.html | 37 +++++++++++++++---------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/themes/delphi/layouts/partials/nav.html b/themes/delphi/layouts/partials/nav.html index 5c4bca75..118cd514 100644 --- a/themes/delphi/layouts/partials/nav.html +++ b/themes/delphi/layouts/partials/nav.html @@ -16,10 +16,12 @@ {{- end -}}" > {{ if .HasChildren }} - + {{ partial "menu/item.html" . }} {{ partial "font-awesome.html" "solid/angle-down" }} @@ -27,10 +29,12 @@
        {{ range .Children }}
      • - + {{ partial "menu/item.html" . }} {{ if .HasChildren }} {{ partial "font-awesome.html" "solid/angle-right" }} @@ -41,11 +45,12 @@ {{ else }} - + {{ partial "menu/item.html" . }} {{ end }} From 7571a8247ac0dd4fd6b7973cd4b677482caa2325 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Tue, 30 Jul 2024 20:00:46 +0300 Subject: [PATCH 14/33] Added hamburger navigation menu --- .../assets/css/layout/_header_footer.scss | 4 ++ themes/delphi/layouts/partials/nav.html | 46 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/themes/delphi/assets/css/layout/_header_footer.scss b/themes/delphi/assets/css/layout/_header_footer.scss index 8257ddb8..ac827870 100644 --- a/themes/delphi/assets/css/layout/_header_footer.scss +++ b/themes/delphi/assets/css/layout/_header_footer.scss @@ -81,6 +81,10 @@ li.nav-entry { .nav-dropdown-child { padding-left: 2.2em; + + ul.nestedmenu { + margin-left: 1.5em; + }; } .nav-dropdown-parent { diff --git a/themes/delphi/layouts/partials/nav.html b/themes/delphi/layouts/partials/nav.html index 118cd514..18854e82 100644 --- a/themes/delphi/layouts/partials/nav.html +++ b/themes/delphi/layouts/partials/nav.html @@ -76,5 +76,51 @@ {{ end }}
      + From b2f9f490544d8c68b3094949760e985e3fa8168d Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Tue, 30 Jul 2024 20:01:06 +0300 Subject: [PATCH 15/33] Linting --- themes/delphi/assets/css/layout/_header_footer.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/delphi/assets/css/layout/_header_footer.scss b/themes/delphi/assets/css/layout/_header_footer.scss index ac827870..c4a5d853 100644 --- a/themes/delphi/assets/css/layout/_header_footer.scss +++ b/themes/delphi/assets/css/layout/_header_footer.scss @@ -84,7 +84,7 @@ li.nav-entry { ul.nestedmenu { margin-left: 1.5em; - }; + } } .nav-dropdown-parent { From 74b84c88e3928affc74aafa52997c51aa2fa93f9 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Tue, 30 Jul 2024 20:21:25 +0300 Subject: [PATCH 16/33] Removed unwanted change --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4df12868..f42ed4ff 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "build:blog": "Rscript -e \"blogdown::build_site(local=FALSE, run_hugo=FALSE, build_rmd='md5sum')\"", "prebuild": "npm run clean", "build": "hugo --gc --minify", - "start": "hugo server -D --disableFastRender", + "start": "hugo server -D", "start:blog": "Rscript -e \"blogdown::serve_site(port=1313, browser=FALSE)\"", "format": "prettier *.* \"(.vscode|content|data|themes)/**\" --write", "lint": "prettier *.* \"(.vscode|content|data|themes)/**\" --check", @@ -47,4 +47,4 @@ "lint-staged": { "*.{js,scss,css,yaml,md,html,json,yml}": "prettier --write" } -} +} \ No newline at end of file From 0416be450d0935facb2fc2f580852bf117d391b6 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Tue, 30 Jul 2024 20:22:20 +0300 Subject: [PATCH 17/33] Linting --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f42ed4ff..594f5d6c 100644 --- a/package.json +++ b/package.json @@ -47,4 +47,4 @@ "lint-staged": { "*.{js,scss,css,yaml,md,html,json,yml}": "prettier --write" } -} \ No newline at end of file +} From 9352e88cfae69840cb0cfee5d54a8cf72c2f8318 Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Wed, 31 Jul 2024 12:43:52 +0300 Subject: [PATCH 18/33] Added 'external link' icons to the links that are going outside of the website --- .../assets/css/layout/_header_footer.scss | 4 ++ themes/delphi/layouts/partials/nav.html | 58 +++++++++++++++++-- 2 files changed, 56 insertions(+), 6 deletions(-) diff --git a/themes/delphi/assets/css/layout/_header_footer.scss b/themes/delphi/assets/css/layout/_header_footer.scss index c4a5d853..9d327030 100644 --- a/themes/delphi/assets/css/layout/_header_footer.scss +++ b/themes/delphi/assets/css/layout/_header_footer.scss @@ -231,3 +231,7 @@ ul.nestedmenu li > a { ul.nestedmenu li.active > a { color: rgb(247, 44, 114) !important; } + +div.external-link span > svg { + max-height: 13px!important; +} diff --git a/themes/delphi/layouts/partials/nav.html b/themes/delphi/layouts/partials/nav.html index 18854e82..99c74daa 100644 --- a/themes/delphi/layouts/partials/nav.html +++ b/themes/delphi/layouts/partials/nav.html @@ -23,6 +23,11 @@ {{ end }} > {{ partial "menu/item.html" . }} + {{ if .Params.external }} + + {{ end }} {{ partial "font-awesome.html" "solid/angle-down" }}
      @@ -36,6 +41,11 @@ {{ end }} > {{ partial "menu/item.html" . }} + {{ if .Params.external }} + + {{ end }} {{ if .HasChildren }} {{ partial "font-awesome.html" "solid/angle-right" }} {{ end }} @@ -52,6 +62,11 @@ {{ end }} > {{ partial "menu/item.html" . }} + {{ if .Params.external }} + + {{ end }}
    • {{ end }} @@ -70,6 +85,11 @@ {{ end }} > {{ partial "menu/item.html" . }} + {{ if .Params.external }} + + {{ end }} {{ end }} @@ -87,15 +107,35 @@ uk-nav-header {{- end -}} {{ if (eq $currentPage.Section .Identifier) -}}uk-active{{- end -}}" > - + {{ partial "menu/item.html" . }} + {{ if .Params.external }} + + {{ end }} {{ if .HasChildren }} {{ range .Children }} {{ if .HasChildren }} @@ -103,10 +143,17 @@ {{ end }} - {{ end }} {{ end }} {{ end }} From 090fa93a058876744dd9e6c0f8c1876cc020477b Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Wed, 31 Jul 2024 12:45:13 +0300 Subject: [PATCH 19/33] Linting --- themes/delphi/assets/css/layout/_header_footer.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/delphi/assets/css/layout/_header_footer.scss b/themes/delphi/assets/css/layout/_header_footer.scss index 9d327030..342f720e 100644 --- a/themes/delphi/assets/css/layout/_header_footer.scss +++ b/themes/delphi/assets/css/layout/_header_footer.scss @@ -233,5 +233,5 @@ ul.nestedmenu li.active > a { } div.external-link span > svg { - max-height: 13px!important; + max-height: 13px !important; } From 0a7dfea06e7f2da125c1a23a45b361f3996720ee Mon Sep 17 00:00:00 2001 From: Dmytro Trotsko Date: Wed, 31 Jul 2024 12:55:52 +0300 Subject: [PATCH 20/33] Fixed 'hybrid' moode hamburger menu --- themes/delphi/assets/css/layout/_header_footer.scss | 3 +++ themes/delphi/layouts/partials/nav.html | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/themes/delphi/assets/css/layout/_header_footer.scss b/themes/delphi/assets/css/layout/_header_footer.scss index 342f720e..92421144 100644 --- a/themes/delphi/assets/css/layout/_header_footer.scss +++ b/themes/delphi/assets/css/layout/_header_footer.scss @@ -100,6 +100,9 @@ li.nav-entry { .nav-burger { display: none; } + .nav-mobile { + top: 0 !important; + } } @media only screen and (max-width: $menu-mode-mobile-only) { diff --git a/themes/delphi/layouts/partials/nav.html b/themes/delphi/layouts/partials/nav.html index 99c74daa..65f99faf 100644 --- a/themes/delphi/layouts/partials/nav.html +++ b/themes/delphi/layouts/partials/nav.html @@ -99,7 +99,10 @@