认真是我们
参与这个社会的方式

Typecho与小程序

安装Typecho

跟WP差不多,不同的是这次在虚拟主机上部署,伪静态需要手动在网站目录建立 .htaccess 文件,加入下面的规则。

<IfModule mod_rewrite.c>
RewriteEngine On
# 下面是在根目录,文件夹要修改路径,如 /oldtang/
RewriteBase /home/wesjkgss/js.lastime.site/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

如果是NGINX,则

    server {
        listen          80;
        server_name     yourdomain.com;
        root            /home/yourdomain/www/;
        index           index.html index.htm index.php;
 
        if (!-e $request_filename) {
            rewrite ^(.*)$ /index.php$1 last;
        }
 
        location ~ .*\.php(\/.*)*$ {
            include fastcgi.conf;
            fastcgi_pass  127.0.0.1:9000;
        }
 
        access_log logs/yourdomain.log combined;
    }

Typecho主题

发现了两个比较喜欢的

https://www.rinvay.cc/

https://www.offodd.com/

放弃

Typecho与小程序的对接程序搞不定=-=,可能是环境问题,也可能是程序本身的问题。

暂时放弃使用typecho作为小程序后端。但是typecho的主题真的很美,后台也舒服,有种大隐隐于市的感觉。

 

 

 

没有故事 也没有酒

点也没用点也没用