diff --git a/assets/css/style.css b/assets/css/style.css
index 9708038..3d89a12 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;
}
}
diff --git a/hugo.yaml b/hugo.yaml
index df8463b..c85e82d 100644
--- a/hugo.yaml
+++ b/hugo.yaml
@@ -24,3 +24,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 }} -{{ .content | markdownify }}
diff --git a/layouts/community/educators.html b/layouts/community/educators.html index 539b1e6..ab929b2 100644 --- a/layouts/community/educators.html +++ b/layouts/community/educators.html @@ -49,7 +49,7 @@{{ .content | markdownify }}
@@ -54,7 +54,7 @@{{ .title | markdownify }}
diff --git a/layouts/convert/list.html b/layouts/convert/list.html index 1e83288..a9039fc 100644 --- a/layouts/convert/list.html +++ b/layouts/convert/list.html @@ -44,7 +44,7 @@{{ .content | markdownify }}
{{ .content | markdownify }}
{{ .content | markdownify }}
{{ .title | markdownify }}