Merge pull request #932 from timlrx/feat/github-alerts
Add Github alerts feature
This commit is contained in:
		| @@ -62,7 +62,7 @@ Internationalization support - [Template with i18n](https://tailwind-nextjs-star | ||||
| - [Wujie's Blog: 旅行者计划](https://www.wujieli.com/) - Wujie's personal digital garden ([source code](https://github.com/wujieli0207/wujie-blog-next)) | ||||
| - [Xiaodong's Blog](https://blog.linxiaodong.com) - Xiaodong's personal blog about front-end technology, and life. 「中文」([source code](https://github.com/buxuku/buxuku.github.io)) | ||||
| - [Azurtelier.com](https://www.azurtelier.com/) - Amos's personal website for tech, music, AI illustrations, etc. [English/中文] ([Source code](https://github.com/AmosChenZixuan/Azurtelier.com)) | ||||
| - [JoshHaines.com](https://www.JoshHaines.com/) - Personal website for Josh Haines.  ([source code](https://github.com/jdhaines/joshhaines)) | ||||
| - [JoshHaines.com](https://www.JoshHaines.com/) - Personal website for Josh Haines. ([source code](https://github.com/jdhaines/joshhaines)) | ||||
|  | ||||
| Using the template? Feel free to create a PR and add your blog to this list. | ||||
|  | ||||
| @@ -105,7 +105,7 @@ Thanks to the community of users and contributors to the template! We are no lon | ||||
| - [kaveh.page](https://kaveh.page) - Kaveh Tehrani's personal blog. Added tags directory, profile card, time-to-read on posts directory, etc. | ||||
| - [drakerossman.com](https://drakerossman.com/) - Drake Rossman's blog about NixOS, Rust, Software Architecture and Engineering Management, as well as general musings. | ||||
| - [meamenu.com](https://www.meamenu.com) - Landing page and product blog starting from this template. It also uses [framer-motion](https://www.framer.com/motion) for animations, custom layout templates, [waline](https://waline.js.org/en/) for blog comments and [primereact](https://primereact.org/) forms [Ita] | ||||
|    | ||||
|  | ||||
| ## Motivation | ||||
|  | ||||
| I wanted to port my existing blog to Nextjs and Tailwind CSS but there was no easy out of the box template to use so I decided to create one. Design is adapted from [Tailwindlabs blog](https://github.com/tailwindlabs/blog.tailwindcss.com). | ||||
| @@ -131,6 +131,7 @@ I wanted it to be nearly as feature-rich as popular blogging templates like [bea | ||||
| - Server-side syntax highlighting with line numbers and line highlighting via [rehype-prism-plus](https://github.com/timlrx/rehype-prism-plus) | ||||
| - Math display supported via [KaTeX](https://katex.org/) | ||||
| - Citation and bibliography support via [rehype-citation](https://github.com/timlrx/rehype-citation) | ||||
| - [Github alerts](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts) via [remark-github-blockquote-alert](https://github.com/jaywcjlove/remark-github-blockquote-alert) | ||||
| - Automatic image optimization via [next/image](https://nextjs.org/docs/basic-features/image-optimization) | ||||
| - Support for tags - each unique tag will be its own page | ||||
| - Support for multiple authors | ||||
|   | ||||
| @@ -1,5 +1,6 @@ | ||||
| import 'css/tailwind.css' | ||||
| import 'pliny/search/algolia.css' | ||||
| import 'remark-github-blockquote-alert/alert.css' | ||||
|  | ||||
| import { Space_Grotesk } from 'next/font/google' | ||||
| import { Analytics, AnalyticsConfig } from 'pliny/analytics' | ||||
|   | ||||
| @@ -7,6 +7,7 @@ import { fromHtmlIsomorphic } from 'hast-util-from-html-isomorphic' | ||||
| // Remark packages | ||||
| import remarkGfm from 'remark-gfm' | ||||
| import remarkMath from 'remark-math' | ||||
| import { remarkAlert } from 'remark-github-blockquote-alert' | ||||
| import { | ||||
|   remarkExtractFrontmatter, | ||||
|   remarkCodeTitles, | ||||
| @@ -153,6 +154,7 @@ export default makeSource({ | ||||
|       remarkCodeTitles, | ||||
|       remarkMath, | ||||
|       remarkImgToJsx, | ||||
|       remarkAlert, | ||||
|     ], | ||||
|     rehypePlugins: [ | ||||
|       rehypeSlug, | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| --- | ||||
| title: 'Introducing Tailwind Nextjs Starter Blog' | ||||
| date: '2021-01-12' | ||||
| lastmod: '2021-02-01' | ||||
| lastmod: '2024-06-02' | ||||
| tags: ['next-js', 'tailwind', 'guide'] | ||||
| draft: false | ||||
| summary: 'Looking for a performant, out of the box template, with all the best in web technology to support your blogging needs? Checkout the Tailwind Nextjs Starter Blog template.' | ||||
| @@ -15,6 +15,9 @@ authors: ['default', 'sparrowhawk'] | ||||
|  | ||||
| [](https://vercel.com/new/git/external?repository-url=https://github.com/timlrx/tailwind-nextjs-starter-blog) | ||||
|  | ||||
| > [!CAUTION] | ||||
| > This is the README of version 1 of the template. It is kept for historical reasons, but is no longer supported. It also serves as a nice example of [Github Alert](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts). For the actual documentation, please refer to the [Github repository](https://github.com/timlrx/tailwind-nextjs-starter-blog). | ||||
|  | ||||
| This is a [Next.js](https://nextjs.org/), [Tailwind CSS](https://tailwindcss.com/) blogging starter template. Probably the most feature-rich Next.js markdown blogging template out there. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs. | ||||
|  | ||||
| Check out the documentation below to get started. | ||||
|   | ||||
| @@ -39,6 +39,7 @@ | ||||
|     "rehype-slug": "^6.0.0", | ||||
|     "remark": "^15.0.0", | ||||
|     "remark-gfm": "^4.0.0", | ||||
|     "remark-github-blockquote-alert": "^1.2.1", | ||||
|     "remark-math": "^6.0.0", | ||||
|     "tailwindcss": "^3.4.3", | ||||
|     "unist-util-visit": "^5.0.0" | ||||
|   | ||||
							
								
								
									
										10
									
								
								yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								yarn.lock
									
									
									
									
									
								
							| @@ -10073,6 +10073,15 @@ __metadata: | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| "remark-github-blockquote-alert@npm:^1.2.1": | ||||
|   version: 1.2.1 | ||||
|   resolution: "remark-github-blockquote-alert@npm:1.2.1" | ||||
|   dependencies: | ||||
|     unist-util-visit: ^5.0.0 | ||||
|   checksum: 4205d4de6324710b3fbd316025247f99a551ce793cb049fe45c30319a73c90e2845ccf318f70744fb17fc9ff971980dc1b95264131303d1c5e3048e53c8b3753 | ||||
|   languageName: node | ||||
|   linkType: hard | ||||
| 
 | ||||
| "remark-math@npm:^6.0.0": | ||||
|   version: 6.0.0 | ||||
|   resolution: "remark-math@npm:6.0.0" | ||||
| @@ -10930,6 +10939,7 @@ __metadata: | ||||
|     rehype-slug: ^6.0.0 | ||||
|     remark: ^15.0.0 | ||||
|     remark-gfm: ^4.0.0 | ||||
|     remark-github-blockquote-alert: ^1.2.1 | ||||
|     remark-math: ^6.0.0 | ||||
|     tailwindcss: ^3.4.3 | ||||
|     typescript: ^5.1.3 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user