搭建一个永久免费的博客

搭建永久免费的博客(1)基本介绍

Hugo+Stack+GitHub

GitHub

GitHub

GitHub · Build and ship software on a single, collaborative platform · GitHub

下载安装git

Git - Downloads

Edge插件authenticator 2fa client

Settings->Password and authentication->Authenticator app->Edit

国内访问设置

# 打开 Hosts 文件(Windows 路径:C:\Windows\System32\drivers\etc\hosts)
notepad C:\Windows\System32\drivers\etc\hosts# 添加以下内容
140.82.114.3 github.com
140.82.114.4 gist.github.com
151.101.1.194 github.global.SSL.fastly.net# 保存文件后,刷新 DNS 缓存
ipconfig /flushdns

其他方法:使用加速器可以有效提高访问速度。推荐使用 Watt Toolkit(Steam++) 或 网易 UU 加速器

Hugo

Hugo v0.131.0

https://github.com/gohugoio/hugo

# 创建网站项目
hugo new site teacher_blog
# 启动服务
hugo server -D
# 创建文章
hugo new content post/about-me/index.md
hugo new content post/about-me/index.zh-cn.md

Stack

Stack v3.26.0

GitHub - CaiJimmy/hugo-theme-stack: Card-style Hugo theme designed for bloggers

Emoji

全部Emoji(3781) | EmojiAll

utterances

utterances

为Hugo构建的博客站点添加评论组件 - 简书

icons

Tabler Icons: 5900+ free vector icons for web design

iconfont-阿里巴巴矢量图标库

baseurl: freshman118.github.io
languageCode: en-us
theme: hugo-theme-stack
paginate: 5
title: 90后小陈老师
copyright: 90后小陈老师# Theme i18n support
# Available values: ar, bn, ca, de, el, en, es, fr, hu, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw
DefaultContentLanguage: zh-cn# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
# This will make .Summary and .WordCount behave correctly for CJK languages.
hasCJKLanguage: falselanguages:zh-cn:languageName: 中文title: 90后小陈老师weight: 2params:description: 演示说明
services:# Change it to your Disqus shortname before usingdisqus:shortname: "hugo-theme-stack"# GA Tracking IDgoogleAnalytics:id:permalinks:post: /p/:slug/page: /:slug/params:mainSections:- postfeaturedImageField: imagerssFullContent: truefavicon: # e.g.: favicon placed in `static/favicon.ico` of your site folder, then set this field to `/favicon.ico` (`/` is necessary)footer:since: 2025customText: dateFormat:published: 2006-02-02lastUpdated: 2006-02-02T13:18:50sidebar:emoji: 😁subtitle: 分享技术,享受生活avatar:enabled: truelocal: truesrc: img/avatar.jpgarticle:math: falsetoc: truereadingTime: falsecomments:enabled: trueprovider: disqusdisqusjs:shortname:apiUrl:apiKey:admin:adminLabel:utterances:repo:issueTerm: pathnamelabel:beaudar:repo:issueTerm: pathnamelabel:theme:        remark42:host:site:locale:vssue:platform:owner:repo:clientId:clientSecret:autoCreateIssue: false# Waline client configuration see: https://waline.js.org/en/reference/component.htmlwaline:serverURL:lang:pageview:emoji:- https://unpkg.com/@waline/emojis@1.0.1/weiborequiredMeta:- name- email- urllocale:admin: Adminplaceholder:twikoo:envId:region:path:lang:# See https://cactus.chat/docs/reference/web-client/#configuration for description of the various optionscactus:defaultHomeserverUrl: "https://matrix.cactus.chat:8448"serverName: "cactus.chat"siteName: "" # You must insert a unique identifier here matching the one you registered (See https://cactus.chat/docs/getting-started/quick-start/#register-your-site)giscus:repo:repoID:category:categoryID:mapping:lightTheme:darkTheme:reactionsEnabled: 1emitMetadata: 0gitalk:owner:admin:repo:clientID:clientSecret:cusdis:host:id:widgets:homepage:- type: search- type: archives# 显示归档年份数量params:limit: 4- type: categoriesparams:limit: 10# - type: tag-cloud#   params:#       limit: 10page:- type: tocopengraph:twitter:# Your Twitter usernamesite:# Available values: summary, summary_large_imagecard: summary_large_imagedefaultImage:opengraph:enabled: falselocal: falsesrc:colorScheme:# Display toggletoggle: true# Available values: auto, light, darkdefault: autoimageProcessing:cover:enabled: truecontent:enabled: true### Custom menu
### See https://stack.jimmycai.com/config/menu
### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter
menu:main: []social:- identifier: githubname: GitHuburl: https://github.com/freshman118params:icon: brand-github- identifier: bilibiliname: Bilibiliurl: https://space.bilibili.com/3493114532596161params:icon: brand-bilibilirelated:includeNewer: truethreshold: 60toLower: falseindices:- name: tagsweight: 100- name: categoriesweight: 200markup:goldmark:renderer:## Set to true if you have HTML content inside Markdownunsafe: truetableOfContents:endLevel: 4ordered: truestartLevel: 2highlight:noClasses: falsecodeFences: trueguessSyntax: truelineNoStart: 1lineNos: truelineNumbersInTable: truetabWidth: 4

