add support for github alerts
This commit is contained in:
parent
cd25e6138a
commit
681b7b7be9
@ -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']
|
||||
|
||||
[![Deploy with Vercel](https://vercel.com/button)](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
|
||||
|
Loading…
x
Reference in New Issue
Block a user