{{- if not site.Config.Privacy.X.Disable -}}
  {{- $id := or (.Get "id") "" -}}
  {{- $user := or (.Get "user") "" -}}
  {{- if and $id $user -}}
    {{- template "render-simple-x" (dict "id" $id "user" $user "ctx" .) -}}
  {{- else -}}
    {{- errorf "The %q shortcode requires two named parameters: user and id. See %s" .Name .Position -}}
  {{- end -}}
{{- end -}}

{{- define "render-simple-x" -}}
  {{- $dnt := site.Config.Privacy.X.EnableDNT }}
  {{- $url := printf "https://x.com/%v/status/%v" .user .id -