Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No images showing in posts #5

Open
blogdemoi opened this issue Sep 24, 2021 · 1 comment
Open

No images showing in posts #5

blogdemoi opened this issue Sep 24, 2021 · 1 comment

Comments

@blogdemoi
Copy link

Hi,

I would like to use your theme but when testing on my computer there are no images showing in my posts. All my images are in a static folder and I insert them with: ![sons xxx](/blog/wxxxxx.jpg)

What could be wrong?

My config.toml is:

baseURL = 'https://xxxx.org/blog/'
languageCode = 'en-us'
title = 'Mon blog'
author = "xxxx"
canonifyurls = true
languagecode = "en"
theme = "hugo-tanka"

enableEmoji = true
hasCJKLanguage = false

pygmentsstyle = "vs"
pygmentscodefences = true

ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_cache$", "\\.knit\\.md$", "\\.utf8\\.md$"]

[params]
  sitename = "Hugo Tanka Theme"
  faviconfile = "images/favicon.png"
  highlightjs = true
  highlightjslanguages = ["r", "python", "stan"]
  uselatex = true
  progressively = false
# commentsrepo = "user/repo"

[markup]
  [markup.goldmark]
    [markup.goldmark.renderer]
      unsafe = true

[[menu.primary]]
    name = "Home"
    url = "/"
    weight = 1
[[menu.primary]]
    name = "About"
    url = "/about/"
    weight = 2
[[menu.primary]]
    name = "GitHub"
    url = "https://github.com/nanxstats"
    weight = 3
[[menu.primary]]
    name = "Twitter"
    url = "https://twitter.com/nanxstats"
    weight = 4
[[menu.primary]]
    name = "Subscribe"
    url = "/index.xml"
    weight = 5

Thank you.

@nanxstats
Copy link
Owner

So let's say the image path is static/image/example.png, then we should use this to include the image:

![title](/image/example.png)

This is demonstrated by the example site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants