<commit_before>{% extends "base.html" %}
{% block content %}

{% if not current_user.is_authenticated() %}
<div class="not-logged-in">
  You are not currently logged in. Feel free to poke around, but you won't be able to post anything without first authenticating as the blog owner.
</div>
{% endif %}

  {% with is_single = True %}
    {% include "_contexts.html" %}
  {% endwith %}

<form id="edit_form" method="POST" action="/save_{{edit_type}}" enctype="multipart/form-data">

  <input type="submit" name="action" value="Publish"/>
  <input type="submit" name="action" value="Publish + Tweet"/>
  <input type="submit" name="action" value="Publish Quietly"/>
  <input type="submit" name="action" value="Save Draft"/>

  {% block above_content %}{% endblock above_content %}

  {% block content_fields %}
    <label>Content</label>
    <textarea name="content" id="content" rows="2">{{ post.content or '' }}</textarea>
  {% endblock content_fields %}
  {% block below_content %}{% endblock below_content %}

  <label>Tags</label>
  <input type="text" name="tags" id="tags" placeholder="cats, python" value="{{ post.tags | join(', ') }}" />
  <div class="top_tags">
    {% for tag in top_tags %}
      <a href="#" class="top_tag">{{tag}}</a>
    {% endfor %}
  </div>

  <label><i class="fa fa-plus-square-o" id="syndication_expander"></i> Syndication</label>
  <textarea id="syndication_textarea" name="syndication">{{ post.syndication | join('\n') }}</textarea>

  <data id="post_path" value="{{post.path}}" />
  <input type="hidden" id="post_id" name="post_id" value="{{ post.id or 'new' }}"/>
  <input type="hidden" id="post_type" name="post_type" value="{{ post.post_type }}"/><commit_msg>Fix wrong post action when mounted on [e.g.] /indie/<commit_after>{% extends "base.html" %}
{% block content %}

{% if not current_user.is_authenticated() %}
<div class="not-logged-in">
  You are not currently logged in. Feel free to poke around, but you won't be able to post anything without first authenticating as the blog owner.
</div>
{% endif %}

  {% with is_single = True %}
    {% include "_contexts.html" %}
  {% endwith %}

<form id="edit_form" method="POST" action="{{ settings.site_url }}/save_{{edit_type}}" enctype="multipart/form-data">

  <input type="submit" name="action" value="Publish"/>
  <input type="submit" name="action" value="Publish + Tweet"/>
  <input type="submit" name="action" value="Publish Quietly"/>
  <input type="submit" name="action" value="Save Draft"/>

  {% block above_content %}{% endblock above_content %}

  {% block content_fields %}
    <label>Content</label>
    <textarea name="content" id="content" rows="2">{{ post.content or '' }}</textarea>
  {% endblock content_fields %}
  {% block below_content %}{% endblock below_content %}

  <label>Tags</label>
  <input type="text" name="tags" id="tags" placeholder="cats, python" value="{{ post.tags | join(', ') }}" />
  <div class="top_tags">
    {% for tag in top_tags %}
      <a href="#" class="top_tag">{{tag}}</a>
    {% endfor %}
  </div>

  <label><i class="fa fa-plus-square-o" id="syndication_expander"></i> Syndication</label>
  <textarea id="syndication_textarea" name="syndication">{{ post.syndication | join('\n') }}</textarea>

  <data id="post_path" value="{{post.path}}" />
  <input type="hidden" id="post_id" name="post_id" value="{{ post.id or 'new' }}"/>
  <input type="hidden" id="post_type" name="post_type" value="{{ post.post_type }}"/>
{'fraction_non_alphanumeric': 0.19959443800695248, 'fraction_numerical': 0.0005793742757821553, 'mean_word_length': 4.872448979591836, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '797349', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1114, 'n_words': 284}