GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — itsfated.github.io/prepare.sh at main · ItsFated/itsfated.github.io Expand file tree/ Copy pathprepare.shMore file actions executable file ·27 lines (22 loc) · 1.13 KB / Copy pathprepare.shFile metadata and controlsexecutable file ·27 lines (22 loc) · 1.13 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 # 示例: # ./prepare.sh itsfated.top appId appKey repo_id category_id ID0123456789 no_comments # 替换域名 sed -i "s#url: https://itsfated.github.io/#url: https://$1/#" _config.yml sed -i "s#https://itsfated.github.io/atom.xml#https://$1/atom.xml#" _config.butterfly.yml # 替换配置 sed -i "s/56a07c6f-5882-412b-b502-154543266a8b/$2/" _config.butterfly.yml sed -i "s/ca126f51-86c5-41c5-a45c-7b584082fbcc/$3/" _config.butterfly.yml sed -i "s/da657660-f72f-401a-bfcc-f87aa68b9997/$4/" _config.butterfly.yml sed -i "s/e7fcd585-59b1-4dac-a218-10dc1c585b10/$5/" _config.butterfly.yml # 替换底部自定义字符串,如:备案号 sed -i "s!348c3414-b358-4a50-be83-7d20fcb25770!$6!" _config.butterfly.yml # 关闭评论 if [[ $7 == "no_comments" ]]; then sed -i "s/ use: valine,Giscus/ use: /" _config.butterfly.yml sed -i "s/ text: true/ text: /" _config.butterfly.yml sed -i "s/ lazyload: true/ lazyload: /" _config.butterfly.yml sed -i "s/ count: true/ count: /" _config.butterfly.yml sed -i "s/ card_post_count: true/ card_post_count: /" _config.butterfly.yml fi # 替换图片路径 bash replace_img.sh root |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |