jr

Jr. the static, static javascript site generator (you should see this)

Github星跟蹤圖

Welcome to Jr! (v1.2)

A static, static content generator that moves the "generator" part to the browser.
This site is pure text files with a single Javascript included on each page that renders
the theme and assets as needed.

Each page is written in markdown with a single <script> tag that includes Jr.js. Once you have created your pages then simply upload the system to your website and enjoy.

Jr includes a post editor you can use to write your posts using a live preview of the rendered markdown. It uses localStorage to persist your writings even if you lose power.

Visit the Demo

Getting Started

  1. Download Jr
  2. Create an [article-name].html file
  3. Paste the following code at the bottom of the page:
    <script src="jr.js"></script>
  4. git commit the new article or (sad face) SFTP it up to your web host

...and you're done! Rinse and repeat.

Degrading gracefully in the absence of JavaScript

If you want the MarkDown content to appear as human-readable MarkDown text in browsers without JavaScript (instead of as an undelimited blob), add a line like this at the top of your documents:

[enable JavaScript to render MarkDown]: <pre>

This is a MarkDown comment that will not be rendered, but HTML renderers will see the <pre> tag and act accordingly.

Background Images

For those of you who like to include photo mastheads or body background images on your posts. Simply add Markdown images tag with the name of the DOM element (prefixed with an underscore).

![_header](http://example.com/image.jpg)
![_footer](http://example.com/image.jpg)

MIT License with ♡ from David Pennington

Donate Stellar to xeoncross

主要指標

概覽
名稱與所有者xeoncross/jr
主編程語言HTML
編程語言CSS (語言數: 3)
平台
許可證Other
所有者活动
創建於2014-05-17 18:56:53
推送於2020-11-02 08:18:16
最后一次提交2018-10-04 10:59:25
發布數2
最新版本名稱v1.2 (發布於 )
第一版名稱v1.0 (發布於 )
用户参与
星數759
關注者數24
派生數40
提交數29
已啟用問題?
問題數21
打開的問題數14
拉請求數4
打開的拉請求數6
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?