hugo

How to add icon to webpage tabs in blogdown

对着背影说爱祢 提交于 2019-12-04 06:13:59
How can I add a favicon to by blogdown website? I am using the minimal theme. I tried adding the line in the config.toml favicon = imgPath and I also attemped to move 'favicon.ico' to the static folder, but neither has worked. If you have a file named favicon.ico in root directory, most browsers will use it. The easiest way is to add favicon.ico in static directory (therefore, Hugo will copy it to root directory), see here . Favicon is declared in <head> element. In minimal theme, the <head> element is defined in header.html file. As you can see, the minimal theme does not provide support for

How do I get my blogdown blog on R-Bloggers?

懵懂的女人 提交于 2019-12-03 11:34:22
问题 I generate my blog using blogdown but when I have tried to submit it to R-Bloggers it is not accepted because my feed returns the following error: This XML document is invalid, likely due to invalid characters. XML error: Undeclared entity error at line 6, column 35 Apparently the feed for my website does not contain the full RSS content. How do I get it to hold all the content? 回答1: In the Hugo documentation (https://gohugo.io/templates/rss/), they provide the embedded RSS xml file that

Customize the “about” widget in hugo academic theme

心不动则不痛 提交于 2019-12-01 22:20:45
I am using the hugo-academic theme via RStudio/blogdown to build my webpage. The example page is here: https://themes.gohugo.io/theme/academic/ I would like to add a second list of non-academic Interests below the academic ones. Is this possible? In the configuration section of about.md there is a section for this list # List your academic interests. [interests] interests = [ "Artificial Intelligence", "Computational Linguistics", "Information Retrieval" ] but i am not sure how it is passed to the process that actually builds the site. In the spirit of "just add stuff to see if it works" i've

Unable to create new site using (hugo) Academic theme

孤人 提交于 2019-11-30 23:38:42
I am new to blogdown and working my way through the fabulous resource to guide me. Unfortunately, I am unable to use the academic theme in hugo. To create a new site I have: Created a new (empty) project in a brand new working directory. Installed blogdown and hugo, as recommended Tried to create a new site by running the following: blogdown::new_site(theme = "gcushen/hugo-academic") Unfortunately, I then encounter the following errors: Error: Unable to find theme Directory: C:\Users\myusername\Documents\MyBlog\themes\academic Error: Unable to find theme Directory: C:\Users\myusername

Docker 大势已去,Podman 万岁

假装没事ソ 提交于 2019-11-30 21:20:28
前言 郑重声明 :本文不是 Podman 的入门篇,入门请阅读这篇文章: 再见 Docker,是时候拥抱下一代容器工具了 Podman 原来是 CRI-O 项目的一部分,后来被分离成一个单独的项目叫 libpod 。Podman 的使用体验和 Docker 类似,不同的是 Podman 没有 daemon。以前使用 Docker CLI 的时候,Docker CLI 会通过 gRPC API 去跟 Docker Engine 说「我要启动一个容器」,然后 Docker Engine 才会通过 OCI Container runtime(默认是 runc )来启动一个容器。这就意味着容器的进程不可能是 Docker CLI 的子进程,而是 Docker Engine 的子进程。 Podman 比较简单粗暴,它不使用 Daemon,而是直接通过 OCI runtime(默认也是 runc )来启动容器,所以容器的进程是 podman 的子进程。这比较像 Linux 的 fork/exec 模型,而 Docker 采用的是 C/S (客户端/服务器)模型。与 C/S 模型相比, fork/exec 模型有很多优势,比如: 系统管理员可以知道某个容器进程到底是谁启动的。 如果利用 cgroup 对 podman 做一些限制,那么所有创建的容器都会被限制。 SD_NOTIFY : 如果将

给博客增加豆瓣观影和阅读

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 12:13:32
第一步 进入这个网站注册账号 布克牧为 ,填写豆瓣id,豆瓣id是9位数字,到豆瓣官网找即可 第二步 同步数据 第三步 使用,查看API说明 https://github.com/iMuFeng/bmdb/blob/master/README.md 把密钥换成自己的就行了 第三步 添加到自己得博客,我是用hugo搭建得blog,以hugo为例,添加两个menu,指向到生成的html就行 [[menu.main]] name = "观影" url = "/movie/" weight = 5 [[menu.main]] name = "阅读" url = "/book/" weight = 6 效果 总结 1.发现一个问题,豆瓣取消评价后,同步数据,观影数据还在,已反馈给作者,等待作者修复。</br> 2.另外使用chrome同步数据时,同步请求会出现canned问题,建议使用edge或其他浏览器。 来源: https://my.oschina.net/u/4218037/blog/3110687

Changing Hugo version on Netlify build

亡梦爱人 提交于 2019-11-29 12:08:42
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? 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 need to target all workflow builds. Workflow Setup Netlify allows for a config file ( netlify.toml ) at the

【Kubernetes社区之路】文档翻译之Windows下快速搭建文档服务器

霸气de小男生 提交于 2019-11-29 04:06:18
前言 从事官方文档的翻译,首要任务是搭建本地的文档服务器,以便于随时检验翻译内容。 官方文档都存放在 kubernetes/website 项目中,该项目基于 Hugo 框架开发,本文主要介绍如何在Windows中使用 Hugo 运行该项目。 如果严格按照 kubernetes/website 推荐的方法运行文档服务器,需要以下依赖: Hugo Docker Chocolatey make 本文介绍的方法只需要安装 Hugo ,更容易上手。 安装Hugo 版本选择 kubernetes/website 仓库的 netlify.toml 文件指定了依赖的 Hugo 版本,比如在1.14分支下查看依赖的 Hugo 版本信息如下: ... HUGO_VERSION = "0.53" ... 在下载 Hugo 时,可以选择该版本,一般情况下,下载更高版本的也没有问题。 下载 从 Hugo 项目的release界面( https://github.com/gohugoio/hugo/releases)下可以载到相应版本的包。 如下图所示, Assets 下有众多平台的发布包: 选择自已的平台下载相应的包即可。 安装 上一步骤中下载的包,解压开就可以使用,并不需要安装。 Hugo 官方文档习惯于把它放到 C 盘。 创建目录 C:\Hugo\bin ,并将上一步骤下载的包解压到该目录即可

windows+hugo+github搭建个人博客

北慕城南 提交于 2019-11-28 20:53:35
一、hugo下载地址: https://github.com/gohugoio/hugo/releases 1、选择对应的最新zip包,我下载的是 hugo_0.57.2_Windows-64bit.zip (ps.下面的extended包不用下载),下载完成后,解压待用。 2、创建文件夹。此处举例:F盘创建 hugo/bin ,将解压后的 hugo.exe 放到 bin 目录下。 3、配置系统环境变量。将 F:\hugo\bin 加到 path 变量中,注意两点: (1) 是 path ,不是CLASSPATH,要区分下 (2) 路径后面记得加英文分号 ; 以上设置好后,就可以在cmd中查看是否安装成功。执行命令: $ hugo version Hugo Static Site Generator v0.57.2-A849CB2D windows/amd64 BuildDate: 2019-08-17T17:54:13Z  显示该条即表示成功 二、生成站点 进入 F:\hugo 下,打开命令窗口。(可用cmd,也可选择下载安装Git,推荐安装git,敲命令很方便) $ hugo new site 文件名称 (如 blog ) 执行后,在hugo目录下就会生成一个 名叫 blog 的站点文件夹 进入 blog ,显示以下目录结构: archetypes  (存放default.md

Hugo + Github Pages 搭建个人博客

荒凉一梦 提交于 2019-11-28 20:53:22
尝试过 Hexo 、GatsbyJs、 Vuepress 搭建博客后,对这些工具最大的不满,就是运行速度以及打包速度。 后来看到 Hugo ,号称最快的静态站点生成器后。 尝试搭建博客,发现不管是运行速度,还是打包速度超级快,果断将个人博客迁移到 Hugo。 Hugo 官方的定义是: Hugo is a fast and modern static site generator written in Go, and designed to make website creation fun again.(Hugo 是使用 Go 编写的快速而现代的静态站点生成器,旨在使网站创建变得有趣。) 安装 Hugo Hugo 搭建个人博客前,需要先安装 Git 和 Go 语言开发环境。 分别在 https://golang.org/dl/ 、 http://git-scm.com/ 下载二进制安装包,点击默认设置安装即可。 Mac 安装 Hugo 既可以使用 HomeBrew 安装,也可以在 https://github.com/gohugoio/hugo/releases 下载二进制包安装 brew install hugo Windows 安装 Hugo 在 https://github.com/gohugoio/hugo/releases 下载二进制包安装 安装完成后