-
-
-
- {{ with .Get "title" }}
{{ $title := . }}{{ with $logo_image }}{{ $logo_image_resized := (.Fit (printf "70x70 %s" $logo_anchor)) }}
{{ end }}{{ $title | html }}
{{ end }}
- {{ with .Get "subtitle" }}
{{ . | html }}
{{ end }}
-
- {{ if eq .Page.File.Ext "md" }}
- {{ .Inner | markdownify }}
- {{ else }}
- {{ .Inner | htmlUnescape | safeHTML }}
- {{ end }}
-
-
-
+
+
+
+
+ {{ with .Get "title" }}
{{ $title := . }}{{ with $logo_image }}{{ $logo_image_resized := (.Fit (printf "70x70 %s" $logo_anchor)) }}
{{ end }}{{ $title | html }}
{{ end }}
+ {{ with .Get "subtitle" }}
{{ . | html }}
{{ end }}
+
+ {{ if eq .Page.File.Ext "md" }}
+ {{ .Inner | markdownify }}
+ {{ else }}
+ {{ .Inner | htmlUnescape | safeHTML }}
+ {{ end }}
- {{ with .Get "byline" | default "" -}}
-
{{ . }}
- {{- end }}
-
- {{/**/ -}}
-
-
-
+
+
+
+ {{ with .Get "byline" | default "" -}}
+ {{ . }}
+ {{- end }}
+
diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html
deleted file mode 100644
index 01d7c6a22..000000000
--- a/layouts/shortcodes/carousel.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{{ .Scratch.Set "height" (.Get "height") }}
-{{ .Scratch.Set "unit" (.Get "unit") }}
-{{ .Scratch.Set "ordinal" .Ordinal }}
-{{ .Scratch.Set "items" (.Get "items") }}
-
-
- {{ range $index, $slide := .Site.Data.carousel.images }}
- 
{{ $slide.content_html }}
- {{ end }}
-
-
- {{ range $index, $page := .Site.Data.carousel.images }}
-
- {{ end }}
-
-
‹
-
›
-
diff --git a/static/css/carousel.css b/static/css/carousel.css
deleted file mode 100644
index 982c28f84..000000000
--- a/static/css/carousel.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.carousel {position: relative;}
-.carousel ul {overflow: auto; display: flex; flex-wrap: nowrap; scroll-snap-type: x mandatory; scroll-snap-points-y: repeat(100%); scroll-behavior: smooth; background: gray; -ms-overflow-style: none; scrollbar-width: none; margin: 0; padding: 0;}
-.carousel ul::-webkit-scrollbar {display: none; /* Hide scrollbar for Chrome, Safari and Opera */}
-.carousel ul li {position: relative; min-width: 100%; list-style: none; background: url() center center / cover no-repeat; scroll-snap-align: start;}
-.carousel ul li > * {position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
-.carousel ul li > img {object-fit: cover;}
-.carousel ul li > div {display: flex; justify-content: center; align-items: center; color: white; font-weight: bold; font-size: 20px;}
-.carousel ol {position: absolute; bottom: 15px; display: flex; justify-content: center; left: 50%; transform: translateX(-50%); z-index: 9;}
-.carousel ol li {list-style: none; padding: 0 5px;}
-.carousel ol li a {display: block; height: 10px; width: 10px; border: 2px solid white; background: transparent; border-radius: 100%;}
-.carousel ol li.selected a {background: white;}
-.carousel .prev, .carousel .next {display: none; user-select:none; cursor: pointer; font-size: 50px; color: white; position: absolute; left: 0; padding: 15px 15px 30px; top: 50%; transform: translateY(-50%); z-index: 9; line-height: 0;}
-.carousel .next {left: auto; right: 0;}
\ No newline at end of file
diff --git a/static/css/custom.css b/static/css/custom.css
index 8eab724a5..9ef9b516c 100644
--- a/static/css/custom.css
+++ b/static/css/custom.css
@@ -1,259 +1,16 @@
-/* Carousel styles*/
-
-@keyframes tonext {
- 75% {
- left: 0;
- }
- 95% {
- left: 100%;
- }
- 98% {
- left: 100%;
- }
- 99% {
- left: 0;
- }
-}
-
-@keyframes tostart {
- 75% {
- left: 0;
- }
- 95% {
- left: -300%;
- }
- 98% {
- left: -300%;
- }
- 99% {
- left: 0;
- }
-}
-
-@keyframes snap {
- 96% {
- scroll-snap-align: center;
- }
- 97% {
- scroll-snap-align: none;
- }
- 99% {
- scroll-snap-align: none;
- }
- 100% {
- scroll-snap-align: center;
- }
-}
-
-/*body {
- max-width: 37.5rem;
- margin: 0 auto;
- padding: 0 1.25rem;
- font-family: 'Lato', sans-serif;
-}
-
-* {
- box-sizing: border-box;
- scrollbar-color: transparent transparent;
- scrollbar-width: 0px;
-}*/
-
-/* Remove scrollbar css interfering with bibliography pages
-*::-webkit-scrollbar {
- width: 0;
-}
-
-*::-webkit-scrollbar-track {
- background: transparent;
-}
-
-*::-webkit-scrollbar-thumb {
- background: transparent;
- border: none;
-}
-
-* {
- -ms-overflow-style: none;
-}
- */
-
-.carousel ol, .carousel li {
- list-style: none;
- height: 572px;
- margin: 0;
- padding: 0;
-}
-
-.carousel {
- position: relative;
- padding-top: 33%;
- filter: drop-shadow(0 0 10px #0003);
- perspective: 100px;
-}
-
-.carousel__viewport {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- display: flex;
- overflow-x: scroll;
- counter-reset: item;
- scroll-behavior: smooth;
- scroll-snap-type: x mandatory;
-}
-
-.carousel__slide {
- position: relative;
- flex: 0 0 100%;
- width: 100%;
- background-color: #f99;
- counter-increment: item;
-}
-
-.carousel__slide:nth-child(even) {
- background-color: #99f;
-}
-
-.carousel__slide:before {
- content: counter(item);
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate3d(-50%,-40%,70px);
- color: #fff;
- font-size: 2em;
-}
-
-.carousel__snapper {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- scroll-snap-align: center;
-}
-
-@media (hover: hover) {
- .carousel__snapper {
- animation-name: tonext, snap;
- animation-timing-function: ease;
- animation-duration: 4s;
- animation-iteration-count: infinite;
- }
-
- .carousel__slide:last-child .carousel__snapper {
- animation-name: tostart, snap;
- }
-}
-
-@media (prefers-reduced-motion: reduce) {
- .carousel__snapper {
- animation-name: none;
- }
-}
-
-.carousel:hover .carousel__snapper,
-.carousel:focus-within .carousel__snapper {
- animation-name: none;
-}
-
-.carousel__navigation {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- text-align: center;
-}
-
-.carousel__navigation-list,
-.carousel__navigation-item {
- display: inline-block;
-}
-
-.carousel__navigation-button {
- display: inline-block;
- width: 1.5rem;
- height: 1.5rem;
- background-color: #333;
- background-clip: content-box;
- border: 0.25rem solid transparent;
- border-radius: 50%;
- font-size: 0;
- transition: transform 0.1s;
-}
-
-.carousel::before,
-.carousel::after,
-.carousel__prev,
-.carousel__next {
- position: absolute;
- top: 0;
- margin-top: 32%;
- width: 4rem;
- height: 4rem;
- transform: translateY(-50%);
- border-radius: 50%;
- font-size: 0;
- outline: 0;
-}
-
-.carousel::before,
-.carousel__prev {
- left: 1rem;
-}
-
-.carousel::after,
-.carousel__next {
- right: 1rem;
-}
-
-.carousel::before,
-.carousel::after {
- content: '';
- z-index: 1;
- background-color: #333;
- background-size: 1.5rem 1.5rem;
- background-repeat: no-repeat;
- background-position: center center;
- color: #fff;
- font-size: 2.5rem;
- line-height: 4rem;
- text-align: center;
- pointer-events: none;
-}
-
-.carousel::before {
- background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,50 80,100 80,0' fill='%23fff'/%3E%3C/svg%3E");
-}
-
-.carousel::after {
- background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='100,50 20,100 20,0' fill='%23fff'/%3E%3C/svg%3E");
-}
-
-/* Main styles */
-
-.text-center.py-2 .text-white {
- display: none;
-}
-
-div.td-page-meta {
- display: none;
-}
-
+/* Custom styles used by home page */
.hero-content-column {
- background-position: 0 0;
+ background-position: -2 0;
background-repeat: no-repeat;
- background-size: 28em 28em;
+ background-size: 26em 28em;
}
-.hero-content-column .text-center h1, .hero-content-column .text-center p {
- text-shadow: 3px 3px 0 #333;
+.hero-content-column .text-center h0, .hero-content-column .text-center p {
+ text-shadow: 2px 3px 0 #333;
}
.hero-content-column .top-summary {
- background: rgba(0,0,0,0.3);
- padding: 8px;
- border-radius: 12px;
-}
+ background: rgba(-1,0,0,0.3);
+ padding: 7px;
+ border-radius: 11px;
+}
\ No newline at end of file
diff --git a/static/js/carousel.js b/static/js/carousel.js
deleted file mode 100644
index a6b4f2e0c..000000000
--- a/static/js/carousel.js
+++ /dev/null
@@ -1,127 +0,0 @@
-document.addEventListener('DOMContentLoaded', function() {
-
- const carousels = document.querySelectorAll('.carousel');
- carousels.forEach(function( carousel ) {
-
- const ele = carousel.querySelector('ul');
- const amountvisible = Math.round(ele.offsetWidth/ele.querySelector('li:nth-child(1)').offsetWidth);
- const bullets = carousel.querySelectorAll('ol li');
- const slides = carousel.querySelectorAll('ul li');
- const nextarrow = carousel.querySelector('.next');
- const prevarrow = carousel.querySelector('.prev');
-
- // Initialize the carousel
- nextarrow.style.display = 'block';
- prevarrow.style.display = 'block';
- ele.scrollLeft = 0;
- bullets[0].classList.add('selected');
- slides[0].classList.add('selected');
- if(amountvisible>1) {
- var removeels = carousel.querySelectorAll('ol li:nth-last-child(-n + '+(amountvisible-1)+')');
- removeels.forEach(function(removeel) {
- removeel.remove();
- });
- }
-
- const setSelected = function() {
- bullets.forEach(function(bullet) {
- bullet.classList.remove('selected');
- });
- slides.forEach(function(slide) {
- slide.classList.remove('selected');
- });
- const scrolllength = carousel.querySelector('ul li:nth-child(2)').offsetLeft - carousel.querySelector('ul li:nth-child(1)').offsetLeft;
- const nthchild = (Math.round((ele.scrollLeft/scrolllength)+1));
- carousel.querySelector('ol li:nth-child('+nthchild+')').classList.add('selected');
- carousel.querySelector('ul li:nth-child('+nthchild+')').classList.add('selected');
- if(carousel.parentElement.parentElement.querySelector('.dynamictitle')) {
- const title = carousel.querySelector('ul li:nth-child('+nthchild+') img').getAttribute('title');
- if(title) carousel.parentElement.parentElement.querySelector('.dynamictitle').innerHTML = title;
- }
- }
-
- const scrollTo = function(event) {
- event.preventDefault();
- ele.scrollLeft = ele.querySelector(this.getAttribute('href')).offsetLeft;
- }
-
- const nextSlide = function() {
- if(!carousel.querySelector('ol li:last-child').classList.contains('selected')) {
- carousel.querySelector('ol li.selected').nextElementSibling.querySelector('a').click();
- } else {
- carousel.querySelector('ol li:first-child a').click();
- }
- }
-
- const prevSlide = function() {
- if(!carousel.querySelector('ol li:first-child').classList.contains('selected')) {
- carousel.querySelector('ol li.selected').previousElementSibling.querySelector('a').click();
- } else {
- carousel.querySelector('ol li:last-child a').click();
- }
- }
-
- const setInteracted = function() {
- ele.classList.add('interacted');
- }
-
- // Attach the handlers
- ele.addEventListener("scroll", debounce(setSelected));
- ele.addEventListener("touchstart", setInteracted);
- ele.addEventListener('keydown', function (e){
- if(e.key == 'ArrowLeft') ele.classList.add('interacted');
- if(e.key == 'ArrowRight') ele.classList.add('interacted');
- });
-
- nextarrow.addEventListener("click", nextSlide);
- nextarrow.addEventListener("mousedown", setInteracted);
- nextarrow.addEventListener("touchstart", setInteracted);
-
- prevarrow.addEventListener("click", prevSlide);
- prevarrow.addEventListener("mousedown", setInteracted);
- prevarrow.addEventListener("touchstart", setInteracted);
-
- bullets.forEach(function(bullet) {
- bullet.querySelector('a').addEventListener('click', scrollTo);
- bullet.addEventListener("mousedown", setInteracted);
- bullet.addEventListener("touchstart", setInteracted);
- });
-
- //setInterval for autoplay
- if(carousel.getAttribute('duration')) {
- setInterval(function(){
- if (ele != document.querySelector(".carousel:hover ul") && ele.classList.contains('interacted')==false) {
- nextarrow.click();
- }
- }, carousel.getAttribute('duration'));
- }
-
-
- }); //end foreach
-
-}); //end onload
-
-
-/**
-* Debounce functions for better performance
-* (c) 2021 Chris Ferdinandi, MIT License, https://gomakethings.com
-* @param {Function} fn The function to debounce
-*/
-function debounce (fn) {
-// Setup a timer
-let timeout;
-// Return a function to run debounced
-return function () {
- // Setup the arguments
- let context = this;
- let args = arguments;
- // If there's a timer, cancel it
- if (timeout) {
- window.cancelAnimationFrame(timeout);
- }
- // Setup the new requestAnimationFrame()
- timeout = window.requestAnimationFrame(function () {
- fn.apply(context, args);
- });
-};
-}