How to use Gitblog and Markdown to create your own blog, gitblogmarkdown. How to use Gitblog and Markdown to create your own blog. here is how to use Gitblog and Markdown to create your own blog, how do you have servers or cloud platforms and use Gitblog and Markdown to create your own blog, gitblogmarkdown
Next, I will share with you how to use Gitblog and Markdown to create your own blog, and how you own servers or cloud hosts provided by the cloud platform. I recommend you use Linux + Nginx to run Gitblog, if only the Apache environment is available.
Domain name resolution
Resolve your prepared domain name to your host IP address. we recommend that you use dnspod to manage and monitor your domain name. for detailed usage instructions, refer to the dnspod official documentation, which is very simple.
Nginx + PHP runtime environment
First, install your Nginx and PHP environment. The PHP version must be later than 5.3. If you have not installed Nginx, you can search for related tutorials on Google or refer to official Nginx and PHP documents. This is the first step. there is a normal Nginx + PHP running environment.
Configure Nginx
Nginx can be configured as follows:
server { listen 80; server_name jockchou.gitblog.cn; root /data/vhosts/jockchou.gitblog.cn; index index.html index.htm index.php; location ~ \.(jpg|png|gif|js|css|swf|flv|ico)$ { expires 12h; } location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?$1 last ; break; } } location ~* ^/(doc|logs|app|sys)/ { return 403; } location ~ .*\.(php|php5)?$ { fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }}
Change server_name and root in the preceding configuration to your own, and configure fastcgi_pass with your CGI process Port.
Permission configuration
Because the Gitblog cache mechanism requires the write app/cache Directory, if necessary, view and modify the permission of this directory to ensure that your PHP has the permission to write this directory. Generally, you only need to change the owner and Group of the directory to the CGI running account.
Run
After the above configuration, start your Nginx and CGI services, upload the source code of Gitblog to the website directory, access and resolve it to the local domain name through a browser to observe the page effect. If the page is not displayed normally, check your CGI and Nginx configuration through the error code.
Gitblog introduction
I. INTRODUCTION
Gitblog is a simple and easy-to-use Markdown blog system. it does not require databases and has no management background functions. to update a blog, you only need to add the Markdown file you have written. It gets rid of the online editor layout difficulties and cannot preview in real time. everything is done by Markdown. a blog is a Markdown file. It also supports comments, code highlighting, mathematical formulas, page PV statistics, and other common functions. Gitblog provides different theme styles that you can configure based on your preferences. it is also very easy to create your own blog themes. Gitblog also supports static full-site export. you can export static full-site web Pages to Github Pages.
II. Features
Use Markdown
Comment Box
Code highlighting
PV statistics
Latex mathematical formula
Homemade themes
Responsive
Static full-site export
Good SEO
3. GitBlog advantages
No database is required. The system is lighter and easier to transplant.
You can use Markdown to edit the layout in the background and cannot preview the content in real time.
Static full-site export
Flexible configuration, and some functions can be switched freely
Supports multiple themes and allows you to customize themes.
Blog, category, tag, archiving
IV. environment requirements
PHP 5.2.4 +
5. installation steps
Download Gitblog source code
Decompress the package and upload it to the root directory of your PHP website.
Open a browser and visit the homepage of the website.
Upload the Markdown file to the posts folder
The above content is how to use Gitblog and Markdown to create all the content of your blog. I hope you will like it.
Tips: I will share with you how to use Gitblog and Markdown to create your own blog, and how to have your own server or cloud platform...