diff --git a/assets/css/style.css b/assets/css/style.css
index 9708038..bc716fd 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -431,7 +431,7 @@ h6 {
}
/* Limit the maximum size of images in the about page */
-section img[src*="Neurophysiology-min.png"] {
+section img[src*="Neurophysiology-min"] {
width: 100% !important;
max-width: 800px !important;
margin: 0 auto !important;
@@ -439,7 +439,7 @@ section img[src*="Neurophysiology-min.png"] {
}
/* Limit the maximum size of pynapple graphic abstract image */
-.content img[src*="pynapple/GraphicAbstract.png"] {
+.content img[src*="pynapple/GraphicAbstract"] {
width: 100% !important;
max-width: 600px !important;
margin: 0 auto !important;
@@ -448,10 +448,10 @@ section img[src*="Neurophysiology-min.png"] {
/* Ensure the image is responsive on smaller screens */
@media (max-width: 900px) {
- section img[src*="Neurophysiology-min.png"] {
+ section img[src*="Neurophysiology-min"] {
max-width: 95% !important;
}
- .content img[src*="pynapple/GraphicAbstract.png"] {
+ .content img[src*="pynapple/GraphicAbstract"] {
max-width: 90% !important;
}
}
@@ -739,7 +739,7 @@ header {
.newsSect {
display: table;
background: linear-gradient(#05223ae5, #072742, #052037e5),
- url("/images/essentials/newsBg.png");
+ url("/images/essentials/newsBg.webp");
background-position: center top;
background-size: cover;
}
@@ -795,7 +795,7 @@ header {
/* CTA */
.ctaSect {
display: table;
- background: url("/images/essentials/ctaBg.png"), #114b7c;
+ background: url("/images/essentials/ctaBg.webp"), #114b7c;
background-position: center center;
background-size: cover;
}
@@ -813,7 +813,7 @@ header {
/* About */
.aboutSect {
background: radial-gradient(#063053e5, #062e52e5),
- url("/images/essentials/aboutBg.png");
+ url("/images/essentials/aboutBg.webp");
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
@@ -837,7 +837,7 @@ header {
/* Hero */
.softwareSect {
background: radial-gradient(#063053e5, #062e52e5),
- url("/images/essentials/softwareBg.png");
+ url("/images/essentials/softwareBg.webp");
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
diff --git a/content/tools/community/deeplabcut.md b/content/tools/community/deeplabcut.md
index 46ebeed..ecc349e 100644
--- a/content/tools/community/deeplabcut.md
+++ b/content/tools/community/deeplabcut.md
@@ -2,7 +2,7 @@
title: "DeepLabCut"
description: "An efficient method for 2D and 3D markerless pose estimation based on transfer learning with deep neural networks that achieves excellent results with minimal training data."
category: "behavior-analysis"
-image: "/images/tools/deeplabcut/deeplabcut.gif"
+image: "/images/tools/deeplabcut/deeplabcut.webp"
source_url: "https://github.com/DeepLabCut/DeepLabCut"
docs_url: "http://www.mackenziemathislab.org/deeplabcut"
weight: 190
@@ -12,7 +12,7 @@ weight: 190
DeepLabCut is an efficient method for 2D and 3D markerless pose estimation based on transfer learning with deep neural networks. It achieves excellent results (matching human labeling accuracy) with minimal training data (typically 50-200 frames). The framework has been proven versatile in tracking various body parts in multiple species across a broad collection of behaviors.
-
+
## NWB Integration
diff --git a/content/tools/community/nwbexplorer.md b/content/tools/community/nwbexplorer.md
index e293e87..a22f32c 100644
--- a/content/tools/community/nwbexplorer.md
+++ b/content/tools/community/nwbexplorer.md
@@ -13,7 +13,7 @@ NWB Explorer is a web application developed by MetaCell for reading, visualizing
## Demo
-
+
You can try NWB Explorer online at [https://nwbexplorer.v2.opensourcebrain.org](https://nwbexplorer.v2.opensourcebrain.org).
diff --git a/content/tools/community/nwbwidgets.md b/content/tools/community/nwbwidgets.md
index 606434f..7142b8c 100644
--- a/content/tools/community/nwbwidgets.md
+++ b/content/tools/community/nwbwidgets.md
@@ -14,7 +14,7 @@ NWB Widgets is a library of widgets for visualization NWB data in a Jupyter note
## Demo
-
+
## Installation
diff --git a/content/tools/community/sleap.md b/content/tools/community/sleap.md
index aa1e2ae..a6d49eb 100644
--- a/content/tools/community/sleap.md
+++ b/content/tools/community/sleap.md
@@ -2,7 +2,7 @@
title: "SLEAP"
description: "An open source deep-learning based framework for multi-animal pose tracking, capable of tracking any type or number of animals with an advanced labeling/training GUI for active learning and proofreading."
category: "behavior-analysis"
-image: "/images/tools/sleap/sleap.gif"
+image: "/images/tools/sleap/sleap.webp"
source_url: "https://github.com/talmolab/sleap"
docs_url: "https://sleap.ai"
weight: 200
@@ -12,7 +12,7 @@ weight: 200
SLEAP is an open source deep-learning based framework for multi-animal pose tracking. It can be used to track any type or number of animals and includes an advanced labeling/training GUI for active learning and proofreading.
-
+
## NWB Integration
diff --git a/content/tools/community/suite2p.md b/content/tools/community/suite2p.md
index 27e40bf..3e7f68e 100644
--- a/content/tools/community/suite2p.md
+++ b/content/tools/community/suite2p.md
@@ -12,7 +12,7 @@ weight: 120
Suite2p is an imaging processing pipeline written in Python. It provides a comprehensive set of tools for analyzing calcium imaging data.
-
+
## Features
diff --git a/content/tools/community/visiomode.md b/content/tools/community/visiomode.md
index 69c31ca..37d5fde 100644
--- a/content/tools/community/visiomode.md
+++ b/content/tools/community/visiomode.md
@@ -18,7 +18,7 @@ Visiomode is an open-source platform for building touchscreen-based behavioral t
Visiomode session data can be exported to the NWB format directly from the web interface. Navigate to the "History" tab, choose the session you wish to export and select "NWB" from the "Download" dropdown menu.
-
+
### Data Structure
diff --git a/hugo.yaml b/hugo.yaml
index 9ca4513..dcd0f5a 100644
--- a/hugo.yaml
+++ b/hugo.yaml
@@ -25,3 +25,7 @@ module:
mounts:
- source: assets
target: assets
+ # Lets templates resize images that live in static/images. See
+ # layouts/partials/img-src.html.
+ - source: static/images
+ target: assets/images
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
new file mode 100644
index 0000000..d80d6bb
--- /dev/null
+++ b/layouts/_default/_markup/render-image.html
@@ -0,0 +1,2 @@
+
+{{- /* chomp trailing newline */ -}}
diff --git a/layouts/about-nwb/list.html b/layouts/about-nwb/list.html
index 15d2972..3fff5d0 100644
--- a/layouts/about-nwb/list.html
+++ b/layouts/about-nwb/list.html
@@ -12,7 +12,7 @@
{{ . | markdownify }}
{{ end }} {{ with .image }} -{{ . | markdownify }}
{{ end }} {{ with .image }} -
@@ -21,7 +21,7 @@ {{ .content | markdownify }}
diff --git a/layouts/community/educators.html b/layouts/community/educators.html index 539b1e6..e85fe82 100644 --- a/layouts/community/educators.html +++ b/layouts/community/educators.html @@ -2,7 +2,7 @@
@@ -49,7 +49,7 @@
@@ -35,7 +35,7 @@
diff --git a/layouts/contact-us/list.html b/layouts/contact-us/list.html
index 114f53b..9659781 100644
--- a/layouts/contact-us/list.html
+++ b/layouts/contact-us/list.html
@@ -1,7 +1,7 @@
{{ define "main" }}
{{/* Hero Section */}}
@@ -21,7 +21,7 @@ {{ .content | markdownify }}
@@ -54,7 +54,7 @@{{ .title | markdownify }}
diff --git a/layouts/convert/list.html b/layouts/convert/list.html index 1e83288..7470109 100644 --- a/layouts/convert/list.html +++ b/layouts/convert/list.html @@ -1,7 +1,7 @@ {{ define "main" }} {{/* Hero Section */}}
@@ -44,7 +44,7 @@
@@ -25,7 +25,7 @@
@@ -16,7 +16,7 @@ {{ .content | markdownify }}
diff --git a/layouts/faq/single.html b/layouts/faq/single.html
index a8c8bbb..6d030ba 100644
--- a/layouts/faq/single.html
+++ b/layouts/faq/single.html
@@ -1,7 +1,7 @@
{{ define "main" }}
{{/* Hero Section */}}
diff --git a/layouts/grants-and-projects/list.html b/layouts/grants-and-projects/list.html
index 06eed4b..9e43510 100644
--- a/layouts/grants-and-projects/list.html
+++ b/layouts/grants-and-projects/list.html
@@ -1,7 +1,7 @@
{{ define "main" }}
{{/* Hero Section */}}
@@ -22,7 +22,7 @@ {{ .content | markdownify }}
{{ .content | markdownify }}
{{ .title | markdownify }}