diff --git a/src/components/Hero.astro b/src/components/Hero.astro
index bb79c92..546a4bc 100644
--- a/src/components/Hero.astro
+++ b/src/components/Hero.astro
@@ -33,7 +33,6 @@ const { gradient, background, logo: showLogo } = Astro.props.frontmatter
loading="eager"
alt="Nordlys logo"
src={logo}
- data-zoomable="false"
class="h-[48px] max-w-fit object-scale-down sm:h-24"
/>
)
diff --git a/src/content/posts/color-schemes.mdx b/src/content/posts/color-schemes.mdx
index c07b410..eb30cd2 100644
--- a/src/content/posts/color-schemes.mdx
+++ b/src/content/posts/color-schemes.mdx
@@ -24,12 +24,12 @@ import monoLightProjects from 'src/assets/screenshots/mono-light-projects.png';
@@ -44,12 +44,12 @@ import nordLightProjects from 'src/assets/screenshots/nord-light-projects.png';
@@ -64,12 +64,12 @@ import auroraLightProjects from 'src/assets/screenshots/aurora-light-projects.pn
diff --git a/src/content/posts/configuring-nordlys.md b/src/content/posts/configuring-nordlys.md
index 6d495a1..cf68bf4 100644
--- a/src/content/posts/configuring-nordlys.md
+++ b/src/content/posts/configuring-nordlys.md
@@ -82,7 +82,6 @@ export default defineThemeConfig({
projectsPerPage: 3,
scrollProgress: false,
scrollToTop: true,
- zoomableImages: true,
tagIcons: {
tailwindcss: 'tabler--brand-tailwind',
astro: 'tabler--brand-astro',
@@ -129,10 +128,6 @@ When `scrollProgress` is enabled (it’s automatically on for blog posts), a sti
When `scrollToTop` is enabled (automatically on blog posts), an arrow button will appear in the bottom right corner of the screen after scrolling, allowing users to quickly return to the top of the page.
-### Zoomable Images
-
-When `zoomableImages` is enabled, images can be zoomed by clicking them, powered by [medium-zoom](https://github.com/francoischalifour/medium-zoom). To opt out of zooming for specific images, use ``
-
### Tag Icons
When defining tags for posts and projects, a default icon will be used. With `tagIcons` you can map specific tags to icons - for instance, map the tag `astro` to `tabler--brand-astro`.
diff --git a/src/content/posts/using-images.mdx b/src/content/posts/using-images.mdx
index 05935a9..27c6773 100644
--- a/src/content/posts/using-images.mdx
+++ b/src/content/posts/using-images.mdx
@@ -56,6 +56,25 @@ From the web:
+## data-img-embed
+
+For a nice embedding of images into the content, you can use the `data-img-embed` attribute. This will give the image a bordered, rounded appearance and users can zoom it on click.
+
+```markdown src/pages/my-page.md
+// embedded image
+
+
+
+// normal apperance
+
+
+
+```
+
+
+
+
+
## Open Graph Images
Images and image URLs can be used in frontmatter, for instance as `openGraphImage`. To use a local asset, use:
@@ -79,11 +98,11 @@ openGraphImage: "https://nordlys.fjelloverflow.dev/favicon.svg"
Note that supplying `openGraphImage` is entirely optional. If a post (any file in `src/content/posts`) does not have an `openGraphImage` provided, Nordlys will automatically generate and use a basic template, displaying the post `title`, `description`, `author`, and website `title`, which looks like this:
-
+
Similarly, when there is no global `openGraphImage` configured in `theme.config.ts`, Nordlys generates and uses a generic image that displays the site `title` and `description` on every page where none has been defined, looking like this:
-
+
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
index acd6f61..958c263 100644
--- a/src/layouts/BaseLayout.astro
+++ b/src/layouts/BaseLayout.astro
@@ -113,6 +113,6 @@ const openGraphImageUrl = new URL(
- {config.zoomableImages && }
+