搭建一個永久免費的博客

搭建永久免費的博客(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.pswp.cn/news/906255.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/906255.shtml
英文地址,請注明出處:http://en.pswp.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”命令進行參數的傳遞,并將相應的…