Skip to content

Commit 7bff7b0

Browse files
committed
decap cms image thing update
1 parent 14c6fdb commit 7bff7b0

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

apps/web/content/handbook/how-we-work/4.cms.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ summary: "We use GitHub as our CMS, keeping us open-source friendly and transpar
1616
* We use [GitHub](https://decapcms.org/docs/github-backend) as storage backend, with [Netlify Git Gateway](https://docs.netlify.com/manage/security/secure-access-to-sites/git-gateway) to authenticate users.
1717
* New users should be invited at `https://app.netlify.com/projects/hyprnote/configuration/identity#users`.
1818

19-
### Editor
19+
### Non-Developer
2020

21-
![](/images/handbook/screenshot-2026-01-02-at-2.35.42 pm.png "decap_workflow")
21+
* When uploading Images, rename file first, and then upload.
22+
* Workflow
23+
24+
#### Workflow
25+
26+
![](/images/handbook/decap-workflow.png)

apps/web/public/admin/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public_folder: /images
99

1010
collections:
1111
- name: articles
12-
label: Blog Articles
12+
label: Blog
1313
folder: apps/web/content/articles
1414
media_folder: /apps/web/public/images/blog
1515
public_folder: /images/blog

apps/web/public/images/handbook/screenshot-2026-01-02-at-2.35.42 pm.png renamed to apps/web/public/images/handbook/decap-workflow.png

File renamed without changes.

apps/web/src/components/image.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { ImageProps } from "@unpic/react";
22
import { Image as UnpicImage } from "@unpic/react/base";
3+
import { transform } from "unpic/providers/netlify";
34

45
export const Image = ({
56
layout = "constrained",
@@ -13,6 +14,7 @@ export const Image = ({
1314
return (
1415
<UnpicImage
1516
{...(props as any)}
17+
transformer={transform}
1618
layout={layout}
1719
background={background}
1820
style={{

0 commit comments

Comments
 (0)