Skip to content

Commit e79a5fa

Browse files
committed
feat: the first commit
0 parents  commit e79a5fa

18 files changed

+8356
-0
lines changed

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Nuxt dev/build outputs
2+
.output
3+
.nuxt
4+
.nitro
5+
.cache
6+
dist
7+
8+
# Node dependencies
9+
node_modules
10+
11+
# Logs
12+
logs
13+
*.log
14+
15+
# Misc
16+
.DS_Store
17+
.fleet
18+
.idea
19+
20+
# Local env files
21+
.env
22+
.env.*
23+
!.env.example

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

README.md

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Nuxt 3 Minimal Starter
2+
3+
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
4+
5+
## Setup
6+
7+
Make sure to install the dependencies:
8+
9+
```bash
10+
# npm
11+
npm install
12+
13+
# pnpm
14+
pnpm install
15+
16+
# yarn
17+
yarn install
18+
```
19+
20+
## Development Server
21+
22+
Start the development server on `http://localhost:3000`:
23+
24+
```bash
25+
# npm
26+
npm run dev
27+
28+
# pnpm
29+
pnpm run dev
30+
31+
# yarn
32+
yarn dev
33+
```
34+
35+
## Production
36+
37+
Build the application for production:
38+
39+
```bash
40+
# npm
41+
npm run build
42+
43+
# pnpm
44+
pnpm run build
45+
46+
# yarn
47+
yarn build
48+
```
49+
50+
Locally preview production build:
51+
52+
```bash
53+
# npm
54+
npm run preview
55+
56+
# pnpm
57+
pnpm run preview
58+
59+
# yarn
60+
yarn preview
61+
```
62+
63+
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

app.vue

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<NuxtPage />
3+
</template>

assets/css/main.css

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
.kaiti {
6+
font-family: BiauKai, STKaiti, KaiTi, KaiTi_GB2312;
7+
}

components/content/Author.vue

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div class="kaiti text-lg leading-5">
3+
<slot></slot>
4+
</div>
5+
</template>

components/content/Cover.vue

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<template>
2+
<div class="h-56 relative flex items-center">
3+
<div class=""><slot /></div>
4+
</div>
5+
</template>
6+
<style scoped>
7+
:deep(h1) {
8+
@apply font-semibold text-5xl text-center;
9+
}
10+
:deep(h2) {
11+
@apply font-semibold text-center text-3xl;
12+
}
13+
</style>

components/content/Gatha.vue

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<template>
2+
<div class="text-center text-xl py-3 leading-relaxed kaiti">
3+
<slot />
4+
</div>
5+
</template>
6+

