欢迎来到Windows 7风格博客
Windows 7 Style Blog
这是一个使用Hugo构建的Windows 7风格博客系统。它模仿了Windows 7的经典界面,包括开始菜单、任务栏、窗口控制等元素。
功能特点
- Windows 7风格的界面设计
- 可拖动的窗口
- 最小化/最大化/关闭按钮
- 开始菜单
- 任务栏导航
- 实时时钟显示
- 响应式设计
安装要求
- Hugo (推荐使用最新版本)
- 现代浏览器
快速开始
- 安装Hugo:
# Windows (使用Chocolatey)
choco install hugo-extended
# 或者从Hugo官网下载二进制文件
# https://gohugo.io/installation/
- 克隆此仓库:
git clone https://github.com/yourusername/win7-blog.git
cd win7-blog
- 构建前清空 public/,确保输出目录只包含最新生成的内容。
hugo --cleanDestinationDir
- 启动开发服务器:
hugo server -D
- 在浏览器中访问
http://localhost:1313
创建新文章
hugo new posts/your-post-title.md
自定义
- 修改
config.toml中的配置 - 在
content/posts/目录下添加新的文章 - 在
themes/win7-theme/static/images/中添加自定义图片 - 修改
themes/win7-theme/static/css/win7.css自定义样式
构建静态网站
hugo
生成的静态文件将在 public 目录中。
许可证
MIT License
贡献
欢迎提交问题和拉取请求!
该博客需要访问 BBC 网站,需要设置代理
- Windows下设置代理
$env:http_proxy="http://127.0.0.1:7897"
$env:https_proxy="https://127.0.0.1:7897"
termux 运行
hugo server --noBuildLock -D