Replace sas-emojis template
This commit is contained in:
parent
86152613b1
commit
183ecfda03
2 changed files with 27 additions and 1 deletions
|
@ -729,7 +729,7 @@ into 7 groups of 6 bits, similar to how one would base64 encode
|
||||||
something. Convert each group of 6 bits to a number and use the
|
something. Convert each group of 6 bits to a number and use the
|
||||||
following table to get the corresponding emoji:
|
following table to get the corresponding emoji:
|
||||||
|
|
||||||
{{sas\_emoji\_table}}
|
{{% sas-emojis %}}
|
||||||
|
|
||||||
{{% boxes/note %}}
|
{{% boxes/note %}}
|
||||||
This table is available as JSON at
|
This table is available as JSON at
|
||||||
|
|
26
layouts/shortcodes/sas-emojis.html
Normal file
26
layouts/shortcodes/sas-emojis.html
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{{/*
|
||||||
|
|
||||||
|
This template is used to render the table of SAS emoji table.
|
||||||
|
|
||||||
|
It replaces the old {{sas_emoji_table}} template.
|
||||||
|
|
||||||
|
*/}}
|
||||||
|
|
||||||
|
{{ $emoji_json := readFile "data-definitions/sas-emoji.json" | transform.Unmarshal }}
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>Number</th>
|
||||||
|
<th>Emoji</th>
|
||||||
|
<th>Unicode</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
{{ range $emoji_json }}
|
||||||
|
<tr>
|
||||||
|
<td>{{ .number }}</td>
|
||||||
|
<td>{{ .emoji }}</td>
|
||||||
|
<td>{{ .unicode }}</td>
|
||||||
|
<td>{{ .description }}</td>
|
||||||
|
</tr>
|
||||||
|
{{ end }}
|
||||||
|
</table>
|
Loading…
Add table
Add a link
Reference in a new issue