-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pulsate-dev/move-to-lume-blog
chore: Move to lume-blog
- Loading branch information
Showing
14 changed files
with
911 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,7 @@ jobs: | |
- name: Run lint | ||
run: | | ||
deno task lint | ||
- name: Run build | ||
run: | | ||
deno task build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
_site | ||
_cache | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Pulsate Blog | ||
|
||
[![CI](https://github.com/pulsate-dev/blog/actions/workflows/ci.yaml/badge.svg)](https://github.com/pulsate-dev/blog/actions/workflows/ci.yaml) | ||
[![Deploy](https://github.com/pulsate-dev/blog/actions/workflows/deploy.yaml/badge.svg)](https://github.com/pulsate-dev/blog/actions/workflows/deploy.yaml) | ||
|
||
Pulsate の開発情報などを発信するブログ. | ||
[`blog.pulsate.dev`](https://blog.pulsate.dev) で公開されています. | ||
コンテンツの投稿は Pulsate プロジェクトチームのみが行うことができます. | ||
|
||
--- | ||
|
||
1. `src/posts` に新しい Markdown ファイルを作成する. | ||
2. ファイルの先頭に以下のようなメタデータを記述する. | ||
- `title`: 記事のタイトルを指定する. | ||
- `date`: 記事の公開日を指定する. | ||
- `author`: 記事の著者を指定する. | ||
- `tags`: 記事のタグを指定する. | ||
- リリースノートの場合は `release` タグを指定する. | ||
- `comments.src`: 記事のコメントソースを指定する. Pulsate をはじめとする | ||
ActivityPub インスタンスに対応. 必ずしも指定する必要はない. | ||
- `draft`: 下書きの場合は `true` を指定する. | ||
|
||
```markdown | ||
--- | ||
title: The example post | ||
date: '2023-09-10' | ||
author: Sho Sakuma | ||
tags: | ||
- ActivityPub | ||
comments: | ||
src: 'https://mstdn.mand.io/@m1sk9/0000000' | ||
draft: true | ||
--- | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import lume from "lume/mod.ts"; | ||
import blog from "blog/mod.ts"; | ||
|
||
const site = lume({ | ||
src: "./src", | ||
}); | ||
|
||
site.use(blog()); | ||
|
||
export default site; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
{ | ||
"tasks": { | ||
"dev": "deno run --allow-net --allow-read --allow-env --watch main.ts --dev", | ||
"serve": "deno run --allow-net --allow-read --allow-env --no-check main.ts", | ||
"create": "cp template.md posts/$(date + '%Y-%m-%d')-post-title.md", | ||
"lume": "echo \"import 'lume/cli.ts'\" | deno run -A -", | ||
"build": "deno task lume", | ||
"serve": "deno task lume -s", | ||
"fmt": "deno fmt .", | ||
"fmt:check": "deno fmt --check .", | ||
"lint": "deno lint" | ||
}, | ||
"imports": { | ||
"deno_blog": "https://deno.land/x/[email protected]/blog.tsx" | ||
"lume/": "https://deno.land/x/[email protected]/", | ||
"blog/": "https://deno.land/x/[email protected]/" | ||
}, | ||
"compilerOptions": { | ||
"types": [ | ||
"lume/types.ts" | ||
] | ||
} | ||
} |
Oops, something went wrong.