hugo

How to use the container Hugo version with One Click Netlify CMS example

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 09:54:31
问题 In the Netlify CMS community chat, the question keeps coming up how to manage the Hugo version without a bin folder and executable. The one-click-hugo-cms example is a deploy to generate a Hugo static site and use Netlify CMS to be able to add posts for the site. The Issue : The site setup uses a bin folder to store the Hugo executable for simplicity, but the developer wants to use a different version of Hugo and keep it up to date without having to keep copying new executables to the Hugo

Resize a plot generated in R in a web page generated by blogdown to different screen size

99封情书 提交于 2020-01-06 05:15:55
问题 Antecedent 1 : A static hugo page generated by the blogdown R package. Antecedent 2: A blog post created from a rmarkdown document with R plots. Question: Some way to resize a plot produced by a chunk of R code in a rmarkdown post when I open the page from a mobile phone? For example, all the content of this post is resize when I open from my mobile except the plot. How can achieve something like that? Thank in advance! 回答1: The easiest way to resize images according to the available screen

travis go error 'The command “eval go get -t -v ./…” failed'

♀尐吖头ヾ 提交于 2020-01-03 14:18:18
问题 I have a pretty straightforward setup.. - a Travis.yml file : https://github.com/openassistive/OpenATFrontEnd/blob/master/.travis.yml which has this line: before_script: - go get -u -v github.com/spf13/hugo but it fails - with The command "eval go get -t -v ./..." failed. Retrying, 2 of 3. (https://travis-ci.org/openassistive/OpenATFrontEnd/builds/166105574) I can't figure it out. I see the language is set correctly - and looking at other SO posts the version number is correct. Is there a

travis go error 'The command “eval go get -t -v ./…” failed'

耗尽温柔 提交于 2020-01-03 14:17:26
问题 I have a pretty straightforward setup.. - a Travis.yml file : https://github.com/openassistive/OpenATFrontEnd/blob/master/.travis.yml which has this line: before_script: - go get -u -v github.com/spf13/hugo but it fails - with The command "eval go get -t -v ./..." failed. Retrying, 2 of 3. (https://travis-ci.org/openassistive/OpenATFrontEnd/builds/166105574) I can't figure it out. I see the language is set correctly - and looking at other SO posts the version number is correct. Is there a

Resize image in Hugo (v 0.32.x) in markdown

Deadly 提交于 2020-01-02 11:29:10
问题 I am trying to resize an image in Hugo (not using HTML / CSS), which is apparently available in the v 0.32 update. Beneath the "Image Processing" heading at the link in the last sentence, the following "Resize" method is described: Resize to the given dimension, {{ $logo.Resize "200x" }} will resize to 200 pixels wide and preserve the aspect ratio. Use {{ $logo.Resize "200x100" }} to control both height and width. I'm having some trouble implementing this in my Hugo site. In particular, I am

Where do I put my favicon with Hugo

风格不统一 提交于 2020-01-01 03:51:11
问题 I am using Hugo to generate a static site. Where should I put my favicon.ico file? 回答1: Put the favicon inside of the static directory. The static directory sits in the root of your hugo site. When you generate your site, the favicon will be copied into public , the root of the generated site. 回答2: Putting your favicons in static folder is right. It will be published to public folder once the page is build. However, using absolute CDN (e.g: Dropbox) services could be better for page

Is there a way to embed a bookdown document as a blogdown post?

怎甘沉沦 提交于 2019-12-24 06:38:10
问题 I have created a tutorial using Bookdown (which I think is a great format for it), and am currently in the process of creating a website using Blogdown (hugo-academic theme). I would like to be able to add this tutorial to a tutorials page as a Bookdown post, but I don't know if that's possible. I'm new to Blogdown, so I haven't been able to find any solutions to this. If it's not possible, is there a way of changing the post link to a hyperlink that takes the user to a published Bookdown

Image Processing Outside Bundles

百般思念 提交于 2019-12-21 17:06:58
问题 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. 回答1: 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

Any way to have a common netlify.toml file for a single repository and multiple sites?

早过忘川 提交于 2019-12-20 04:28:14
问题 I'm looking out a way to define two site builds on netlify, sourced from the same repo, using a single common netlify.toml . Is it possible to do so? I have a GitHub repository named hugo-dream-plus for which I've configured two website builds on netlify, namely dream-plus-posts and dream-plus-cards . Both of these builds share the same environment variables and mostly all of the configurations, except for the build commands: hugo --config cards.toml #For dream-plus-cards hugo --config posts

Customize the “about” widget in hugo academic theme

六眼飞鱼酱① 提交于 2019-12-20 02:40:21
问题 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