main
html 13 lines 759 Bytes
Raw
1 {{- /*
2 Signal & Noise shortcode — lets an article body declare the Signal/Noise
3 summary module inline. Works with Goldmark unsafe=false.
4
5 Usage (percent-brace shortcode call) with pipe-separated items:
6 signal-noise signal="Agent skills|Local-first tooling" noise="Bot spam|Activator repos" caveat="Editorial judgments, not automated classifications."
7 */ -}}
8 {{- $signal := slice -}}
9 {{- with .Get "signal" }}{{ $signal = split . "|" }}{{ end -}}
10 {{- $noise := slice -}}
11 {{- with .Get "noise" }}{{ $noise = split . "|" }}{{ end -}}
12 {{- $data := dict "signal" $signal "noise" $noise "caveat" (.Get "caveat") "source" (.Get "source") -}}
13 {{ partial "visuals/signal-noise.html" (dict "data" $data "heading" (.Get "heading") "level" (.Get "level")) }}