<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>All Posts -</title><link>http://molicx.github.io/posts/</link><description>All Posts |</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>vindamocx@gmail.com (shawn)</managingEditor><webMaster>vindamocx@gmail.com (shawn)</webMaster><lastBuildDate>Tue, 26 Aug 2025 10:30:00 +0800</lastBuildDate><atom:link href="http://molicx.github.io/posts/" rel="self" type="application/rss+xml"/><item><title>更新服务器DNS</title><link>http://molicx.github.io/posts/update-dns-script/</link><pubDate>Tue, 26 Aug 2025 10:30:00 +0800</pubDate><author>shawn</author><guid>http://molicx.github.io/posts/update-dns-script/</guid><description><![CDATA[由于众所周知的原因，国内的云服务器经常出现访问不了github的情况.通过shell脚本实现定时更新的功能
#!/usr/bin/bash # ==================== 配置参数（根据需求修改）==================== # 远程 Hosts 文件的 URL（替换为你的实际远程地址） REMOTE_HOSTS_URL=&#34;https://gitlab.com/ineo6/hosts/-/raw/master/next-hosts&#34; # 更新间隔（秒），默认 1 小时（3600 秒） UPDATE_INTERVAL=3600 # 日志文件路径 LOG_FILE=&#34;/var/log/github_hosts_updater.log&#34; # 备份文件存放目录（自动创建） BACKUP_DIR=&#34;/var/backups/hosts&#34; # 标记：用于识别脚本自动添加的内容（避免覆盖手动配置） START_MARKER=&#34;# === GitHub Hosts Auto-Update Start === #&#34; END_MARKER=&#34;# === GitHub Hosts Auto-Update End === #&#34; # ==================== 配置结束 ==================== # 初始化：创建备份目录、日志文件 init() { # 创建备份目录（若不存在） if [ ! -d &#34;$BACKUP_DIR&#34; ]; then mkdir -p &#34;$BACKUP_DIR&#34; chmod 700 &#34;$BACKUP_DIR&#34; fi # 创建日志文件（若不存在） if [ !]]></description></item><item><title>Hugo使用方法</title><link>http://molicx.github.io/posts/hugo-uage/</link><pubDate>Sun, 15 Oct 2023 10:30:00 +0800</pubDate><author>shawn</author><guid>http://molicx.github.io/posts/hugo-uage/</guid><description>折腾过很多种blog,都半途而废了,借助于AI,搭建hugo
使用 GitHub 配合 Hugo 部署个人博客是一个高效且免费的方案，主要利用 GitHub Pages 托管静态文件。以下是详细步骤：
一、准备工作 安装工具 ○ 安装 Hugo（建议安装扩展版 hugo_extended，支持更多主题功能） ○ 安装 Git ○ 注册 GitHub 账号 二、创建 Hugo 博客项目 初始化博客 打开终端，执行以下命令创建 Hugo 项目（将 my-blog 替换为你的博客名称）： hugo new site my-blog cd my-blog 添加主题 选择一个 Hugo 主题（推荐从 Hugo Themes 挑选），以经典主题 LoveIt 为例： git init # 初始化 Git 仓库 git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt #（添加主题为子模块，方便后续更新） 配置主题 cp themes/LoveIt/exampleSite/config.toml . 编辑 config.toml，修改博客名称、作者、语言等基础信息。
创建第一篇文章bash hugo new posts/hello-hugo.md 打开 content/posts/hello-hugo.</description></item></channel></rss>