首页 > 其他分享 >hugo主题-meme配置

hugo主题-meme配置

时间:2023-06-07 22:34:38浏览次数:39  
标签:meme git hugo Git Go 主题 go config

安装git和go

Installing on Windows git

官方文档
There are also a few ways to install Git on Windows. The most official build is available for download on the Git website. Just go to https://git-scm.com/download/win and the download will start automatically. Note that this is a project called Git for Windows, which is separate from Git itself; for more information on it, go to https://gitforwindows.org.
To get an automated installation you can use the Git Chocolatey package. Note that the Chocolatey package is community maintained.

Go installation

官方文档
download go

  1. Open the MSI file you downloaded and follow the prompts to install Go.By default, the installer will install Go to Program Files or Program Files (x86). You can change the location as needed. After installing, you will need to close and reopen any open command prompts so that changes to the environment made by the installer are reflected at the command prompt.(安装完成后关闭所有cmd)
  2. Verify that you've installed Go.
    1. In Windows, click the Start menu.
    2. In the menu's search box, type cmd, then press the Enter key.
    3. In the Command Prompt window that appears, type the following command:

go version

  1. Confirm that the command prints the installed version of Go.

image.png

安装hugo

官方文档
Prebuilt binaries are available for a variety of operating systems and architectures. Visit the latest release page, and scroll down to the Assets section.
image.png

  1. Download the archive for the desired edition, operating system, and architecture
  2. Extract the archive
  3. Move the executable to the desired directory
  4. Add this directory to the PATH environment variable
    1. image.png
    2. 不想配置Path可以在hugo安装位置处点击文件夹路径再输入cmd
  5. Verify that you have execute permission on the file

Please consult your operating system documentation if you need help setting file permissions or modifying your PATH environment variable.
If you do not see a prebuilt binary for the desired edition, operating system, and architecture, install Hugo using one of the methods described below.

创建hugo文件 && 创建MemE主题

在你的博客文件夹中右键git bash here
image.png
输入

hugo new site blog (创建blog文件夹并放入hugo文件)

注意文件夹名称不要起hugo

安装 MemE

  1. cd blog
  2. git init
  3. git submodule add --depth 1 https://github.com/reuixiy/hugo-theme-meme.git themes/meme
  4. rm config.toml && cp themes/meme/config-examples/zh-cn/config.toml config.toml

新建文章

hugo new "posts/hello-world.md"
hugo new "about/_index.md"

启动服务

hugo server -D

配置github action

详见此处

将hugo配置到其他地方

对象存储 COS

未实现,先mark

IPFS 网络

未实现,先mark

图床不显示图片

原因不明,不能复现问题
我使用的是腾讯云的图床,但是部署到github发现不能使用
最后将config.toml中的enableMediumZoom = false置为false即可(true也没事)
可能是防盗链的关系

标签:meme,git,hugo,Git,Go,主题,go,config
From: https://www.cnblogs.com/zds1366/p/17464761.html

相关文章

  • hugp-MemE关键美化
    配置frontmatter使用vscodesnippet快捷生成frontmatter参考博客:vs-code-workflows-for-hugo、markdown-snippets-not-working-in-vscode在使用了obsidian后,加入一些插件如quickadd等,优化了文章撰写,但是obsidian不能在网页端登陆,虽然多个平台都有部署安装包,此外仅支持md文件......
  • cpp: Memento Pattern
     /*****************************************************************//***\fileActorMemento.h*\brief备忘录模式MementoPattern亦称:快照、Snapshot、MementoC++14*2023年6月6日涂聚文GeovinDuVisualStudio2022edit.*\authorgeovindu*\da......
  • uniapp主题切换功能的第一种实现方式(scss变量+vuex)
    随着用户端体验的不断提升,很多应用在上线的时候都要求做不同的主题,最基本的就是白天与夜间主题。就像b站app主题切换,像这样的uniapp因为能轻松实现多端发布而得到很多开发者的青睐,但每个端的实现也有可能不同,现我把已实现的功能一点点的大家分享给大家,须要的可以参考一下,可......
  • 2023-06-03 hexo+next主题之如何设置菜单图标
    注意是next主题找到你的博客\themes\hexo-theme-next里的_config.yml文件,搜索menu,如:menu:home:/||homeabout:/about/||usertags:/tags/||tagscategories:/categories/||tharchives:/archives/||archivealbum:/album/比如我现在创建了album(相册)菜单,......
  • FL Studio 21官方中文版重磅发布啦,多样主题随心换!
    根据大众需求,FLStudio21官方中文版引入了令人兴奋的工作流程选项,包括分组乐器频道,播放列表轨道和混音器轨道;直接录制到指定的播放列表曲目,前或后FX;Stepsequencer循环的返回等等。FLStudio的软件免费升级更新政策能坚持25年,因此所有FLStudio用户均可免费更新。2023年推出的F......
  • 主题配置
    碎碎念嗯,时隔多久也记不清了,我又回来了,总算是忙里偷闲把这篇文章写出来,有人要过很多次我的博客园美化方案,但是实在是忙啊,也因为我的前台技术不好,代码bug很多,所以也有点不想把这个美化发出来,但是因为个人博客搭建完成了,以后主要精力还是在那边,所以就成全大家。本博客美化样式风格......
  • NLP自然语言处理—主题模型LDA案例:挖掘人民网留言板文本数据|附代码数据
    全文链接:http://tecdat.cn/?p=2155最近我们被客户要求撰写关于NLP自然语言处理的研究报告,包括一些图形和统计输出。随着网民规模的不断扩大,互联网不仅是传统媒体和生活方式的补充,也是民意凸显的地带。领导干部参与网络问政的制度化正在成为一种发展趋势,这种趋势与互联网发展的时......
  • 2023-06-02 hexo更换主题后报错
    具体报错如下:{%extends'_layout.swig'%}{%import'_macro/post.swig'aspost_template%}{%import'_macro/sidebar.swig'assidebar_template%}{%blocktitle%}{{config.title}}{%iftheme.index_with_subtitleandconfig.subti......
  • 记录6年时间3套easyui前端框架主题皮肤美化的ui设计历程
    沉寂了许久,是该发点东西了,要不然2023年都要过去一半了!第一次接触Easyui前端框架,还是在2016年的时候,有个美化easyui界面的需求,自己是设计师,前端知识也只会最基本的html和css样式,JS只能网上找例子来套用。于是就找前端的朋友一起合作,我设计系统界面的UI,然后前端根据设计,在easyui主题......
  • 界面组件DevExpress WPF中文指南 - 如何应用系统强调色及主题切换
    在最新版本的MicrosoftOffice产品中,用户可以根据系统设置选择主题,当使用这个主题时,Office将采用Windows强调色和应用模式(亮/暗)设置,并将它们应用到Office本身。如果用户在操作系统中更改了强调色或应用模式,Office会检测到此更改并自动更新应用程序的外观。使用DevExpressWPF ......