You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+52-14
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3

4
4
[More screenshots here](/screenshots/)
5
5
6
-
[](https://vercel.com/new/git/external?repository-url=https://github.com/thedevdavid/digital-garden)
6
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fthedevdavid%2Fdigital-garden%2F)
7
7
8
8
An open source blogging (digital gardening) template for developers using [Next.js](https://nextjs.org/) app router, MDX, [Contentlayer](https://contentlayer.dev/), [Tailwind CSS](https://tailwindcss.com/), [@shadcn/ui](https://ui.shadcn.com/) , [Lucide Icons](https://lucide.dev/icons), and more.
9
9
@@ -18,14 +18,18 @@ If you love this template and/or use it, please give it a star on GitHub. This w
@@ -73,6 +77,19 @@ Editing list pages is done in the `lib` folder.
73
77
-`/projects` - `lib/projects-data.ts`
74
78
-`/social` - `lib/social-data.ts`
75
79
80
+
#### Frontmatter
81
+
82
+
Frontmatter is used to define metadata for pages and posts. It's located at the top of the file and is written in YAML. You can define the following fields:
83
+
84
+
-`title` - The title of the page/post
85
+
-`description` - The description of the page/post
86
+
-`publishedDate` - The date of the post (not used on pages)
87
+
-`lastUpdatedDate` - The date of the page/post
88
+
-`tags` - List of tags for the post. You can add new tags by adding them to the `tagOptions` list. (not used on pages)
89
+
-`series` - The series of the post. A series has a title and an order number for a post. (not used on pages)
90
+
-`author` - The author of the post. An author has a name, and image. (not used on pages)
91
+
-`status` - Whether the page/post is published or draft
92
+
76
93
### Deployment
77
94
78
95
You can deploy the project with [Vercel](https://vercel.com/) or any other hosting provider. If you want to use Vercel, you can use the button at the top of this README.
@@ -106,8 +123,14 @@ Images and other media files are located in `public/` directory. You can use the
106
123
107
124
You can change the metadata and author details in `utils/metadata.ts`. This will be used around the site for titles, social links, social handles, SEO, etc.
108
125
126
+
#### Navigation
127
+
109
128
You can edit navigation links in `lib/navigation-links.ts`.
110
129
130
+
#### Social links
131
+
132
+
You can edit social links in `lib/social-data.ts`. You can also add new social links by adding them to the file. Using the platform name as the key and the URL as the value. The `SocialButton` component will automatically add the icon for the platform if it's supported in [simple-icons](https://simpleicons.org/).
133
+
111
134
### Analytics
112
135
113
136
#### Vercel
@@ -121,6 +144,13 @@ Umami is a simple, easy to use, web analytics solution with self-hosting option!
121
144
Configure:
122
145
Set `NEXT_PUBLIC_UMAMI_SCRIPT_URL` & `NEXT_PUBLIC_UMAMI_WEBSITE_ID` environment variables on your `.env.local` file and on Vercel dashboard.
123
146
147
+
#### Plausible
148
+
149
+
Plausible is a simple, lightweight, open-source alternative to Google Analytics. You can read more about it on [Plausible website](https://plausible.io/).
150
+
151
+
Configure:
152
+
Set `NEXT_PUBLIC_PLAUSIBLE_DOMAIN` & `NEXT_PUBLIC_PLAUSIBLE_SCRIPT_URL` environment variables on your `.env.local` file and on Vercel dashboard. If you're concerned about ad blockers, you can proxy the plausible script through your own domain. You can read more about it [here](https://plausible.io/docs/proxy/guides/nextjs).
153
+
124
154
#### Other analytics providers
125
155
126
156
Supporting other analytics providers are in progress. Feel free to open an issue if you have any suggestions or a PR if you want to implement it yourself.
@@ -151,15 +181,15 @@ You can choose between 3 different hero variants to use in `app/(site)/page.tsx`
151
181
152
182
#### Image optimization
153
183
154
-
Optimize images in seconds for free with ImageOptim. Install on your Mac, then open the `public` folder in Finder. Select all images, right-click, and choose "Open with > ImageOptim". This will optimize all images in the folder.
184
+
I recommend optimizing images fast for free with [ImageOptim](https://imageoptim.com/mac). Install on your Mac, then open the `public` folder in Finder. Select all images, right-click, and choose "Open with > ImageOptim". This will optimize all images in the folder.
155
185
156
186
Note: DO NOT overdo it. You can easily make images look bad with lossy compression algorithms.
-[https://davidlevai.com/](https://davidlevai.com/) - My own digital garden
191
+
-[Dragons and Codes Digital Garden](https://dragonsandcodes.com) - Simple modifications [Source](https://github.com/dragonsandcodes/digital-garden-v2)
0 commit comments