{%- unless site.published -%} {%- capture text -%} {%- if include.issue -%} Issue #{{include.issue}} — {{ include.note }} {%- else -%} {%- if include.pr -%} Pull Request #{{include.pr}} — {{ include.note }} {%- else -%} {{ include.note }} {%- endif -%} {%- endif -%} {%- endcapture -%} {%- assign statustext = "Editor’s Note" -%} {%- assign statuscolor = "--grey" -%} {%- assign textcolor = "--pure-white" -%} {%- if include.status == "open" -%} {%- assign statustext = "Open Issue" -%} {%- assign statuscolor = "--faded-red" -%} {%- assign textcolor = "--pure-white" -%} {%- endif -%} {%- if include.status == "proposed" -%} {%- assign statustext = "Proposed Change" -%} {%- assign statuscolor = "--gold" -%} {%- assign textcolor = "--off-black" -%} {%- endif -%} {%- if include.status == "accepted" -%} {%- assign statustext = "Accepted Change" -%} {%- assign statuscolor = "--ocean" -%} {%- assign textcolor = "--off-black" -%} {%- endif -%} {{ statustext }} {{ text }}
{%- endunless -%}