# 1. 在cmd輸入PowerShell# 2. 輸入 Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityPro" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)站運營 > 快速搭建個人網(wǎng)站

快速搭建個人網(wǎng)站

時間:2023-05-30 04:51:01 | 來源:網(wǎng)站運營

時間:2023-05-30 04:51:01 來源:網(wǎng)站運營

快速搭建個人網(wǎng)站:

1. 下載Hogo

1.1 安裝choco

choco 是windows下的包管理軟件

# 1. 在cmd輸入PowerShell# 2. 輸入 Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))# 參考:https://blog.csdn.net/weixin_41831919/article/details/116209846?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~aggregatepage~first_rank_ecpm_v1~rank_v31_ecpm-1-116209846.pc_agg_new_rank&utm_term=%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85choco&spm=1000.2123.3001.4430

2.2 安裝Hugo

choco install hugo -confirm
安裝參考:Install Hugo






2. Hugo

1. 讓Hugo在本地建立一個網(wǎng)站

hogo new site filename# 例如hogo new site Works


2. 配置主題

下載主題,這里使用的主題是:https://themes.gohugo.io/themes/hugo-theme-cleanwhite/

把主題下載到Works/themes文件下面

3. 按照主題進行設(shè)置

把Works/themes/hugo-theme-cleanwhite/exampleSite 中的所有文件放到D:/github_hugo/Works 下面,點擊覆蓋即可

3. 啟動

githun_hugo/Works 文件夾下面執(zhí)行

hugo serve





4. github變?yōu)樗腥丝稍L問

1. 在github上建立一個倉庫

名字為:github名字.http://github.io

2.

首先修改baseUrl

然后在命令行輸入

命令行輸入hugo --baseUrl="https://wanghuineu.github.io/" --bulidDrafts會產(chǎn)生一個public文件夾

把public文件夾中的所有內(nèi)容放在WangHuiNeU.github.io github上即可







可以做個人博客或者簡歷網(wǎng)站!

參考:
The world’s fastest framework for building websites
Hugo - 10分鐘搭建 & 部署個人網(wǎng)站/博客,簡歷中的博客網(wǎng)站怎么建_嗶哩嗶哩_bilibili
個人簡歷參考的demo:https://hugo-toha.github.io/



2022年2月13日

--------------------------------------------

1. 模板的使用和更新

categories 對應(yīng)上面的label

tags對應(yīng)下面的label





2. 檢索

https://themes.gohugo.io/themes/hugo-theme-cleanwhite/

檢索沒有設(shè)置成功,有時間再回來設(shè)置

參考:

Static site search with Hugo + Algolia
Sign in



3. 設(shè)置評論

https://www.joelnitta.com/posts/2021-11-24_using-giscus/
倉庫id
GitHub倉庫ID號碼是否永久? - VoidCC
giscus

加入了評論功能




--------------------------------------

運行

會產(chǎn)生一個public文件,將public文件中的所有內(nèi)容復(fù)制到D:/github_hugo/Works/WangHuiNEU.github.io

然后使用github/Desktop push到github上即可

hugo --baseUrl="https://wanghuineu.github.io/"


撰寫文章

加上hide-in-home 那么tags不會出現(xiàn)在FEATURED TAGS 里面




只有出現(xiàn)兩篇文章時候,FEATURED TAGS 里面才會出現(xiàn)tag





關(guān)鍵詞:

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點擊下載Chrome瀏覽器
關(guān)閉