You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The weight is used to order articles, and if you want to hidden an article from the article list, weight is also qualified:
The default weight for each article is 10, if a article's weight is heavier than 10, it will be firstly displayed, and if the weight is negative, the article will be never displayed in the article list
If you want to see more about the source code, checkout the source code readme
Run by docker(recommended)
Run OctBlog by docker is recommended, here are some instruction:
First Run
1. Get your OctBlog image
In command line, switch to OctBlog root directory, and run the following command to build your own OctBlog image:
cd app (sudo) docker build -t gevin/octblog:0.1 .
# Now you can take a cup of coffee and wait for a few minutes :)
Alternatively, pull Octblog image from DockerHub(recommended):
(sudo) docker pull gevin/octblog:0.1
2. Create your docker-compose.yml
You need to create a docker-compose file similar to the docker-compose_no_swarm.yml file
Replace /Users/gevin/projects/data/mongodb with a path on your machine
3. Run OctBlog
(sudo) docker-compose up -d
Then you can visit OctBlog in your brower at http://localhost
All environment variables can be found in /OctBlog/config.py
A .env file example:
wechat_subtitle=Ji Zhu , Sheng Huo Du Yao Zhe Teng
copyright_msg=Zhu :Zhuan Zai Ben Wen ,Qing Yu GevinLian Xi
donation_msg=Ru Guo Nin Jue De GevinDe Wen Zhang You Jie Zhi ,Jiu Qing GevinHe Bei Cha Ba !
wechat_msg=Huan Ying Guan Zhu Wo De Wei Xin Gong Zhong Zhang Hao
google_site_verification=
allow_comment=true
allow_daovoice=true
daovoice_app_id=">DEBUG=false config=prd MONGO_HOST=mongo allow_registration=true allow_su_creation=true
name=Gevin's Blog subtitle=Ji Zhu , Sheng Huo Du Yao Zhe Teng description=Ji Zhu , Sheng Huo Du Yao Zhe Teng
wechat_name=GevinView @ wechat_subtitle=Ji Zhu , Sheng Huo Du Yao Zhe Teng
copyright_msg=Zhu :Zhuan Zai Ben Wen ,Qing Yu GevinLian Xi donation_msg=Ru Guo Nin Jue De GevinDe Wen Zhang You Jie Zhi ,Jiu Qing GevinHe Bei Cha Ba ! wechat_msg=Huan Ying Guan Zhu Wo De Wei Xin Gong Zhong Zhang Hao
google_site_verification= allow_comment=true
allow_daovoice=true daovoice_app_id=
3. Get into OctBlog container
Maybe you would like to dig into the container, the following command will help:
If you find a bug or want to add a new feature, just issue me.
Want to contribute? Please fork OctBlog and pull request to me.
I'm not good at frontend development, so I used a free bootstrap blog theme. If you can redesign the blog theme and admin interface, I'll appriciate your work very much!
About
Yet another blog system powered by Flask and MongoDB