GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — itsfated.github.io/prepare.sh at main · ItsFated/itsfated.github.io

Expand file tree

/

prepare.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
27 lines (22 loc) · 1.13 KB
/

prepare.sh

Copy path

File metadata and controls

executable file
·
27 lines (22 loc) · 1.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.