上线

创建GitHub仓库

freshman118.github.io

hugo -D
cd public git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/freshman118/freshman118.github.io.git
git push -u origin main
git push -f origin main# 取消代理
git config --global --unset http.proxy 
git config --global --unset https.proxy
hugo -D
cd public 
git add .
git commit -m "3 commit"
git push -u origin main

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/906255.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

基于SpringBoot的小型民营加油站管理系统

作者:计算机学姐 开发技术:SpringBoot、SSM、Vue、MySQL、JSP、ElementUI、Python、小程序等,“文末源码”。 专栏推荐:前后端分离项目源码、SpringBoot项目源码、Vue项目源码、SSM项目源码、微信小程序源码 精品专栏:…

推荐一个Winform开源的UI工具包

从零学习构建一个完整的系统 推荐一个开源、免费的适合.NET WinForms 控件的套件。 项目简介 Krypton是一套开源的.Net组件,用于快速构建具有丰富UI交互的WinForms应用程序。 丰富的UI控件,提供了48个基础控件,如按钮、文本框、标签、下拉…

社交平台推出IP关联机制:增强用户体验与网络安全的新举措

社交平台为我们提供与亲朋好友保持联系、分享生活点滴的便捷渠道,还成为了信息传播、观点交流的重要平台。然而,随着社交平台的普及,网络空间中的虚假信息、恶意行为等问题也日益凸显。为了应对这些挑战,许多社交平台相继推出IP关…

系统架构设计(八):三层架构

什么是三层架构(Three-Tier Architecture) 三层架构是将系统分为三大逻辑层:表示层(Presentation)、业务逻辑层(Business Logic)、数据访问层(Data Access),…

C语法备注01

(1)char 字符类 char 既可以是 整数 类型,也可以是 字符 类型。z字符 类型可以转化为对应的ASC2值。 int main(){char c;char e;c 1;char d 1;e A;printf("c %d\n", c);printf("d %d\n", d);printf("e %d\n…

CVE-2015-2183 Zeuscart SQL注入漏洞

CVE-2015-2183 Zeuscart SQL注入漏洞 主页 访问/admin/进行登录 访问:http://192.168.1.3/admin/?doeditcurrency&cid1 单引号测试,发现页面发生变化,进一步测试 order by 5 ,页面正常,order by 6时页面发生变…

Go 语言即时通讯系统开发日志-日志day2-5:架构设计与日志封装

Go语言即时通讯系统开发日志day2 计划:学习go中MySQL,Redis的使用,使用MySQL和Redis完成一个单聊demo。 总结:现在每天下午用来开发这个项目,如果有课的话可能学习时间只有3-4个小时,再加上今天的学习效率不…

对盒模型的理解

对CSS盒模型的深入理解 CSS盒模型是网页布局的基础概念,它描述了HTML元素在页面中所占的空间以及如何计算这些空间。以下是关于盒模型的全面解析: 1. 盒模型的基本组成 每个HTML元素都被视为一个矩形的盒子,这个盒子由内到外由四部分组成&…

RV1126多线程获取SMARTP的GOP模式数据和普通GOP模式数据

通过代码的方式同时获取SMARTP模式的VENC码流数据和普通GOP模式的VENC码流数据,并进行对比画质。 一.RV1126 VI采集摄像头数据并同时编码SMARTP模式和普通GOP模式的编码码流流程 RV1126利用多线程同时获取普通GOP的VENC码流数据和SMARTP的码流数据一般如上图&#…

在Ubuntu使用 Ansible 配置 Azure 资源的动态清单

使用 Ansible 配置 Azure 资源的动态清单 简介1.安装pipx2.通过 pipx 安装 Ansible3.安装azure.azcollection4.安装集合所需的依赖项5.生成动态库存 简介 在主机变化不定的云环境中,Ansible 的动态清单功能可以消除维护静态清单文件的负担 本教程将带你使用 Azure…

车载诊断架构 ---车载总线对于功能寻址的处理策略

我是穿拖鞋的汉子,魔都中坚持长期主义的汽车电子工程师。 老规矩,分享一段喜欢的文字,避免自己成为高知识低文化的工程师: 钝感力的“钝”,不是木讷、迟钝,而是直面困境的韧劲和耐力,是面对外界噪音的通透淡然。 生活中有两种人,一种人格外在意别人的眼光;另一种人无论…

Github 2025-05-16 Java开源项目日报 Top9

根据Github Trendings的统计,今日(2025-05-16统计)共有9个项目上榜。根据开发语言中项目的数量,汇总情况如下: 开发语言项目数量Java项目9Netty:异步事件驱动的网络应用程序框架 创建周期:5043 天开发语言:Java协议类型:Apache License 2.0Star数量:33219 个Fork数量:…

大语言模型(LLM)如何通过“思考时间”(即推理时的计算资源)提升推理能力

大语言模型(LLM)如何通过“思考时间”(即推理时的计算资源)提升推理能力 核心围绕人类思维机制、模型架构改进、训练方法优化等展开 一、人类思维的启发:快思考与慢思考 类比心理学: 人类思维分两种模式: 快思考(系统1):直觉驱动,快速但易出错(如估算简单问题)。…

【ubuntu24.04】pycharm 死机结束进程

windows 远程pycharm到ubuntu执行程序 pycharm 在调试过程中,内存耗尽,然后死机了 pycharm 进程 (base) rootk8s-master-pfsrv:/home/zhangbin/下载# ps -ef | grep pycharm root 121245 3230568 0 5月14 pts/8 00:00:00 /bin/bash --rcfile …

从虚拟仿真到行业实训再到具身智能--华清远见嵌入式物联网人工智能全链路教学方案

2025年5月23-25日,第63届中国高等教育博览会(高博会)将在长春中铁东北亚国际博览中心举办。作为国内高等教育领域规模大、影响力广的综合性展会,高博会始终聚焦教育科技前沿,吸引全国高校管理者、一线教师、教育科技企…

本地部署dify+ragflow+deepseek ,结合小模型实现故障预测,并结合本地知识库和大模型给出维修建议

1.准备工作 使用ollama 拉取deepseek-r1:7b 官网下载ollama ollama run deepseek-r1:7b ollama list Ragflow专注于构建基于检索增强生成(RAG)的工作流,强调模块化和轻量化,适合处理复杂文档格式和需要高精度检索的场景。Dify…

https://api.ipify.org/?format=json 不好使

https://api.ipify.org/?formatjson 打不开,用下面新地址 https://api64.ipify.org/?formatjson

Linux基础开发工具三(git,gdb/cgdb)

不知道你⼯作或学习时,有没有遇到这样的情况:我们在编写各种⽂档时,为了防⽌⽂档丢失,更改 失误,失误后能恢复到原来的版本,不得不复制出⼀个副本,⽐如: “报告-v1” “报告-v2” …

如何优化 Elasticsearch 磁盘空间和使用情况

作者:来自 Elastic Kofi Bartlett 解释如何防止和处理磁盘过满(过度使用)以及磁盘容量未被充分利用的情况。 想获得 Elastic 认证?了解下一次 Elasticsearch Engineer 培训的时间吧! Elasticsearch 拥有许多新功能&am…

itop-3568开发板驱动开发指南-实验程序的编写

本实验对应的网盘路径为:iTOP-RK3568 开发板【底板 V1.7 版本】\03_【iTOP-RK3568开发板】指南教程\02_Linux 驱动配套资料\04_Linux 驱动例程\02。 本章实验将编写 Linux 下的驱动传参实例代码,通过“insmod”命令进行参数的传递,并将相应的…