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

Best practice for page bundle image paths in smallimg? #20

Closed
leason opened this issue Mar 23, 2019 · 2 comments
Closed

Best practice for page bundle image paths in smallimg? #20

leason opened this issue Mar 23, 2019 · 2 comments

Comments

@leason
Copy link

leason commented Mar 23, 2019

Love the theme - many thanks for sharing it. What's the best way to reference a page bundle image in a post?

Given this structure:

content/
  posts/
     article1/
       headshot.png
       index.md

What should the src of a in index.md be?

@josephhutch
Copy link
Owner

josephhutch commented Mar 23, 2019

I'm glad you like the theme! You would reference the image like this

src="posts/article1/headshot.png"

The src property is a root-relative (root of your site, not your Hugo project) link. Let me know if you have any other questions :)

@leason
Copy link
Author

leason commented Mar 26, 2019

Got it, that works great. Many thanks.

@leason leason closed this as completed Mar 26, 2019
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