NRCHKB / NRCHKB.github.io

NRCHKB nodes documentation
https://nrchkb.github.io
MIT License
5 stars 2 forks source link

feat: Update HomePage, Introduction and Nodes + Alert Style #112

Closed GogoVega closed 2 years ago

GogoVega commented 2 years ago

Introduction:

Nodes:

HTML:

github-actions[bot] commented 2 years ago

🚀 Deployed on https://62028860bed3510bca1cdc38--nrchkb.netlify.app

GogoVega commented 2 years ago

@Shaquu @crxporter you have something to add (to make it more meaningful)?

crxporter commented 2 years ago

Yeah I'll think about this... we can do better at explaining it.

GogoVega commented 2 years ago

@crxporter I need your magician skills. Thank you so much 😀

GogoVega commented 2 years ago

@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

Shaquu commented 2 years ago

Reason for using ref is that it is not bound to any domain. Are you sure we need to replace it with href?

https://gohugo.io/content-management/cross-references/

GogoVega commented 2 years ago

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

GogoVega commented 2 years ago

Preview:

Quick Start ![Capture d’écran 2022-01-19 at 16 02 35](https://user-images.githubusercontent.com/92022724/150158652-67d170a1-6416-434a-abda-bf822112726d.png)
Output Messages ![Capture d’écran 2022-01-19 at 16 03 08](https://user-images.githubusercontent.com/92022724/150158669-7f0c310c-4a98-4b90-8cf0-d33a3a5f6db0.png)
Service Node ![Capture d’écran 2022-01-19 at 16 03 26](https://user-images.githubusercontent.com/92022724/150158682-bacce940-8621-418a-bda0-87a0218a128e.png)