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. -![DeepLabCut Demo](/images/tools/deeplabcut/deeplabcut.gif) + ## 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 -![NWB Explorer Demo](/images/tools/nwbexplorer/nwbexplorer.gif) + 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 -![NWB Widgets Demo](/images/tools/nwbwidgets/jupyter_widgets_demo.gif) + ## 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. -![SLEAP Demo](/images/tools/sleap/sleap.gif) + ## 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. -![Suite2p Demo](/images/tools/suite2p/multiselect.gif) + ## 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. -![Visiomode NWB Export](/images/tools/visiomode/visiomode-nwb-export.gif) + ### 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 @@ +{{ .PlainText }} +{{- /* 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 @@

{{ .Title | markdownify }}<
- +
@@ -42,7 +42,7 @@

{{ .title | markdownify }}

- +
@@ -75,7 +75,7 @@

{{ .title | markdownify }}

{{ . | markdownify }}

{{ end }} {{ with .image }} - nwb-neuro + nwb-neuro {{ end }} {{ with .wide_image }}
@@ -100,7 +100,7 @@

{{ .title | markdownify }}
- +
{{ .title | markdownify }} @@ -132,7 +132,7 @@

{{ .title | markdownify }}

{{ . | markdownify }}

{{ end }} {{ with .image }} - nwb-neuro + nwb-neuro {{ end }} {{ with .wide_image }}
diff --git a/layouts/archives/list.html b/layouts/archives/list.html index 521f899..3b462e0 100644 --- a/layouts/archives/list.html +++ b/layouts/archives/list.html @@ -1,7 +1,7 @@ {{ define "main" }} {{/* Hero Section */}}
+ style="background: radial-gradient(#063053e5, #062e52e5), url('/images/essentials/aboutBg.webp');">

{{ .Title | markdownify }}

@@ -21,7 +21,7 @@

{{ .title | markdownify }}

- {{ .title }} + {{ .title }}
{{ .title | markdownify }}

{{ .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 @@
{{/* Hero Section */}}
+ style="background: radial-gradient(#063053e5, #062e52e5), url('/images/essentials/aboutBg.webp');">

{{ .Title | markdownify }}

@@ -49,7 +49,7 @@

{{ .title | markdownify }}

{{ if .image }}
{{ end }} @@ -99,7 +99,7 @@

{{ .title | markdownify }}

{{ if .image }} {{ end }} diff --git a/layouts/community/gallery.html b/layouts/community/gallery.html index e44ca85..bc355e5 100644 --- a/layouts/community/gallery.html +++ b/layouts/community/gallery.html @@ -2,7 +2,7 @@