hugo

Change figure and table captions in blogdown

爱⌒轻易说出口 提交于 2019-12-06 01:29:29
I'm tinkering with blogdown and would like to create figures and table with non-English caption headers. The following chunk ```{r label1, echo=FALSE, fig.cap="Fancy caption", fig.fullwidth=TRUE} plot(1,1) ``` produces the plot and a caption that reads Figure 1: Fancy caption I'd like to be able to change the label such that, say, "Figure" becomes "Plot". I thought I could fix it in the same way as for bookdown : In the _bookdown.yml file I could have language: ui: chapter_name: "Chap " appendix_name: "App " label: fig: 'Plot ' tab: 'Fancy table ' but I'm not sure how to do something similar

How to add icon to webpage tabs in blogdown

夙愿已清 提交于 2019-12-06 01:07:18
问题 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. 回答1: 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

hugo搭建个人博客

狂风中的少年 提交于 2019-12-05 16:55:05
本地先安装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

Website not updating with blogdown & hugo

早过忘川 提交于 2019-12-05 07:32:32
I know this question is likely to get down-voted due to insufficient reproducibility of code leading to the error, but I am so dumbfounded by the error I do not even know where to start in explaining it clearly enough. I therefore apologise in advance. This issue has occurred twice on two separate machines. I created a new site with blogdown in R-Studio using the hugo-academic theme new_site(theme = "gcushen/hugo-academic") Everything works fine, and I start adding some publications (as markdown documents) by adding these to the /content/publication folder. This works just fine; the site looks

Using Netlify CMS with Hugo - creating posts with galleries

戏子无情 提交于 2019-12-05 03:30:40
问题 I'm new to both Hugo and Netlify, so it's possible I'm simply doing this wrong. I've successfully built and deployed a site with galleries, using Hugo, the Galleria plugin, and deploying to Netlify This has all worked. However, I want to try using the Netlify CMS, and am struggling to set it up to handle the gallery feature (it's doing fine for just writing a text post) I'm not sure if this is a limitation of Netlify CMS, or if I'm doing galleries in a way that isn't suited to static sites.

ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded

时光怂恿深爱的人放手 提交于 2019-12-05 02:31:35
Running into this issue when working with Hugo and the AWS CLI on Ubuntu 18.04. ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored. This is a fresh install of Ubuntu 18.04, Hugo, and AWS CLI. Found the answer after a bit of web searching here: https://github.com/PX4/Firmware/issues/9409 If you update your .bashrc with the below line it should fix the issue: export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0 In addition, you may need to install the following package: sudo apt install gtk3-nocsd Another

DT package not working with blogdown using hugo-future-imperfect theme

前提是你 提交于 2019-12-04 19:55:38
问题 I have a blogdown site based on the hugo-future-imperfect theme where a DT output is created correctly in the rmd but the data is not shown (although the headings are) when applying serve_site/build_site I have created two brand new sites ( so with no other complications) to illustrate the issue. This is the code and outputs ```{r DT} library(DT) library(tidyverse) iris %>% datatable() ``` a) default theme b) hugo-imperfect 回答1: From https://owi.usgs.gov/blog/leaflet/ and https://github.com

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

耗尽温柔 提交于 2019-12-04 16:32:51
场景需求 不需要长时间使用的邮箱 需要大量创建临时邮箱 使用匿名邮箱 环境说明 ** 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

How to display another html document in place of a standard blog post?

给你一囗甜甜゛ 提交于 2019-12-04 09:27:24
I've got a blog that I update using R Blogdown. It's got a Hugo theme with YAML configuration and front matter. I host on Netlify. I'd like to create a post where, upon clicking the link for the post, the user sees a totally separate html file instead of the titled post. For example, I thought the following front matter would work where I've placed the desired document inside 'static/files'... --- title: 'Example blog post' author: Logit date: '2018-02-21' URL: ["/files/page_to_display_instead.html"] --- But my desired page doesn't load. Instead, my address bar tries to load '/posts/2018-02-21

Image Processing Outside Bundles

牧云@^-^@ 提交于 2019-12-04 08:31:25
Is it possible to use Hugo 0.32's new image processing feature for images in other folders? For example, I have a site that is already structured in a format with all media in a separate /content/images folder, instead of beside each entry as a page bundle. talves It is possible to access resources of a page from it's reference, so this is possible with a pretty simple setup. Create an _index.md file in the content/images folder with simple front-matter similar to below. content/images/_index.md --- title: Media Folder --- This will allow you to access the resources for images within the