个人主页模板,homepage
Go to file
2022-07-04 11:48:10 +08:00
.vscode up music 2022-01-18 20:11:30 +08:00
css 修改鼠标样式 #7 2022-06-30 11:58:43 +08:00
font 字体压缩 & 速度优化 2022-06-21 12:02:27 +08:00
img 添加配置文件 2022-06-28 17:27:23 +08:00
js 更新 51LA 统计 2022-07-04 11:48:10 +08:00
old 添加 Vercel 404 跳转 2022-01-22 10:17:35 +08:00
upgrade-your-browser 音乐播放方式改变 & 去除无用的代码压缩 2022-05-22 12:02:03 +08:00
.gitignore 弹窗样式修改 2022-03-04 18:52:51 +08:00
favicon.ico first commit 2021-09-25 22:57:18 +08:00
index.html 修改鼠标样式 #7 2022-06-30 11:58:43 +08:00
LICENSE LICENSE 2022-02-10 16:09:09 +08:00
manifest.json PWA Test 2022-06-21 17:23:38 +08:00
README_EN.md 更新配置文件说明 2022-06-28 17:50:15 +08:00
README.md 更新配置文件说明 2022-06-28 17:50:15 +08:00
setting.json 添加配置文件 2022-06-28 17:27:23 +08:00
sw.js PWA Test 2022-06-21 17:23:38 +08:00
vercel.json Update vercel.json 2022-01-22 10:18:47 +08:00

English | Chinese

無名の主页

Simple little homepage, had enough of the original one and made a new one

無名の主页

The logo font on the home page has been compressed, so if you use a font other than this logo, it will change back to the default font, Here is the full font

Weather API is limited to 100 times per day, must Apply on your own, or change to another api

Demo

Due to CDN caching, you may need Ctrl + F5 to force a browser cache refresh to see the latest results

Functions

  • Loading animation
  • Site description
  • Hitokoto
  • Date and time
  • Live weather
  • Time progress bar
  • Music player
  • Mobile adaptation
  • Haven't thought about it yet

Configuration

This project uses json file to configure the site content, the configuration is not affected by version updates, you can write custom configuration to setting.json to change the page content

Configuration instructions
{
    "title": "Title of the page",
    "description": "Short description of the page",
    "keywords": "Keyword(s)",
    "author": "author of the page",
    "logo_img": "Logo image path",
    "logo_text_1": "Domain Prefix",
    "logo_text_2": "Domain_suffix",
    "des_title": [
        "Hello World !" , // site description title
        "A small site built in the 21st century, living on the edge of the Internet" // site description content
    ],
    "des_title_change": [
        "Oops !" , //text after clicking on the site's title
        "Oops, you found this ( click once more to close )" //text after click on site content
    ],
    "github": "imsyy", //Github username
    "qq": "1539250352", //QQ
    "email": "one@imsyy.top", //email email
    "telegram": "bottom_user", //Telegram user name
    "twitter": "iimmsyy", //Twitter username
    "weather_api": "https://www.yiketianqi.com", //Weather API
    "link_1": [
        "https://blog.imsyy.top/", //link_address
        "fa-solid fa-blog", //icon class name
        "blog" //link text
    ],
    "link_2": [
        "https://drive.imsyy.top/",
        "fa-solid fa-cloud",
        "netdisk"
    ],
    "wallpaper_api": [
        [
            "picture of the day", //name of wallpaper setting item
            "https://api.dujin.org/bing/1920.php" //link to wallpaper image
        ]
    ],
    "Copyright_year": "2020", //site start year
    "Copyright_text": "No name" //Copyright
}

Music

This project uses the Aplayer music player based on MetingJS for quick song list customization
*Only supported in Mainland China, please replace music.js with the following in other regions to enable the music player to work properly

Change the parameters of music.js to achieve a custom song list

var server = "netease"; //netease; tencent; kugou; xiami; kuwo; 
var type = "playlist"; //song; playlist; album;
var id = "7452421335"; //album ID; song ID; playlist ID;

Fonts

As Chinese fonts are introduced in this project, Chinese fonts need to be compressed to improve the loading speed of the page (you can also cancel the use of Chinese fonts)

Chinese font removal traditional

  • Install Python 3.7 and pip
  • Run pip install fonttools
  • Download sc_unicode.txt
  • Run pyftsubset font-name.ttf --unicodes-file=sc_unicode.txt

fonts further compressed

  • Compile and install Google woff2
sudo apt-get install -y git g++ make
git clone --recursive https://github.com/google/woff2.git
cd woff2
make clean all
  • Compress the font again
. /woff2_compress . /font_name.ttf
  • Eventually the original font can be slow loaded, load the compressed font first

For more information, please go to 虹墨空间站 to view the original article

Plugins

API