hugo-xmin
hugo-xmin copied to clipboard
eXtremely Minimal Hugo theme: about 140 lines of code in total, including HTML and CSS (with no dependencies)
Hi, add information about `lastmod` in the posts.To get 2017/06/14 Updated 2017/06/17
Add CSS to `` in `head_custom.html` (I'm using the `github` theme here), and JavaScript to `foot_custom.html`. `highlight.min.js` supports common languages here: https://highlightjs.org/download/ As an example, I added `r.min.js` to support...
It depends on whether your post is R Markdown or plain Markdown. For R Markdown, it is easy -- just add this to YAML: ``` output: blogdown::html_page: toc: true ```...
Loop through `.Params.categories` and `.Params.tags`, and generate a list of links. Example page: https://deploy-preview-2--hugo-xmin.netlify.com/post/2016/02/14/a-plain-markdown-post/
Normally when you list posts, you use something like `range .Data.Pages`, which will show all posts in a single list. Sometimes when you have a large number of posts, you...
Add `{{ template "_internal/google_analytics.html" . }}` to `foot_custom.html`, and configure `googleAnalytics` in `config.toml`.
This PR contains two commits. The first commit is the implementation, and the second commit only contains two examples. You should read https://bookdown.org/yihui/blogdown/templates.html and replace the edit link (`GithubEdit`) `https://github.com/yihui/hugo-xmin/edit/feature/github-edit/exampleSite/content/`...
Hello Yihui, This is my implementation of the comment section that is only specific to posts I [mentioned](https://github.com/yihui/hugo-xmin/pull/4#issuecomment-465892279) a while ago. It can also be enabled and disabled from config.
Add `{{ template "_internal/disqus.html" . }}` to `foot_custom.html`, and configure the Disqus shortname in `config.toml`. Preview: https://deploy-preview-4--hugo-xmin.netlify.com/
I'm trying to follow the advice in the blogdown book about SEO: https://bookdown.org/yihui/blogdown/useful-resources.html#helping-people-find-your-site, and am having some trouble getting description tags to work with this theme. What's the right way...