Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyanxiao/nimblog
๐ Build static blog with lines of HTML and Markdown.
https://github.com/cyanxiao/nimblog
html markdown reactjs static-site-generator web
Last synced: 6 days ago
JSON representation
๐ Build static blog with lines of HTML and Markdown.
- Host: GitHub
- URL: https://github.com/cyanxiao/nimblog
- Owner: cyanxiao
- Created: 2022-05-16T05:52:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-06T11:08:59.000Z (over 1 year ago)
- Last Synced: 2024-09-23T14:09:44.772Z (about 2 months ago)
- Topics: html, markdown, reactjs, static-site-generator, web
- Language: TypeScript
- Homepage: https://nimblog.vercel.app/
- Size: 322 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nimblog
![npm](https://img.shields.io/npm/dm/nimblog) ![NPM](https://img.shields.io/npm/l/nimblog) ![GitHub top language](https://img.shields.io/github/languages/top/imchell/nimblog)
Nimblog requires only a few lines of HTML to deploy and is suitable for lightweight bloggers. The [demo site](https://nimblog.vercel.app/) is built with Nimblog, check it out for more information.
![Nimblog](pic/front_1.png)
* Runs on static website hosting platform, such as [GitHub Pages](https://pages.github.com/).
* Easy to customize themes, as you only need to bring in your own CSS files.
* Use [heti](https://github.com/sivan/heti) to optimize the layout.I recommend the directory structure below.
```
index.html
your_essay_1.md
your_essay_2.md
your_pic_1.jpg
...
```Then paste the following content in `index.html`.
```html
Nimblog# [Your Blog](/)
- [your essay 1](your_essay_1.md)
- [your essay 2](your_essay_2.md)```
As you can see, you can write Markdown directly in `` and link to your Markdown documents. Once you're done, just upload this directory to a static website hosting platform.
> **Note**
> Markdown in `` supports any kind of links but only ones ending with `.md` & `.txt` and with `text\markdown` content type are parsed as blog post links under the hood.## ๐ Live Preview
Copy & paste code below to edit online with [W3Schools Online Editor](https://www.w3schools.com/tryit/tryit.asp?filename=tryhtml_hello).
```html
Nimblog# [Nimblog Intro](/)
- [How to Use](https://unpkg.com/nimblog/dist/production/how-to-use.md)
- [Contribution](https://unpkg.com/nimblog/dist/production/contribution.md)```
> **Note**
> If you want to try it in other online editor like StackBlitz, make sure to turn off prettier or formatter so that Markdown content in HTML will not be destructed.## ๐งช Contribution
Feel free to contribute to Nimblog.
Run `yarn` to install all dependencies.
Nimblog uses Parcel as the build tool. Run `yarn dev` to make live changes to the project. Run `yarn build` to build the production version.
Note that Parcel does not support invoking static assets natively, so static files are put in `\static` to make sure they can be accessed with HMR.