summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-01 17:15:01 +0800
committerEltrac <hi@guhub.cn>2025-05-01 17:15:01 +0800
commitbc7fcfbdbf2eceaf6bf2dca11f0a926e52ecfa9b (patch)
tree5e2ff7bd711eb0cb4aa876d075de96066306c847 /layouts
parente399d6ac2291c938e362907210602f71b44b870a (diff)
parent50ca1c0c5affbb0869b3f707d8863cd8cad73e3c (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.html24
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>