hugo

hugo搭建个人博客--记录

半腔热情 提交于 2019-11-28 20:53:10
使用HUGO搭建个人博客 https://www.gohugo.org/ Git问题 解决Git上传过程中:error: failed to push some refs to 'git@github.com https://blog.csdn.net/qq_41485414/article/details/80745910 git pull origin master #下载 git push -u origin master #上传 创建 themes 目录$cdthemes$ git clone https://github.com/spf13/hyde.git 运行Hugo 在你的站点根目录执行 Hugo 命令进行调试: hugo server --theme=hyde --buildDrafts cd public git add. git commit -m "first" 关于git中push出现Everything up-to-date parkin@parkindeAir:~/testDemo$ git push -u origin master 分支'master'设置为跟踪来自'origin'的远程分支'master'。 Everything up-to-date 以下这几种情况可能会报Everything up-to-date: 1. 没有执行add:git

用hugo搭建个人博客

江枫思渺然 提交于 2019-11-28 20:52:52
这几天研究了用hugo搭建个人博客。 简单的整理了一下。 1.安装hugo (windows 请查看官网介绍 https://gohugo.io/getting-started/installing/) $ brew install hugo 之后检查版本 $ hugo version Hugo Static Site Generator v0.37.1 darwin/amd64 BuildDate: 2.创建hugo 项目 $ hugo new site my-blog Congratulations! Your new Hugo site is created in /Users/limingxie/Projects/my-blog. Just a few more steps and you're ready to go: 1. Download a theme into the same-named folder. Choose a theme from https://themes.gohugo.io/, or create your own with the "hugo new theme <THEMENAME>" command. 2. Perhaps you want to add some content. You can add single files

Hugo + github 搭建个人博客

妖精的绣舞 提交于 2019-11-28 20:52:41
前言 很早以前就有想法,搭建一个个人的博客。没有实现的原因:一方面个人的服务器不太安全掉线,欠费,维护起来麻烦,另一方面,文章编辑发布起来也不方便。 后来了解到 github 提供了博客的功能,也一直没有实践。也鉴于上次文章被删,我也就开始实践了起来, 有一个备份总好于无 。 选择什么程序生成 这个是我第一个纠结的地方,我当时把选择集中在三个选项里面: Jekyll , Hexo , Hugo 。当然是一定要支持 markdown 。 针对选择谁这个问题,我也是在网上查了大量的文章: Jekyll 由 Ruby 语言,三个里面最悠久,网上有关的问题,解决办法也比较多。官网主题较多;个人主机搭建的话,这个还是比较好,插件比较多。 Hexo 用 Nodejs 生成的。Hexo有一个相对较大的社区,但大多数是非英语人士(来自中国)。。。 Hugo 用 Go 构建的静态站点生成器。它被宣传为“世界上最快的网站构建框架”。属于后起之秀,主题较少。 当时,我纠结了半天。最终决定使用 Hugo ,主要原因有下: GO语言是最新的语言; hugo 是最新的生成器,功能方面也肯定集成了之前其他生成器的优点; 不用安装,windows下需要一个 exe 程序,就可以生成静态文件了。这个是我选择他的最关键原因。 选择HUGO主题 只要上面的程序确定了,选择主题相对就比较轻松了。可是选择主题

Changing Hugo version on Netlify build

一笑奈何 提交于 2019-11-28 05:04:50
问题 There is a new (0.32 at this time) version of Hugo that has just been released. It was asked in the community how to handle this situation to test out the new version on a Netlify build. What is the recommended course of action for Netlify users? 回答1: If you do not setup a variable HUGO_VERSION on Netlify it defaults to version 0.17 of HUGO . Simple Setup: To target your builds Netlify has a custom variables field in the online console for your site. This will be enough for simple sites that

How to add a new hugo static page?

荒凉一梦 提交于 2019-11-27 20:28:13
From the "getting started" section it seems this should work, but it doesn't. hugo new site my-site hugo new privacy.md hugo server --watch --includeDrafts curl -L localhost:1313/privacy/index.html # 404 page not found curl -L localhost:1313/privacy.html # 404 page not found curl -L localhost:1313/privacy/ # 404 page not found How can I add a new page? Just tested OK with this on Hugo 0.13: hugo new site my-site cd my-site hugo new privacy.md hugo server -w -D curl -L localhost:1313/privacy/ Note: You have to either use a theme or provide your own layout template to get something more than a

How to add a new hugo static page?

百般思念 提交于 2019-11-26 20:14:03
问题 From the "getting started" section it seems this should work, but it doesn't. hugo new site my-site hugo new privacy.md hugo server --watch --includeDrafts curl -L localhost:1313/privacy/index.html # 404 page not found curl -L localhost:1313/privacy.html # 404 page not found curl -L localhost:1313/privacy/ # 404 page not found How can I add a new page? 回答1: Just tested OK with this on Hugo 0.13: hugo new site my-site cd my-site hugo new privacy.md hugo server -w -D curl -L localhost:1313

hugo搭建个人博客

那年仲夏 提交于 2019-11-26 12:55:32
本地先安装git 1. 下载 hugo ,并配置好环境变量 我这里win7 64位,选择该版本下载 将解压后的hugo.exe,配置到环境变量中,如下图所示表明配置成功 hugo version 2. 生成本地站点 hugo new site wiki 3. 选择 主题 这里选择其中一款 cd wiki cd themes git clone https://github.com/dplesca/purehugo.git 4. 新建文章 hugo new post/my_first_blog.md 写入markdown内容 5. 预览 hugo server --theme=purehugo --buildDrafts http://localhost:1313/purehugo/ 至此本地编写博客基本完成 6. 创建码云项目 可以参考该 文档 这里创建项目名应为an1993不需要an1993.gitee.io 配置config.toml baseurl = "https://an1993.gitee.io/" languageCode = "zh-CN" title = "足迹人生" theme = "purehugo" Paginate = 10 disqusShortname = "john" [params] 7. 生成静态页面 hugo --theme=purehugo

Forsaken Mail创建临时邮箱系统| 手把手教程

你说的曾经没有我的故事 提交于 2019-11-26 09:48:24
场景需求 不需要长时间使用的邮箱 需要大量创建临时邮箱 使用匿名邮箱 环境说明 ** Forsaken Mail 是一个临时邮箱系统,可以供任何人接受邮件,即收即毁,支持自定义邮箱地址前缀,这里就说下 Docker 和 NPM`两种安装教程,任选一种即可,有兴趣或者有需求的可以玩玩。 **Github地址:** https://github.com/denghongcai/forsaken-mail 开启25 跟3000端口 发工单开 25 跟 3000端口 宝塔面板放行25 跟 3000端口 运营商(xx云等)到安全组开启机可 国外VSP(如xx工等) 一般不用开 安装Docker环境 Docker 官网 官网安装教程 #CentOS 6 rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum update -y yum -y install docker-io service docker start chkconfig docker on #CentOS 7、Debian、Ubuntu curl -sSL https://get.docker.com/ | sh systemctl start docker systemctl enable docker

CLI应用程序的库Cobra

China☆狼群 提交于 2019-11-26 01:05:39
Cobra既是用于创建强大的现代CLI应用程序的库,也是用于生成应用程序和命令文件的程序。 许多使用最广泛的Go项目都是使用Cobra构建的,其中包括: Kubernetes Hugo rkt etcd Moby (former Docker) Docker (distribution) OpenShift Delve GopherJS CockroachDB Bleve ProjectAtomic (enterprise) GiantSwarm's swarm Nanobox/Nanopack rclone nehm Pouch 概述 Cobra是一个库,提供了一个简单的接口来创建功能强大的类似于git和go的现代CLI程序。 Cobra也是一个应用程序,帮助你生成应用程序脚手架,以快速开发基于Cobra的应用程序。 Cobra提供了: 简单的基于子命令的CLI:app server, app fetch 等。 完全兼容POSIX命令行参数flag(包括长版本和短版本) 嵌套子命令 全局,局部和及联的flags 使用cobra init appname&cobra add cmdname命令很容易生成应用程序 智能提示(app srver... did you mean app server?) 为命令和flag自动生成帮助 自动识别-h,--help标志来显示帮助信息等