Comments (5)
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.
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.
@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.
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.
@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)
- Icons in share.html have the incorrect class name HOT 3
- Welcome back @yoshiharuyamashita!
- Incorrect Google Analytics tags
- Both the demo and personal website seem down
- google plus url format error in layouts/partials/social.html? HOT 2
- Error on serving the site HOT 4
- hugo v0.32.4 works fine serving /post/ directory, not v0.35, not v0.36 HOT 12
- Images missing max-width property HOT 8
- When I click the Posts, my articles don't appear HOT 3
- Can blackburn counts web traffic by busuanzi? HOT 2
- Automatically resize image when it is too large HOT 2
- Two questions: layout, and post directories HOT 2
- Two level menu HOT 3
- cannot deploy to github
- Error when serving site HOT 2
- reading time is not displayed HOT 2
- Author name in each post HOT 1
- side menu is not scrollable
- Home Page Broken with Hugo 0.57 HOT 3
- rss link on menu not formatted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blackburn.