# 记录一下网站优化
# SEO 优化
在 传统 SEO 的基础上,优化了在 facebook 和 twitter 等社交网站的展示
<!-- 传统 SEO -->
<meta name="author" content="gausszhou">
<meta name="keywords" content="gausszhou, Gauss Zhou, 前端, 后端, AI, LLM, 大模型">
<meta name="description" content="Gauss Zhou 的个人网站">
<!-- 社交 facebook -->
<meta name="og:image" content="https://www.gausszhou.top/avatar.webp">
<meta name="og:url" content="https://www.gausszhou.top/">
<meta name="og:type" content="article">
<meta name="og:site_name" content="Gauss Zhou">
<meta name="og:title" content="Gauss Zhou 的个人网站">
<meta name="og:description" content="出门在外,身份都是自己给的。你好,我是模拟器考古学家以及在线工具批发商。">
<!-- 社交 twitter -->
<meta name="twitter:image" content="https://www.gausszhou.top/avatar.webp">
<meta name="twitter:card" content="summary">
<meta name="twitter:creator" content="@zcgauss" />
<meta name="twitter:site" content="@zcgauss">
<meta name="twitter:title" content="Gauss Zhou 的个人网站">
<meta name="twitter:description" content="出门在外,身份都是自己给的。你好,我是模拟器考古学家以及在线工具批发商。">
# 性能优化
移除过多的 preload,目前网站上页面太多了,大部分时间只是想看其中特定的几个,没必要全部预加载。
# replace
# <link rel="preload".*>
time=$(date "+%Y-%m-%d %H:%M:%S")
echo "remove preload start in $time"
find ./dist -type f -name "*.html" -exec sed -i '/<link rel="preload".*/d' {} +
time=$(date "+%Y-%m-%d %H:%M:%S")
echo "remove preload end in $time"