<commit_before>{% include 'snippetMacros.html' %}
<div class="apos-modal apos-template {% block class %}apos-new-blog-post{% endblock %}">
  <h3>{% block label %}New Article{% endblock %}</h3>
  {% block topButtons %}
  {% endblock %}
  <div class="apos-modal-body">
    <form>
      {{ snippetText('title', 'Title') }}
      {# Slugs become editable later, allow the edit template to add them here #}
      {% block slug %}{% endblock %}
      {{ snippetText('tags', 'Tags (comma-separated)') }}
      {# TODO macroize this as snippetBoolean #}
      {{ snippetSelect('published', 'Published', [ { name: '0', label: 'No' }, { name: '1', label: 'Yes' }]) }}
      {{ snippetText('publication-date', 'Publication Date') }}
      {{ snippetText('publication-time', 'Publication Time') }}
      {# The real work for these is in main.js, just get placeholders into the form #}
      {{ snippetSingleton('thumbnail', 'Thumbnail') }}
      {{ snippetArea('body', 'Body') }}
    </form>
  </div>
  {% block buttons %}
  {{ snippetNewButtons() }}<commit_msg>Oops, published flag was broken in the form, we override so often we missed it<commit_after>{% include 'snippetMacros.html' %}
<div class="apos-modal apos-template {% block class %}apos-new-blog-post{% endblock %}">
  <h3>{% block label %}New Article{% endblock %}</h3>
  {% block topButtons %}
  {% endblock %}
  <div class="apos-modal-body">
    <form>
      {{ snippetText('title', 'Title') }}
      {# Slugs become editable later, allow the edit template to add them here #}
      {% block slug %}{% endblock %}
      {{ snippetText('tags', 'Tags (comma-separated)') }}
      {# TODO macroize this as snippetBoolean #}
      {{ snippetBoolean('published', 'Published') }}
      {{ snippetText('publication-date', 'Publication Date') }}
      {{ snippetText('publication-time', 'Publication Time') }}
      {# The real work for these is in main.js, just get placeholders into the form #}
      {{ snippetSingleton('thumbnail', 'Thumbnail') }}
      {{ snippetArea('body', 'Body') }}
    </form>
  </div>
  {% block buttons %}
  {{ snippetNewButtons() }}
{'fraction_non_alphanumeric': 0.18138651471984804, 'fraction_numerical': 0.002849002849002849, 'mean_word_length': 3.6004366812227073, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '56473', 'n_tokens_mistral': 686, 'n_tokens_neox': 641, 'n_words': 180}