Closed GogoVega closed 2 years ago
🚀 Deployed on https://62028860bed3510bca1cdc38--nrchkb.netlify.app
@Shaquu @crxporter you have something to add (to make it more meaningful)?
Yeah I'll think about this... we can do better at explaining it.
@crxporter I need your magician skills. Thank you so much 😀
@Shaquu I have a problem with .Inner. Do you think it will work if i add this to alert.html?
<div class="alert alert-warning d-flex" role="alert">
<div class="flex-shrink-1 alert-icon">{{ with .Get "icon" }}{{.}} {{ end }}</div>
{{ with .Get "text"}}
<div class="w-100">{{ . | safeHTML }} </div>
{{ else }}
{{ with .Inner}}
<div class="w-100"> {{ . | markdownify}}</div>
{{ else }}
{{ errorf "No valid text variable or Inner content given"}}
{{ end }}
{{ end}}
</div>
Edit: I have change ref
by href
in order to avoid changing everything
Reason for using ref is that it is not bound to any domain. Are you sure we need to replace it with href?
With ref, i have this error:
Error: Error building site: "/home/runner/work/NRCHKB.github.io/NRCHKB.github.io/content/wiki/introduction/quick-start.md:35:119": failed to extract shortcode: shortcode "alert" has no .Inner, yet a closing tag was provided
So two solutions:
The problem with 1 is that I don't know if it will work
Preview:
Introduction:
Nodes:
HTML: