Can't change post author with blogdown
Tag : r , By : user130518
Date : March 29 2020, 07:55 AM
|
How do I post some introductory paragraphs on the main page of my blogdown site?
Date : November 25 2020, 04:01 AM
this one helps. Yes, you need to create _index.md under content/. Then the content of _index.md will be displayed on your homepage. There was a minor issue with the hugo-lithium theme, which I just fixed on Github. In the old version, if _index.md is not empty, the list of posts will not be displayed. Now both the content and the list of posts will be displayed. If that is not what you want, you can certainly revert my change in layouts/_default/list.html.
|
Is there a way to change the width page of a html post in blogdown/hugo?
Tag : r , By : user105769
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , The width is determined by your theme. I only looked at an example site provided here but in this particular case, the element you need to deal with appears to be main-content-wrap. I came to this conclusion by right clicking on my browser and picking "Inspect Element" (firefox) or "Inspect" (chrome) which gives you information about which elements are present and how are they effected by existing CSS. From here you can see that it has a default max-width of 750px. You need to create a CSS file to overwrite this property. The file only has to contain .main-content-wrap{
max-width: [insertYourDesiredWidthHere]px
}
[[params.customCSS]]
href = "pathToFileUnderStatic"
|
Linking to another post in blogdown
Tag : r , By : Daljit Dhadwal
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further Suppose I have an older post in contents/post/2019-04-29-old-post.Rmd and I want to link to it from a new rmarkdown post. Is there any way to do it without using the hardcoded url of the live site (so that I don't have to change all these cross links when the url of my site changes)? , If you have set your base URL correctly in config.toml like this: baseurl = "https://my.si.te/"
languageCode = "en-us"
title = "A Hugo website"
theme = "hugo-lithium"
googleAnalytics = ""
[permalinks]
post = "/:year/:month/:day/:slug/"
In the [previous post](/2019/04/29/old-post/) we covered...
In the [previous post](/:year/:month/:day/:slug/) we covered...
|
Blogdown Website post - Hide date and/or title of post
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , What you are asking for is not natively packed with the theme. But a simple line of tweak will do. Create folder layouts/partials/ in your repo(if it does not exist). Copy themes/minimal/layouts/partials/list-item.html to layouts/pairtials/list-item.html <h5>{{ $.Scratch.Get "subtitle" }}</h5>
{{ if not .Params.hidedate }}<h5>{{ $.Scratch.Get "subtitle" }}</h5>{{ end }}
---
title: "Creating a New Theme"
tags: ["go", "golang", "hugo", "themes"]
hidedate: true
draft: false
---
|