Code Monkey home page Code Monkey logo

Comments (5)

dr460nf1r3 avatar dr460nf1r3 commented on August 15, 2024 2

Oh well. The page bundle page was enlightening. I did not create a sub-folder for the different project pages. After doing so and renaming the pages to index.md it worked flawlessly.

from congo.

jpanther avatar jpanther commented on August 15, 2024 1

Interesting... where is the image file located? The shortcode uses Hugo page bundles and so it expects the image to be a resource that is associated with the content that you are using it in.

from congo.

rshmhrj avatar rshmhrj commented on August 15, 2024

Hi @jpanther -- I ran into this issue just now as well. Can we add a blurb on the shortcodes doc page explaining the usage of figure and screenshot?

If you think this makes sense, I can give it a shot.

from congo.

davidolrik avatar davidolrik commented on August 15, 2024

I also ran into this problem with images located in /static which are not "resources".

The shortcode that this overrides does not mention this limitation.

from congo.

strauhmanis avatar strauhmanis commented on August 15, 2024

Hello,

I would like to render a figure in layouts/partials/home/custom.html
{{< figure src="image.svg" >}}

The image is located in the assets/

But, when building, I am getting an error:
parse failed: template: partials/home/custom.html:16: unexpected "<" in command

May I have a suggestion how to fix this, please.
Thank you!

from congo.

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.