Code Monkey home page Code Monkey logo

typecho-replit's Introduction

Typecho-Replit

在Replit部署Typecho博客 + Butterfly主题移植 附带插件 LoginDesigner Snow-Typecho-Plugin DynamicLines-typecho-plugin

安装(推荐教育版):

将以下代码粘贴至Replit Shell后回车

git clone https://github.com/Sayafx/typechonreplit.git && mv -b typechonreplit/* ./ && mv -b typechonreplit/.[^.]* ./ && rm -rf *~ && rm -rf typechonreplit

当加载完 Detected change in environment, reloading shell... 在Shell输入sh main.sh初始化,初始化完成后点击绿色 ▶ Run 运行

默认请使用原生sqlite数据库

修改自valetzx/typechonreplit

修改内容

原作者Butterfly主题移植地址失效,已更改 添加了下列插件

关于图床

推荐使用 PicGo + bilibili 图床

在 PicGo 中安装bilibili图床插件

  • 在线安装

    打开 PicGo 详细窗口,选择插件设置,搜索bili安装,然后重启应用即可。

  • 离线安装

    克隆该项目,复制项目到 以下目录:

    • Windows: %APPDATA%\picgo\
    • Linux: $XDG_CONFIG_HOME/picgo/ or ~/.config/picgo/
    • macOS: ~/Library/Application\ Support/picgo/

    切换到新目录执行 npm install ./picgo-plugin-smms-user,然后重启应用即可。

获取B站SESSDATA

  1. 登录B站
  2. F12打开控制台
  3. 找到SESSDATA复制即可img

解决B站防盗链(403)

B站开启了防盗链,利用的是HTTP的Referer属性做判断。如果Referer是他白名单之外的网站,就会返回403

全站图片使用

在外观-设置外观里找到自定义head标签内位置内容,设置如下标志,那么全站资源引用都不会携带referrer

<meta name="referrer" content="no-referrer">

具体配置点此查看

PS. 自行启用插件和主题

Snow插件推荐设置,观感较好。 Snow设置

博客原址

typecho-replit's People

Contributors

sayafx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.