Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eiskalteschatten/typescript-static-blog
This is a boilerplate project for a blog based on static Markdown files using TypeScript, Fastify and EJS.
https://github.com/eiskalteschatten/typescript-static-blog
blog ejs fastify markdown typescript
Last synced: 3 days ago
JSON representation
This is a boilerplate project for a blog based on static Markdown files using TypeScript, Fastify and EJS.
- Host: GitHub
- URL: https://github.com/eiskalteschatten/typescript-static-blog
- Owner: eiskalteschatten
- Created: 2024-04-02T08:47:56.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-04T20:26:41.000Z (5 months ago)
- Last Synced: 2024-10-17T08:49:18.166Z (20 days ago)
- Topics: blog, ejs, fastify, markdown, typescript
- Language: JavaScript
- Homepage: https://www.alexseifert.com
- Size: 1.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeScript Static Blog
To start locally for development:
```
npm run dev
```The app runs at `http://localhost:4000`.
To build:
```
npm run build
```To start after building:
```
npm start
```## Adding Posts
TypeScript Static Blog works using static files as well as static cache files.
To add a new post:
```
npm run posts:new
```To update the posts cache so that it appears on the website:
```
npm run posts
```### Importing from WordPress
1. Go to `./bin/importFromWordpress.mjs` and change the `apiUrl` variable to the URL of your WordPress's RestAPI.
2. Run `npm run posts:import`## Things To Change When Setting Up a New Site
1. Change all instances of `http://localhost` to your website's URL (mainly for SEO tags).
2. Add tracking if wanted, but don't track if the cookies haven't been accepted or DO NOT TRACK is enabled in the user's browser.
3. Update default page title and meta description