Skip to content
static web server with markdown pages.
Go CSS HTML Smarty JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files
.gitignore
LICENSE
README.md
ad.json
go.mod
go.sum
main.go
md.tpl
mvver.sh
mysync

README.md

关于 MarkdownWeb

本程序用于建立简单的静态展示网站,直接将Markdown文件翻译成HTML,并且允许使用模板文件md.tpl美化页面。

网站的根目录是files目录,首页是index.md

如果根目录或子目录中有md.tpl文件,会使用目录中的模板文件,否则将使用默认的md.tpl

允许显示一组轮播图片,用ad.json指定图片列表和相应的URL,使用方法参考例子中的md.tplad.js程序的配合方法。

About MarkdownWeb

This program is used to build a simple static display website, translate the 'markdown' file directly into 'HTML', and allow the template file 'md.tpl' to beautify the page.

The root directory of the website is the 'files' directory. The homepage is index.md.

If there is an 'md.tpl' file in the directory (or sub directory), the template file in the directory will be used. Otherwise, the default 'md.tpl' will be used.

It is allowed to display a group of rotation pictures. Use 'ad.json' to specify the picture list and the corresponding 'URL'. Refer to the matching method of 'md.tpl' and 'ad.js' in the example for the usage method.

实例网站文件结构 ( Directory struct of the example web site )

MarkdownWeb/
├── markdownweb
├── ad.json
├── md.tpl
├── files
│   ├── ad.js
│   ├── appimagelauncher.md
│   ├── bei-an.png
│   ├── connpool.md
│   ├── favicon.ico
│   ├── images
│   │   ├── 1.png
│   │   ├── 2.png
│   │   ├── diary.jpg
│   │   ├── res.png
│   │   └── shot.png
│   ├── index.md
│   ├── jquery-3.3.1.min.js
│   ├── mdserv.md
│   ├── md.tpl
│   ├── mdview.md
│   ├── pipeconn.md
│   ├── pluginloader.md
│   ├── rpc2d.md
│   ├── RunOnUbuntu1904.md
│   ├── secret-diary-1206-win32.zip
│   ├── secret-diary.md
│   ├── shipgunner.md
│   ├── style.css
│   └── traycontroller.md

You can’t perform that action at this time.