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

images with posts and/or bundle #40

Closed
gour opened this issue May 10, 2018 · 5 comments
Closed

images with posts and/or bundle #40

gour opened this issue May 10, 2018 · 5 comments
Labels

Comments

@gour
Copy link

gour commented May 10, 2018

Hello,

I like to put images which are part of the post in a dedicated folder, iow. something like:

test.md
test
└── myviber.jpg

which allows me to reference the image within test.md as:

{{< figure src="myviber.jpg" alt="My Viber" class="center" >}}

so I wonder what do you think about adding support for that?

Moreover, newer versions of Hugo also support bundles with the same/similar functionality, so the same question about support for that in Easy Hugo?

@masasam
Copy link
Owner

masasam commented May 10, 2018

Hi @gour .
Which version of hugo did you add this feature?
It does not work on my hugo 0.40.2

@gour
Copy link
Author

gour commented May 10, 2018

Which version of hugo did you add this feature?

That feature is present long time in Hugo - see e.g. this thread.

It does not work on my hugo 0.40.2

I have the same version and it does work...iow, try to mimic your setup like:

├── test
│   └── myviber.jpg
└── test.md

and have the following content in test.md:

---
title: "Test"
date: 2018-05-10T10:44:03+02:00
draft: true
---

This is a test post!

{{< figure src="myviber.jpg" alt="My Viber" class="center" >}}

It works with this as well:

![My Viber](myviber.jpg) "my Viber"){center}

@masasam
Copy link
Owner

masasam commented May 10, 2018

I do your sample with multiple blogs but It doesn't work

@gour
Copy link
Author

gour commented May 10, 2018

test.tar.gz

Here is complete Hugo site to test with.

@masasam
Copy link
Owner

masasam commented May 10, 2018

@gour I do your test.tar.gz but it doesn't work.
For me this seems to be your personal function Please set it with your init.el.
It will not be adopted as a easy-hugo sorry.

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

No branches or pull requests

2 participants