Giter Site home page Giter Site logo

Comments (5)

yoshiharuyamashita avatar yoshiharuyamashita commented on August 19, 2024

Hi @Linuturk

I haven't tried this but perhaps you override partials/sidemenu.html

and apply safeHTMLAttr to {{ .URL }} in that file?

See here for more information.

from blackburn.

Linuturk avatar Linuturk commented on August 19, 2024

Looks like changing it to:

<a class="pure-menu-link" {{ printf "href=%q" .URL | safeHTMLAttr }}>{{ .Pre }}{{ .Name }}</a>

Works. Would you like a PR to update the template?

from blackburn.

 avatar commented on August 19, 2024

@Linuturk @yoshiharuyamashita Before I do, have either of you considered bringing this up in the Hugo Discussion forums for a clean implementation as opposed to a hack? It seems the type of Joe that'd be using Hugo right now is the same kind of Joe that would want to receive money using cryptos.

from blackburn.

Linuturk avatar Linuturk commented on August 19, 2024

I haven't brought it up to the hugo developers. Feel free to do so, and let me know the issue so I can chime in. Thanks! @jhabdas

from blackburn.

 avatar commented on August 19, 2024

@Linuturk For sure bud. I was ripping through the new docs site (isn't it awesome?) yesterday and saw the approach used here is the one suggested in the docs. I'd raise it in the discussion forum but I just raised some other issues which seem more important to me right now and don't want to generate too much noise all at once. Once I swoop back to add some bitcoin links I'll be sure to raise something in the forums and will try to remember to ping ya when I do. Cheers!

from blackburn.

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.