启动博客

Le Thu 06 February 2025

创建python ven环境。仅需创建一次。

python -m venv myenv

启用python venv环境。需要在每次使用fish shell时启用。

source myenv/bin/activate.fish

安装pelican

pip install pelican markdown

使用pelican-quickstart创建博客

(myenv) root@ws-cfkazs-0 /workspace# pelican-quickstart 
Welcome to pelican-quickstart v4.11.0.

This script will help you create a new Pelican-based website.

Please answer the following questions so this script can generate the files
needed by Pelican.


> Where do you want to create your new web site? [.] blog.cloudstudio.icu
> What will be the title of this web site? Cloud Studio Blog
> Who will be the author of this web site? 芸芸
> What will be the default language of this web site? [en] zh
> Do you want to specify a URL prefix? e.g., https://example.com   (Y/n) Y
> What is your URL prefix? (see above example; no trailing slash) https://blog.cloudstudio.icu
> Do you want to enable article pagination? (Y/n) y
> How many articles per page do you want? [10] 
> What is your time zone? [Europe/Rome] Asia/Shanghai
> Do you want to generate a tasks.py/Makefile to automate generation and publishing? (Y/n) 
> Do you want to upload your website using FTP? (y/N) 
> Do you want to upload your website using SSH? (y/N) 
> Do you want to upload your website using Dropbox? (y/N) 
> Do you want to upload your website using S3? (y/N) 
> Do you want to upload your website using Rackspace Cloud Files? (y/N) 
> Do you want to upload your website using GitHub Pages? (y/N) 
Done. Your new project is available at /workspace/blog.cloudstudio.icu

书写博客。

在content目录下创建文章。

Par 纳兰风来, Catégorie : my-ops

Tags :