diff --git a/config/_default/config.toml b/config/_default/config.toml index 5d5089e..11fac90 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -108,3 +108,5 @@ ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", " [module] [[module.imports]] path = "github.com/wowchemy/wowchemy-hugo-modules/wowchemy" + [[module.imports]] + path = "github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic" diff --git a/config/_default/params.toml b/config/_default/params.toml index 49d3e3b..01acd0d 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -147,7 +147,7 @@ address_format = "en-us" ############################ # Main menu alignment (l = left, c = center, r = right) and logo options. -main_menu = {align = "l", show_logo = true, highlight_active_link = true, show_language = false} +main_menu = {align = "l", show_logo = true, highlight_active_link = true, show_language = false, show_day_night = true, show_search = true} # Show estimated reading time for posts? (true/false) reading_time = true @@ -163,9 +163,6 @@ sharing = true # Page specific copyright licenses are also possible by adding this option to a page's front matter. copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"} -# Highlight the site author (superuser) in author lists? (true/false) -highlight_superuser = false - # Link authors to their profile page? (true/false) link_authors = true diff --git a/content/authors/admin/_index.md b/content/authors/admin/_index.md index 9b754e0..c513377 100644 --- a/content/authors/admin/_index.md +++ b/content/authors/admin/_index.md @@ -63,6 +63,9 @@ social: # Enter email to display Gravatar (if Gravatar enabled in Config) email: "" +# Highlight the author in author lists? (true/false) +highlight_name: false + # Organizational groups that you belong to (for People widget) # Set this to `[]` or comment out if you are not using People widget. user_groups: diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 70b6774..4d6e155 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -147,7 +147,7 @@ address_format = "en-us" ############################ # Main menu alignment (l = left, c = center, r = right) and logo options. -main_menu = {enable = true, align = "l", show_logo = true, highlight_active_link = true, show_language = false} +main_menu = {enable = true, align = "l", show_logo = true, highlight_active_link = true, show_language = false, show_day_night = true, show_search = true} # Show estimated reading time for posts? (true/false) reading_time = true @@ -163,9 +163,6 @@ sharing = true # Page specific copyright licenses are also possible by adding this option to a page's front matter. copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"} -# Highlight the site author (superuser) in author lists? (true/false) -highlight_superuser = false - # Link authors to their profile page? (true/false) link_authors = true diff --git a/exampleSite/content/authors/admin/_index.md b/exampleSite/content/authors/admin/_index.md index 5cce962..de76c57 100644 --- a/exampleSite/content/authors/admin/_index.md +++ b/exampleSite/content/authors/admin/_index.md @@ -66,6 +66,9 @@ social: # Email for Contact widget or Gravatar email: "" +# Highlight the author in author lists? (true/false) +highlight_name: false + # Organizational groups that you belong to (for People widget) # Remove this if you are not using the People widget. user_groups: diff --git a/exampleSite/go.mod b/exampleSite/go.mod index fe6840b..e2e21c5 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -2,4 +2,4 @@ module github.com/wowchemy/starter-academic/exampleSite go 1.15 -require github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20200902195927-86da39719ccd // indirect +require github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201001144923-e58ee0ffc576 // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum index 9062bcc..a16893a 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -1,2 +1,2 @@ -github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20200902195927-86da39719ccd h1:ib4vY08iCxJQlQtf0m/Bz9Ha2HJ83te60V9NCnTR6VE= -github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20200902195927-86da39719ccd/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= +github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201001144923-e58ee0ffc576 h1:r97j+QgxENainAzooKFwaHePl7UBBtZ4RFh6+Ks2x3U= +github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201001144923-e58ee0ffc576/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= diff --git a/exampleSite/resources/_gen/assets/scss/scss/main.scss_76ac6956597c32fec7ddf60d408db3ab.content b/exampleSite/resources/_gen/assets/scss/scss/main.scss_76ac6956597c32fec7ddf60d408db3ab.content index 674a5ba..0132a2f 100644 --- a/exampleSite/resources/_gen/assets/scss/scss/main.scss_76ac6956597c32fec7ddf60d408db3ab.content +++ b/exampleSite/resources/_gen/assets/scss/scss/main.scss_76ac6956597c32fec7ddf60d408db3ab.content @@ -1790,11 +1790,11 @@ fieldset:disabled a.btn { color: #fff; background-color: #2962ff; border-color: #2962ff; } - .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, .show > .btn-primary.dropdown-toggle { + .btn-primary:not(:disabled):not(.disabled):active, .btn-primary.active:not(:disabled):not(.disabled), .show > .btn-primary.dropdown-toggle { color: #fff; background-color: #0041f5; border-color: #003ee8; } - .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus, .show > .btn-primary.dropdown-toggle:focus { + .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary.active:not(:disabled):not(.disabled):focus, .show > .btn-primary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(73, 122, 255, 0.5); } .btn-secondary { @@ -1814,11 +1814,11 @@ fieldset:disabled a.btn { color: #fff; background-color: #6c757d; border-color: #6c757d; } - .btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, .show > .btn-secondary.dropdown-toggle { + .btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary.active:not(:disabled):not(.disabled), .show > .btn-secondary.dropdown-toggle { color: #fff; background-color: #545b62; border-color: #4e555b; } - .btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, .show > .btn-secondary.dropdown-toggle:focus { + .btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary.active:not(:disabled):not(.disabled):focus, .show > .btn-secondary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5); } .btn-success { @@ -1838,11 +1838,11 @@ fieldset:disabled a.btn { color: #fff; background-color: #28a745; border-color: #28a745; } - .btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active, .show > .btn-success.dropdown-toggle { + .btn-success:not(:disabled):not(.disabled):active, .btn-success.active:not(:disabled):not(.disabled), .show > .btn-success.dropdown-toggle { color: #fff; background-color: #1e7e34; border-color: #1c7430; } - .btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus, .show > .btn-success.dropdown-toggle:focus { + .btn-success:not(:disabled):not(.disabled):active:focus, .btn-success.active:not(:disabled):not(.disabled):focus, .show > .btn-success.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5); } .btn-info { @@ -1862,11 +1862,11 @@ fieldset:disabled a.btn { color: #fff; background-color: #17a2b8; border-color: #17a2b8; } - .btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active, .show > .btn-info.dropdown-toggle { + .btn-info:not(:disabled):not(.disabled):active, .btn-info.active:not(:disabled):not(.disabled), .show > .btn-info.dropdown-toggle { color: #fff; background-color: #117a8b; border-color: #10707f; } - .btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus, .show > .btn-info.dropdown-toggle:focus { + .btn-info:not(:disabled):not(.disabled):active:focus, .btn-info.active:not(:disabled):not(.disabled):focus, .show > .btn-info.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5); } .btn-warning { @@ -1886,11 +1886,11 @@ fieldset:disabled a.btn { color: #212529; background-color: #ffc107; border-color: #ffc107; } - .btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active, .show > .btn-warning.dropdown-toggle { + .btn-warning:not(:disabled):not(.disabled):active, .btn-warning.active:not(:disabled):not(.disabled), .show > .btn-warning.dropdown-toggle { color: #212529; background-color: #d39e00; border-color: #c69500; } - .btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus, .show > .btn-warning.dropdown-toggle:focus { + .btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning.active:not(:disabled):not(.disabled):focus, .show > .btn-warning.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5); } .btn-danger { @@ -1910,11 +1910,11 @@ fieldset:disabled a.btn { color: #fff; background-color: #dc3545; border-color: #dc3545; } - .btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active, .show > .btn-danger.dropdown-toggle { + .btn-danger:not(:disabled):not(.disabled):active, .btn-danger.active:not(:disabled):not(.disabled), .show > .btn-danger.dropdown-toggle { color: #fff; background-color: #bd2130; border-color: #b21f2d; } - .btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus, .show > .btn-danger.dropdown-toggle:focus { + .btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger.active:not(:disabled):not(.disabled):focus, .show > .btn-danger.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.5); } .btn-light { @@ -1934,11 +1934,11 @@ fieldset:disabled a.btn { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; } - .btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active, .show > .btn-light.dropdown-toggle { + .btn-light:not(:disabled):not(.disabled):active, .btn-light.active:not(:disabled):not(.disabled), .show > .btn-light.dropdown-toggle { color: #212529; background-color: #dae0e5; border-color: #d3d9df; } - .btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus, .show > .btn-light.dropdown-toggle:focus { + .btn-light:not(:disabled):not(.disabled):active:focus, .btn-light.active:not(:disabled):not(.disabled):focus, .show > .btn-light.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5); } .btn-dark { @@ -1958,11 +1958,11 @@ fieldset:disabled a.btn { color: #fff; background-color: #343a40; border-color: #343a40; } - .btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active, .show > .btn-dark.dropdown-toggle { + .btn-dark:not(:disabled):not(.disabled):active, .btn-dark.active:not(:disabled):not(.disabled), .show > .btn-dark.dropdown-toggle { color: #fff; background-color: #1d2124; border-color: #171a1d; } - .btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus, .show > .btn-dark.dropdown-toggle:focus { + .btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark.active:not(:disabled):not(.disabled):focus, .show > .btn-dark.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5); } .btn-outline-primary { @@ -1977,11 +1977,11 @@ fieldset:disabled a.btn { .btn-outline-primary.disabled, .btn-outline-primary:disabled { color: #2962ff; background-color: transparent; } - .btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active, .show > .btn-outline-primary.dropdown-toggle { + .btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary.active:not(:disabled):not(.disabled), .show > .btn-outline-primary.dropdown-toggle { color: #fff; background-color: #2962ff; border-color: #2962ff; } - .btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-primary.dropdown-toggle:focus { + .btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary.active:not(:disabled):not(.disabled):focus, .show > .btn-outline-primary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(41, 98, 255, 0.5); } .btn-outline-secondary { @@ -1996,11 +1996,11 @@ fieldset:disabled a.btn { .btn-outline-secondary.disabled, .btn-outline-secondary:disabled { color: #6c757d; background-color: transparent; } - .btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled).active, .show > .btn-outline-secondary.dropdown-toggle { + .btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary.active:not(:disabled):not(.disabled), .show > .btn-outline-secondary.dropdown-toggle { color: #fff; background-color: #6c757d; border-color: #6c757d; } - .btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-secondary.dropdown-toggle:focus { + .btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary.active:not(:disabled):not(.disabled):focus, .show > .btn-outline-secondary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); } .btn-outline-success { @@ -2015,11 +2015,11 @@ fieldset:disabled a.btn { .btn-outline-success.disabled, .btn-outline-success:disabled { color: #28a745; background-color: transparent; } - .btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active, .show > .btn-outline-success.dropdown-toggle { + .btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success.active:not(:disabled):not(.disabled), .show > .btn-outline-success.dropdown-toggle { color: #fff; background-color: #28a745; border-color: #28a745; } - .btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-success.dropdown-toggle:focus { + .btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success.active:not(:disabled):not(.disabled):focus, .show > .btn-outline-success.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); } .btn-outline-info { @@ -2034,11 +2034,11 @@ fieldset:disabled a.btn { .btn-outline-info.disabled, .btn-outline-info:disabled { color: #17a2b8; background-color: transparent; } - .btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active, .show > .btn-outline-info.dropdown-toggle { + .btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info.active:not(:disabled):not(.disabled), .show > .btn-outline-info.dropdown-toggle { color: #fff; background-color: #17a2b8; border-color: #17a2b8; } - .btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-info.dropdown-toggle:focus { + .btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info.active:not(:disabled):not(.disabled):focus, .show > .btn-outline-info.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); } .btn-outline-warning { @@ -2053,11 +2053,11 @@ fieldset:disabled a.btn { .btn-outline-warning.disabled, .btn-outline-warning:disabled { color: #ffc107; background-color: transparent; } - .btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning:not(:disabled):not(.disabled).active, .show > .btn-outline-warning.dropdown-toggle { + .btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning.active:not(:disabled):not(.disabled), .show > .btn-outline-warning.dropdown-toggle { color: #212529; background-color: #ffc107; border-color: #ffc107; } - .btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-warning.dropdown-toggle:focus { + .btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning.active:not(:disabled):not(.disabled):focus, .show > .btn-outline-warning.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); } .btn-outline-danger { @@ -2072,11 +2072,11 @@ fieldset:disabled a.btn { .btn-outline-danger.disabled, .btn-outline-danger:disabled { color: #dc3545; background-color: transparent; } - .btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger:not(:disabled):not(.disabled).active, .show > .btn-outline-danger.dropdown-toggle { + .btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger.active:not(:disabled):not(.disabled), .show > .btn-outline-danger.dropdown-toggle { color: #fff; background-color: #dc3545; border-color: #dc3545; } - .btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-danger.dropdown-toggle:focus { + .btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger.active:not(:disabled):not(.disabled):focus, .show > .btn-outline-danger.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); } .btn-outline-light { @@ -2091,11 +2091,11 @@ fieldset:disabled a.btn { .btn-outline-light.disabled, .btn-outline-light:disabled { color: #f8f9fa; background-color: transparent; } - .btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light:not(:disabled):not(.disabled).active, .show > .btn-outline-light.dropdown-toggle { + .btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light.active:not(:disabled):not(.disabled), .show > .btn-outline-light.dropdown-toggle { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; } - .btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-light.dropdown-toggle:focus { + .btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light.active:not(:disabled):not(.disabled):focus, .show > .btn-outline-light.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); } .btn-outline-dark { @@ -2110,11 +2110,11 @@ fieldset:disabled a.btn { .btn-outline-dark.disabled, .btn-outline-dark:disabled { color: #343a40; background-color: transparent; } - .btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled).active, .show > .btn-outline-dark.dropdown-toggle { + .btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark.active:not(:disabled):not(.disabled), .show > .btn-outline-dark.dropdown-toggle { color: #fff; background-color: #343a40; border-color: #343a40; } - .btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus, .show > .btn-outline-dark.dropdown-toggle:focus { + .btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark.active:not(:disabled):not(.disabled):focus, .show > .btn-outline-dark.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); } .btn-link { @@ -2149,9 +2149,9 @@ fieldset:disabled a.btn { .btn-block + .btn-block { margin-top: 0.5rem; } -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { +input.btn-block[type="submit"], +input.btn-block[type="reset"], +input.btn-block[type="button"] { width: 100%; } .fade { @@ -7445,27 +7445,6 @@ a[data-fancybox] { .dark .post-nav-item a { color: #ddd; } -/************************************************* - * Footer - **************************************************/ -footer { - margin: 4rem 0 0; - padding: 2rem 0; - width: 100%; } - -footer p { - font-size: 0.75rem; - text-align: center; } - -site-footer, -footer a.back-to-top i { - color: rgba(0, 0, 0, 0.54); } - -.dark site-footer, -.dark footer a.back-to-top i, -.dark .docs .body-footer { - color: rgba(255, 255, 255, 0.54); } - /************************************************** * Tags/Labels **************************************************/ @@ -7550,7 +7529,7 @@ a.badge:hover { .btn-toolbar .btn.btn-primary.active { background-color: #0041f5 !important; } -.btn-primary:not(:disabled):not(.disabled).active:focus, +.btn-primary.active:not(:disabled):not(.disabled):focus, .btn-primary:not(:disabled):not(.disabled):active:focus, .show > .btn-primary.dropdown-toggle:focus { box-shadow: 0 0 0 0.2rem #5c87ff; } @@ -7676,6 +7655,27 @@ div.alert a { line-height: 1; position: relative; } +footer { + margin: 4rem 0 0; + padding: 2rem 0; + width: 100%; } + +footer p { + font-size: 0.75rem; + text-align: center; } + +footer .powered-by { + font-size: 0.67rem; } + +.site-footer, +footer a.back-to-top i { + color: rgba(0, 0, 0, 0.54); } + +.dark .site-footer, +.dark footer a.back-to-top i, +.dark .docs .body-footer { + color: rgba(255, 255, 255, 0.54); } + .footer-license-icons { display: flex; flex-direction: row; diff --git a/go.mod b/go.mod index b644055..9efb570 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,7 @@ module github.com/wowchemy/starter-academic go 1.15 -require github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20200902195927-86da39719ccd // indirect +require ( + github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201001144923-e58ee0ffc576 // indirect + github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201001144923-e58ee0ffc576 // indirect +) diff --git a/go.sum b/go.sum index 9062bcc..5ea1745 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,3 @@ -github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20200902195927-86da39719ccd h1:ib4vY08iCxJQlQtf0m/Bz9Ha2HJ83te60V9NCnTR6VE= -github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20200902195927-86da39719ccd/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= +github.com/wowchemy/wowchemy-hugo-modules/netlify-cms-academic v0.0.0-20201001144923-e58ee0ffc576/go.mod h1:TU3QDPUdBSQnvDP5QVCwjAkBIdVMS/bKFA8jr3eI5AY= +github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201001144923-e58ee0ffc576 h1:r97j+QgxENainAzooKFwaHePl7UBBtZ4RFh6+Ks2x3U= +github.com/wowchemy/wowchemy-hugo-modules/wowchemy v0.0.0-20201001144923-e58ee0ffc576/go.mod h1:H22qfH9qj3FWwsk7+bAZpmT24yRGNQURah2/IRwjbn8= diff --git a/netlify.toml b/netlify.toml index 4d5287d..6437f4c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" [build.environment] - HUGO_VERSION = "0.74.3" + HUGO_VERSION = "0.75.1" HUGO_ENABLEGITINFO = "true" [context.production.environment] diff --git a/static/admin/config.yml b/static/admin/config.yml deleted file mode 100644 index 00a9e06..0000000 --- a/static/admin/config.yml +++ /dev/null @@ -1,303 +0,0 @@ -backend: - name: git-gateway - branch: master -media_folder: 'static/media/' -public_folder: 'media' -collections: - - name: authors - label: Authors - label_singular: Author - folder: 'content/authors' - path: '{{slug}}/_index' - create: true # Allow users to create new documents in this collection - fields: # The fields each document in this collection have - - {label: "Display name (such as your full name)", name: "title", widget: "string"} - - {label: "Position or tagline (such as Professor of AI)", name: "role", widget: "string", required: false} - - label: "Avatar (upload an image named `avatar.jpg/png`)" - name: "avatar_filename" - widget: "image" - default: "avatar" - required: false - media_library: - config: - multiple: false - - {label: "Short biography (shown in author boxes)", name: "bio", widget: "string", required: false} - - {label: "Full biography (shown in About widget)", name: "body", widget: "markdown", required: false} - - label: "Interests (shown in About widget)" - name: "interests" - required: false - widget: "list" - - label: Social links - name: social - required: false - widget: list - fields: - - {label: Link, name: link, widget: string} - - label: Icon pack - name: icon_pack - widget: select - multiple: false - options: - - {label: "None", value: ""} - - {label: "Solid", value: "fas"} - - {label: "Regular", value: "far"} - - {label: "Brand", value: "fab"} - - {label: "Academic", value: "ai"} - - {label: Icon (see https://sourcethemes.com/academic/docs/page-builder/#icons), name: icon, widget: string} - - label: "Organizations you belong to or are affiliated with (shown in About widget)" - name: "organizations" - required: false - widget: list - fields: - - {label: Organization, name: name, widget: string, required: true} - - {label: Link, name: url, widget: string, required: false} - - label: "Education" - name: "education" - required: false - widget: object - fields: - - label: "Courses" - name: "courses" - required: false - widget: list - fields: - - {label: Course, name: course, widget: string, required: true} - - {label: Institution, name: institution, widget: string, required: true} - - {label: Year, name: year, widget: number, valueType: int, required: false} - - {label: "Email (to use a Gravatar.com avatar)", name: "email", widget: "string", required: false} - - label: "Super user (is this the primary site user?)" - name: "superuser" - widget: "boolean" - default: false - - label: "User groups (only for organization websites)" - name: "user_groups" - required: false - widget: "list" - - name: posts - label: Posts - label_singular: Post - folder: 'content/post' - path: '{{slug}}/index' - create: true # Allow users to create new documents in this collection - fields: # The fields each document in this collection have - - {label: "Title", name: "title", widget: "string"} - - {label: "Subtitle", name: "subtitle", widget: "string", required: false} - - {label: "Body", name: "body", widget: "markdown"} - - {label: "Publish this page on", name: "date", widget: "datetime"} - - {label: "Summary", name: "summary", widget: "markdown", required: false} - - label: "Draft" - name: "draft" - widget: "boolean" - default: false - - label: "Featured" - name: "featured" - widget: "boolean" - default: false - - label: "Authors" - name: "authors" - required: false - widget: "list" - - label: "Tags" - name: "tags" - required: false - widget: "list" - - label: "Categories" - name: "categories" - required: false - widget: "list" - - label: "Projects" - name: "projects" - required: false - widget: "list" - - label: "Featured Image" - name: "image" - required: false - widget: object - fields: - - label: "Upload an image named `featured.jpg/png`" - name: "filename" - widget: "image" - default: "featured" - media_library: - config: - multiple: false - - {label: Caption, name: caption, widget: string, required: false} - - {label: Description for screen readers, name: alt_text, widget: string, required: false} - - {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"} - - {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false} - - name: projects - label: Projects - label_singular: Project - folder: 'content/project' - path: '{{slug}}/index' - create: true # Allow users to create new documents in this collection - fields: # The fields each document in this collection have - - {label: "Title", name: "title", widget: "string"} - - {label: "Subtitle", name: "subtitle", widget: "string", required: false} - - {label: "Body", name: "body", widget: "markdown", required: false} - - {label: "Publish this page on", name: "date", widget: "datetime"} - - {label: "Summary", name: "summary", widget: "markdown", required: false} - - label: "Draft" - name: "draft" - widget: "boolean" - default: false - - label: "Featured" - name: "featured" - widget: "boolean" - default: false - - label: "Authors" - name: "authors" - required: false - widget: "list" - - label: "Tags" - name: "tags" - required: false - widget: "list" - - label: "Categories" - name: "categories" - required: false - widget: "list" - - {label: "External link (optional - replaces link to project page)", name: "external_link", widget: "string"} - - label: Links - name: links - required: false - widget: list - fields: - - {label: Link, name: url, widget: string} - - {label: Link text, name: name, widget: string, required: false} - - label: Icon pack - name: icon_pack - widget: select - multiple: false - required: false - options: - - {label: "None", value: ""} - - {label: "Solid", value: "fas"} - - {label: "Regular", value: "far"} - - {label: "Brand", value: "fab"} - - {label: "Academic", value: "ai"} - - {label: "Icon (see https://sourcethemes.com/academic/docs/page-builder/#icons)", name: icon, widget: string, required: false} - - label: "Featured Image" - name: "image" - required: false - widget: object - fields: - - label: "Upload an image named `featured.jpg/png`" - name: "filename" - widget: "image" - default: "featured" - media_library: - config: - multiple: false - - {label: Caption, name: caption, widget: string, required: false} - - {label: Description for screen readers, name: alt_text, widget: string, required: false} - - {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"} - - {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false} - - name: talks - label: Talks - label_singular: Talk - folder: 'content/talk' - path: '{{slug}}/index' - create: true # Allow users to create new documents in this collection - fields: # The fields each document in this collection have - - {label: "Title", name: "title", widget: "string"} - - {label: "Abstract", name: "abstract", widget: "text"} - - {label: "Where", name: "location", widget: "text"} - - {label: "From", name: "date", widget: "datetime"} - - {label: "To", name: "date_end", widget: "datetime", default: ""} - - {label: "All day event?", name: "all_day", widget: "boolean", default: false} - - label: Links/Tickets - name: links - required: false - widget: list - fields: - - {label: Link, name: url, widget: string} - - {label: Link text, name: name, widget: string, required: false} - - label: Icon pack - name: icon_pack - widget: select - multiple: false - required: false - options: - - {label: "None", value: ""} - - {label: "Solid", value: "fas"} - - {label: "Regular", value: "far"} - - {label: "Brand", value: "fab"} - - {label: "Academic", value: "ai"} - - {label: "Icon (see https://sourcethemes.com/academic/docs/page-builder/#icons)", name: icon, widget: string, required: false} - - {label: "Event", name: "event", widget: "string"} - - {label: "Event link", name: "event_url", widget: "string"} - - {label: "Publish this page on", name: "publishDate", widget: "datetime"} - - {label: "Markdown slides (reference a deck in 'content/slides/')", name: "slides", widget: "string", required: false} - - label: "Draft" - name: "draft" - widget: "boolean" - default: false - - label: "Featured" - name: "featured" - widget: "boolean" - default: false - - label: "Authors" - name: "authors" - required: false - widget: "list" - - label: "Tags" - name: "tags" - required: false - widget: "list" - - label: "Categories" - name: "categories" - required: false - widget: "list" - - label: "Projects (reference projects in 'content/project/')" - name: "projects" - required: false - widget: "list" - - label: "Featured Image" - name: "image" - required: false - widget: object - fields: - - label: "Upload an image named `featured.jpg/png`" - name: "filename" - widget: "image" - default: "featured" - media_library: - config: - multiple: false - - {label: Caption, name: caption, widget: string, required: false} - - {label: Description for screen readers, name: alt_text, widget: string, required: false} - - {label: "Where's the focal point in the image? Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.", name: focal_point, widget: string, required: false, default: "Smart"} - - {label: Thumbnail Only?, name: preview_only, widget: boolean, default: false} - - {label: "Details", name: "body", widget: "markdown", required: false} - - name: pages - label: "Pages" - files: - - file: "content/privacy.md" - label: "Privacy Policy" - name: "privacy" - fields: - - {label: "Title", name: "title", widget: "string"} - - {label: "Publish Date", name: "date", widget: "datetime"} - - {label: "Subtitle", name: "subtitle", widget: "string", required: false} - - {label: "Summary", name: "summary", widget: "markdown", required: false} - - label: "Draft" - name: "draft" - required: false - widget: "boolean" - default: false - - {label: "Body", name: "body", widget: "markdown"} - - file: "content/terms.md" - label: "Terms" - name: "terms" - fields: - - {label: "Title", name: "title", widget: "string"} - - {label: "Publish Date", name: "date", widget: "datetime"} - - {label: "Subtitle", name: "subtitle", widget: "string", required: false} - - {label: "Summary", name: "summary", widget: "markdown", required: false} - - label: "Draft" - name: "draft" - required: false - widget: "boolean" - default: false - - {label: "Body", name: "body", widget: "markdown"} diff --git a/static/admin/index.html b/static/admin/index.html deleted file mode 100644 index f0934d7..0000000 --- a/static/admin/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - Content Manager | Academic - - - - - - - -