diff options
| author | Eltrac <hi@guhub.cn> | 2025-05-01 17:15:01 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-05-01 17:15:01 +0800 |
| commit | bc7fcfbdbf2eceaf6bf2dca11f0a926e52ecfa9b (patch) | |
| tree | 5e2ff7bd711eb0cb4aa876d075de96066306c847 /layouts | |
| parent | e399d6ac2291c938e362907210602f71b44b870a (diff) | |
| parent | 50ca1c0c5affbb0869b3f707d8863cd8cad73e3c (diff) | |
Merge branch 'master' of https://github.com/BigCoke233/geek-death-project
Former-commit-id: f45282217dcd0aa1899ad3849f0f27ff7a6d9f06
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/_markup/render-table.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-table.html b/layouts/_default/_markup/render-table.html new file mode 100644 index 00000000..75196aeb --- /dev/null +++ b/layouts/_default/_markup/render-table.html @@ -0,0 +1,24 @@ +<div class="table-container"> + <table> + {{- if .THead }} + <thead> + {{- range .THead }} + <tr> + {{- range . }} + <th{{ with .Alignment }} style="text-align:{{ . }}"{{ end }}>{{ .Text | safeHTML }}</th> + {{- end }} + </tr> + {{- end }} + </thead> + {{- end }} + <tbody> + {{- range .TBody }} + <tr> + {{- range . }} + <td{{ with .Alignment }} style="text-align:{{ . }}"{{ end }}>{{ .Text | safeHTML }}</td> + {{- end }} + </tr> + {{- end }} + </tbody> + </table> +</div> |
