Giter VIP home page Giter VIP logo

Comments (7)

zzossig avatar zzossig commented on July 18, 2024 1

@nocquidant I just added width and height property. You can do like this

{{< img src="../../images/whoami/avatar.jpg" title="Image4" caption="Image description" alt="image alt" width="100px" height="100px" >}}

from hugo-theme-zzo.

zzossig avatar zzossig commented on July 18, 2024

Hi, thank you for using the Zzo theme. I'll investigate for this now

from hugo-theme-zzo.

zzossig avatar zzossig commented on July 18, 2024

@nocquidant Hey~ I want to know how did you import the image. Did you use the shortcode that this theme provides? This is what I tested
주석 2019-12-06 220153

Below is the shortcode that I use

{{< img src="/images/whoami/avatar.jpg" title="Image4" caption="Image description" alt="image alt" >}}

from hugo-theme-zzo.

nocquidant avatar nocquidant commented on July 18, 2024

Actually I used the "native" Hugo shotcode: {{< figure src="/media/spf13.jpg" title="Steve Francia" >}}

I saw the custom img shortcode but I couldn't manage to get it work... I will try again soon!

from hugo-theme-zzo.

nocquidant avatar nocquidant commented on July 18, 2024

OK, my bad, the following works: {{< img src="../../images/whoami/avatar.jpg" title="Image4" caption="Image description" alt="image alt" >}}.

But not with the absolute path in src, because of my baseURL with a path (baseURL = "https://host.fr/blog/")?

And also I really miss a way to customize the size of the image width/height attribute from the figure shortcode: {{< figure src="/media/spf13.jpg" width="100x" title="Steve Francia" >}}

from hugo-theme-zzo.

zzossig avatar zzossig commented on July 18, 2024

@nocquidant Do you want to use an absolute path? I don't have a solution right now. I'll think about it why the absolute path is not working. And I'll add width and height property to the image shortcode soonπŸ˜‹

from hugo-theme-zzo.

nocquidant avatar nocquidant commented on July 18, 2024

No, it's OK for me for the path ;) Great to hear that you'll add width and height property to the image shortcode soon.

Thanks!

from hugo-theme-zzo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.