content/xifangquezhi.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: '西方确指'
3+
description: '庐山东林寺印经处 印赠'
4+
---
5+
6+
::cover
7+
# 西方确指
8+
::
9+
10+
## 《西方确指》序
11+
丁末夏,过雪山和尚方丈。和尚出一书授余曰:“此宝筏也,且缘起甚奇。”明末时,吴城八友同修玄门,日请乩仙以谈其术。于卒也,有仙至,所谈与诸仙异,因日事之甚狎熟。久之,忽劝以念佛。众问:“念佛可乎?”曰:“善。”众皆称:“南无佛!”曰:“不如是念也。”众问如何?曰:“汝须合掌至心,向西顶礼,念‘南无阿弥陀佛’。”众从之。于是为之微细开示念佛法门,令舍伪归真,求生极乐。始宣示夙昔因缘、菩萨名号,及现异香天花,种种灵瑞。而八人者,皆反其邪修,归于正信。无朽者,八人中之师也。菩萨令往三昧和尚处,受毗尼,圆僧相。和尚始难之,既而见菩萨《月偈》,遂礼敬西方,为之剃度。盖菩萨始至时,众以为仙,指月为题求句。因示以偈曰:
12+
13+
::gatha
14+
“一月光含千世界,
15+
分身无量照群迷。
16+
当知本体元无二,
17+
不动庄严变化机。”
18+
::
19+
20+
始于明崇祯癸末五月二十八日,迄清顺治丁亥十月初二日,前后共二十四会,所说皆修行要妙。因偈中有“确指正修路”句,遂名之曰《西方确指》。
21+
22+
余读之,身心踊跃,不啻醍醐之滴入焦肠也,因叹奇不已。和尚曰:“余始亦不信。既而阅之,神采焕发,即欲不信而不能矣。”余曰:“菩萨往昔因中,与八人具有大缘,悲念深故,权巧接引。此岂同于应乩之流?且观菩萨临行,有曰:‘鸾乩之设,本为神鬼所依凭,非大菩萨应化常事。’则是书也,岂可作乩书视也?”
23+
24+
于时即愿刊布流通,广利群有,而因缘未和。迄今己酉春,僧俗道侣,无不踊跃欢喜,愿施赀助成。至有读而哭,哭而读,顿舍所爱室宇衣服器具,入深山念佛者。岂非菩萨以无缘慈,摄化众生,不可思议乎!遂与灵曦、慧楫二老师,谋付诸梓。梓成道其始末如此。
25+
26+
时康熙己酉九月既望,古吴净业弟子郎西金锷撰。
27+
28+
::cover
29+
## 西方确指
30+
::author
31+
觉明妙行菩萨说
32+
菩萨戒弟子常摄集
33+
::
34+
::
35+
36+
一时菩萨自极乐国来,降于娑婆震旦古勾吴地。在会弟子,以往昔因缘,得蒙化度。菩萨将显净土法门,而说偈言:
37+
38+
::gatha
39+
“诸佛之法要,微密不思议,
40+
以非思议故,无能尽宣说。
41+
牟尼大慈父,悲悯众生者,
42+
说所不能说,导彼今后世。
43+
更以异方便,显示安乐刹,
44+
令发愿往生,横截诸恶趣。
45+
由佛阿弥陀,大愿摄群品,
46+
闻名能受持,决定生无惑。
47+
若有大力人,专念心常一,
48+
成就深三昧,现前亦见佛。
49+
令我如佛教,将开化导门,
50+
念尔等迷倒,确指正修路。
51+
是非弱小缘,应具难遭想,
52+
西方万亿程,一念信即时。”
53+
::
54+
55+
菩萨说偈已,令诸弟子朗宣一过。复言:“汝等向来学宗玄术,心溺邪修。我以夙缘慈念深故,来此化导。今已首标西方净土,为正向正修一门。犹虑未能极信,次当说我名号及我所证,令知说是法者,是大菩萨。善男子,我昔因中,以妙湛觉心,照明一切诸所有刹土,众生所同具足。即以觉妙妙觉,觉明妙心,起无量妙行,度诸众生。是故阿弥陀佛,印我名号,号曰:‘觉明妙行’。汝等从此皈依,更无疑二。”时同会者八人俱合掌至心,念:“南无觉明妙行菩萨!”敬礼而起。菩萨曰:“善哉,如是。”
56+
57+
或问持经咒之法。菩萨曰:“所谓持经咒者,自持其心也,要在直明心地。若止云持得熟,诵得多,又念某经某咒某佛,谓我有大功德。而不能句句销归自性,又不能深解如来妙谛。谓可以获果证者。不见十字路口,若无眼,若无足,若乞妇,若乞男,终日不住口念到夜,计其所持,一岁何啻数十万遍。究竟是残疾者,求乞者,并不曾证得一毫果在。此何以故?只无解无行故耳。故知持是经,即当依是经而修行。又发大愿,或求生佛国,或求明心地,或发大智慧,或利济众生。俱仗如来广大弘通之力,以成就行人之愿。如是,方为持经持咒念佛。”

global.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module '@nuxt/content/transformers/utils' {
2+
export * from '@nuxt/content/dist/runtime/transformers/utils'
3+
}

nuxt.config.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// https://nuxt.com/docs/api/configuration/nuxt-config
2+
3+
export default defineNuxtConfig({
4+
css: ['~/assets/css/main.css'],
5+
modules: [
6+
'@nuxt/content',
7+
],
8+
content: {
9+
documentDriven: true
10+
},
11+
postcss: {
12+
plugins: {
13+
tailwindcss: {},
14+
autoprefixer: {},
15+
},
16+
},
17+
devtools: { enabled: true }
18+
})

package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "sutta",
3+
"private": true,
4+
"scripts": {
5+
"build": "nuxt build",
6+
"dev": "nuxt dev",
7+
"generate": "nuxt generate",
8+
"preview": "nuxt preview",
9+
"postinstall": "nuxt prepare"
10+
},
11+
"devDependencies": {
12+
"@nuxt/content": "^2.7.0",
13+
"@nuxt/devtools": "latest",
14+
"@types/node": "^18.16.19",
15+
"autoprefixer": "^10.4.14",
16+
"nuxt": "^3.6.3",
17+
"postcss": "^8.4.26",
18+
"tailwindcss": "^3.3.3"
19+
}
20+
}

pages/[...slug].vue

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template>
2+
<main class="p-10 max-w-3xl text-lg text-zinc-900 bg-white leading-relaxed whitespace-pre-line ">
3+
<ContentDoc />
4+
</main>
5+
</template>
6+
<script setup lang="ts">
7+
8+
const { page } = useContent()
9+
useContentHead(page)
10+
</script>
11+
<style scoped>
12+
body {
13+
@apply bg-neutral-50;
14+
}
15+
:deep(p) {
16+
@apply py-2;
17+
}
18+
</style>

0 commit comments

Comments
 (0)