Giter VIP home page Giter VIP logo

Comments (10)

zzossig avatar zzossig commented on September 27, 2024

Hi, fandean😁,
I didn't think about this.
I have to investigate if this is a Hugo issue first.
Or if this is a ref shortcode specific.
Can you give me the "ref" shortcode?

from hugo-theme-zzo.

fandean avatar fandean commented on September 27, 2024

Like I'm using the Expand Shortcodes you gave.

{{%expand "Expand me" %}}Good job{{% /expand%}}

mkcert03

Logically, it should look like this

{{%expand "Expand me" %}}Good job{{% /expand%}}

from hugo-theme-zzo.

fandean avatar fandean commented on September 27, 2024

I always check whether you have to reply on this page, but I did not see until I refresh the page.
我真是傻得可以

from hugo-theme-zzo.

zzossig avatar zzossig commented on September 27, 2024

How about just doing syntax escaping? Something like this.

{{%/* expand "Expand me" */%}}Good job{{%/* /expand */%}}

Test this code. This is what you want? Or ..?

from hugo-theme-zzo.

fandean avatar fandean commented on September 27, 2024

image

Expand :: Documentation for Hugo Learn Theme

from hugo-theme-zzo.

zzossig avatar zzossig commented on September 27, 2024

I checked that the article is also using syntax escaping method
syntax escaping

from hugo-theme-zzo.

fandean avatar fandean commented on September 27, 2024

Do you mean this? /* */

from hugo-theme-zzo.

zzossig avatar zzossig commented on September 27, 2024

yes. that part. Hugo will ignore {{ }} shortcode syntax if you do that

from hugo-theme-zzo.

fandean avatar fandean commented on September 27, 2024

I got it. thanks 😁

from hugo-theme-zzo.

zzossig avatar zzossig commented on September 27, 2024

Ok, If it's not the one that you mean to, you can suggest another approach. I'm not fully understood the use-case of using shortcodes in a code block. Actually, I found some code doing same thing but a different approach

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.