|
1 |
| -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
| 1 | +# Modern Developer Digital Garden Starter |
| 2 | + |
| 3 | +[](https://vercel.com/new/git/external?repository-url=https://github.com/thedevdavid/digital-garden) |
| 4 | + |
| 5 | +An open source 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. |
| 6 | + |
| 7 | +This project is from developers for developers. Please feel free to report a bug, discuss the current state, submit ideas for improvements, submit a fix, propose new features, or whatever you want. All contributions are welcome! Read more at the [contributing guidelines](./CONTRIBUTING.md). |
| 8 | + |
| 9 | +If you love this template and/or use it, please give it a star on GitHub. This will help more people discover it, thus help improving the template. |
| 10 | + |
| 11 | +[]( |
| 12 | + |
| 13 | +**Note: This project is always evolving and it's far from being perfect or even done.** I'm always open to suggestions and contributions. Feel free to open an issue or a PR if you have any ideas or suggestions. You can also see the [roadmap](#features--roadmap) for planned features if you want to contribute. |
| 14 | + |
| 15 | +## Table of Contents |
| 16 | + |
| 17 | +- [Motivation](#motivation) |
| 18 | +- [Getting Started](#getting-started) |
| 19 | + - [Writing content](#writing-content) |
| 20 | + - [Deployment](#deployment) |
| 21 | +- [Customization](#customization) |
| 22 | + - [Fonts](#fonts) |
| 23 | + - [Colors](#colors) |
| 24 | + - [Metadata](#metadata) |
| 25 | + - [Analytics](#analytics) |
| 26 | + - [Newsletter subscription](#newsletter-subscription) |
| 27 | + - [Hero section](#hero-section) |
| 28 | + - [Other tips & tricks](#other-tips--tricks) |
| 29 | + - [Image optimization](#image-optimization) |
| 30 | +- [Examples](#examples) |
| 31 | +- [Features & Roadmap](#features--roadmap) |
| 32 | + |
| 33 | +## Motivation |
| 34 | + |
| 35 | +As a developer who creates content, I want to have a digital garden where I can share my thoughts and ideas with the world. Now, there's not really a "perfect solution" for this currently. With included analytics, SEO, email subscribtions, modern tooling, simple design, etc. We either have to build one from scratch, use a design template and code the features, or use a CMS/no-code tool. |
| 36 | + |
| 37 | +So I decided to build a solution that I would use myself. This is the result. |
2 | 38 |
|
3 | 39 | ## Getting Started
|
4 | 40 |
|
5 |
| -First, run the development server: |
| 41 | +1. Use the repo as a template |
| 42 | +2. Install dependencies with `pnpm install` |
| 43 | +3. Edit `utils/metadata.ts` with your information |
| 44 | +4. Edit `utils/usesData.ts` with your information |
| 45 | +5. Edit `utils/projectsData.ts` with your information |
| 46 | +6. Edit `content/pages/now` with your information |
| 47 | +7. Edit `content/pages/about` with your information |
| 48 | +8. Run the development server with `pnpm dev` |
| 49 | + |
| 50 | +Open [http://localhost:3000](http://localhost:3000) in your browser to see the result. |
| 51 | + |
| 52 | +### Writing content |
| 53 | + |
| 54 | +You can write content in Markdown or MDX. The content is located in `content/` and is organized in folders. The `pages` folder contains the pages. The `posts` folder contains the blogposts. The `projects` folder contains the projects. |
| 55 | + |
| 56 | +### Deployment |
| 57 | + |
| 58 | +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. Don't forget to update `package.json` author information. |
| 59 | + |
| 60 | +## Customization |
| 61 | + |
| 62 | +### Fonts |
| 63 | + |
| 64 | +This project uses [Inter](https://rsms.me/inter/) as the default font. You can change it on `app/layout.tsx` using the `next/fonts` package. |
| 65 | + |
| 66 | +### Colors |
| 67 | + |
| 68 | +The project uses Tailwind colors and @shadcn/ui config. Customize the colors on `globals.css`. |
| 69 | + |
| 70 | +### Metadata |
| 71 | + |
| 72 | +You can change the metadata in `utils/metadata.ts`. This will be used around the site for social links, handles, SEO, and OG. |
| 73 | + |
| 74 | +### Analytics |
| 75 | + |
| 76 | +_WIP_ as I'm still deciding which analytics tools to support. Feel free to open an issue if you have any suggestions or a PR if you want to implement it yourself. |
| 77 | + |
| 78 | +### Newsletter subscription |
| 79 | + |
| 80 | +_WIP_ as I'm still deciding which email tools to support. Feel free to open an issue if you have any suggestions or a PR if you want to implement it yourself. |
| 81 | + |
| 82 | +### Hero section |
| 83 | + |
| 84 | +You can choose between 3 different hero variants to use in `app/(site)/layout.tsx`. |
| 85 | + |
| 86 | +1. `Simple` - A simple centered hero section with image, title, socials, and subtitle. |
| 87 | +2. `Video` - 2 column hero section with Videoask embed on one side and title and subtitle on the other. |
| 88 | +3. `Image` - 2 column hero section with image on one side and title, socials, and subtitle on the other. |
| 89 | + |
| 90 | +### Other tips & tricks |
6 | 91 |
|
7 |
| -```bash |
8 |
| -npm run dev |
9 |
| -# or |
10 |
| -yarn dev |
11 |
| -# or |
12 |
| -pnpm dev |
13 |
| -``` |
| 92 | +#### Image optimization |
14 | 93 |
|
15 |
| -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
| 94 | +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. |
16 | 95 |
|
17 |
| -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. |
| 96 | +## Examples |
18 | 97 |
|
19 |
| -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. |
| 98 | +- [https://davidlevai.com/](https://davidlevai.com/) |
20 | 99 |
|
21 |
| -## Learn More |
| 100 | +Create a PR and add your digital garden to this list if you're using the template! |
22 | 101 |
|
23 |
| -To learn more about Next.js, take a look at the following resources: |
| 102 | +## Features & Roadmap |
24 | 103 |
|
25 |
| -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
26 |
| -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 104 | +- [x] Basic functionality of reading pages and posts |
| 105 | +- [x] Basic design dark/light mode |
| 106 | +- [x] MDX code highlighting |
| 107 | +- [x] Readme.md |
| 108 | +- [x] `robots.txt` & `sitemap.xml` |
| 109 | +- [x] RSS Feed |
| 110 | +- [x] Reading time estimate |
| 111 | +- [x] LICENSE |
| 112 | +- [x] contributing.md |
| 113 | +- [x] MDX components (TOC & footnotes) |
| 114 | +- [x] general config & metadata (author, URL, socials, etc.) |
| 115 | +- [x] uses page |
| 116 | +- [x] Link in bio page |
| 117 | +- [x] OG image generation |
| 118 | +- [x] projects page |
| 119 | +- [x] about section on homepage |
| 120 | +- [ ] Design improvements (whitespace, layout, etc.) |
| 121 | +- [ ] `manifest.json` |
| 122 | +- [ ] search & command bar |
| 123 | +- [ ] newsletter integration |
| 124 | +- [ ] Post series |
| 125 | +- [ ] Hidden content (behind email subscription) |
| 126 | +- [ ] 100 lighthouse score |
| 127 | +- [ ] Command bar fuzzy search in content |
| 128 | +- [ ] Pagination |
| 129 | +- [ ] SEO improvements |
| 130 | +- [ ] analytics (fathom, simplelytics, vercel) |
| 131 | +- [ ] Accessibility audit |
| 132 | +- [ ] TypeScript fixes |
| 133 | +- [ ] Redesign uses page |
| 134 | +- [ ] Redesign projects page |
| 135 | +- [ ] general refactor |
| 136 | +- [ ] general cleanup |
| 137 | +- [ ] implement content security policies |
| 138 | +- [ ] implement a videoask-like solution for the hero section |
| 139 | +- [ ] Post like counter (?) |
| 140 | +- [ ] Visitor counter (?) |
| 141 | +- [ ] code playground instead of code highlighting (?) |
| 142 | +- [ ] Categories and/or tags (?) |
| 143 | +- [ ] Commenting system (?) |
| 144 | +- [ ] Social sharing buttons (?) |
| 145 | +- [ ] keyboard-based navigation with hotkeys (?) |
| 146 | +- [ ] multiple layouts (sidebar, full-width, etc.) (?) |
| 147 | +- [ ] multilang support (?) |
27 | 148 |
|
28 |
| -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
| 149 | +## Inspiration & Mentions |
29 | 150 |
|
30 |
| -## Deploy on Vercel |
| 151 | +- [Delba Oliveira Personal Blog](https://github.com/delbaoliveira/website) - Using and structuring table of contents with Contentlayer |
| 152 | +- [timlrx/tailwind-nextjs-starter-blog](https://github.com/timlrx/tailwind-nextjs-starter-blog) - Idea |
31 | 153 |
|
32 |
| -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
| 154 | +## Support |
33 | 155 |
|
34 |
| -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
| 156 | +If you love this template and/or use it, please give it a star on GitHub. |
0 commit comments