<commit_before>{{ $lastSeg := index (last 1 (split (delimit (split .Permalink "/") "," "") ",")) 0 }}
<div class="sidebar">
  <header>
    <div class="logo">
      <img src='{{ (resources.Get "images/logo_mic.png").Permalink }}' alt="microphone">
      <h1>Karaoke<span class="nospace"> </span><span class="logo-forever">Forever</span>
        <span class="description">Open karaoke party system</span>
      </h1>
    </div>
    <div id="btn-nav" class="active" onclick="toggleNav()">
      <svg class="icon" viewBox="0 0 24 24">
        <path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"/>
      </svg>
    </div>
  </header>

  <nav class="active">
    <a class="nav-item{{ if .IsHome }} active{{ end }}" href="{{ .Site.BaseURL }}">Overview</a>
    <a class="nav-item{{ if eq $lastSeg "faq"}} active{{ end }}" href="{{ .Site.BaseURL }}faq">F.A.Q.</a>

    <span class="nav-item">
      <a rel="external" target="_blank" href="https://github.com/bhj/karaoke-forever">GitHub</a>
      <svg class="icon external" viewBox="0 0 24 24">
        <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
      </svg>
    </span>
    <ul class="github">
      <li><a class="github-button" href="https://github.com/bhj/karaoke-forever/releases" data-color-scheme="no-preference: dark; light: dark;" data-icon="octicon-cloud-download" data-size="large" aria-label="Download bhj/karaoke-forever on GitHub">Download</a></li>
      <li>
        <a class="github-button" href="https://github.com/bhj/karaoke-forever" data-size="large" data-color-scheme="no-preference: dark; light: dark;" data-icon="octicon-star" aria-label="Star bhj/karaoke-forever on GitHub">Star</a>
        <a class="github-button" href="https://github.com/sponsors/bhj" data-size="large" data-color-scheme="no-preference: dark; light: dark;" data-icon="octicon-heart" aria-label="Sponsor @bhj on GitHub">Sponsor</a>
        <a class="github-button" href="https://github.com/bhj/karaoke-forever/issues" data-size="large" data-color-scheme="no-preference: dark; light: dark;" data-icon="octicon-issue-opened" aria-label="Issue bhj/karaoke-forever on GitHub">Issue</a>
      </li>
    </ul>

    <a class="nav-item" rel="external" target="_blank" href="{{ .Site.BaseURL }}discord">Discord
      <svg class="icon external" viewBox="0 0 24 24">
        <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
      </svg>
    </a>

    <a class="nav-item{{ if eq $lastSeg "docs"}} active{{ end }}" href="{{ .Site.BaseURL }}docs">Documentation</a>
    <ul id="doc-toc">
      <li><a href="{{ .Site.BaseURL }}docs/#quick-start">Quick Start</a></li>
      <li><a href="{{ .Site.BaseURL }}docs/#karaoke-forever-the-web-app">Karaoke Forever</a> (the "web" app)<commit_msg>(docs) Simplify nav<commit_after>{{ $lastSeg := index (last 1 (split (delimit (split .Permalink "/") "," "") ",")) 0 }}
<div class="sidebar">
  <header>
    <div class="logo">
      <img src='{{ (resources.Get "images/logo_mic.png").Permalink }}' alt="microphone">
      <h1>Karaoke<span class="nospace"> </span><span class="logo-forever">Forever</span>
        <span class="description">Open karaoke party system</span>
      </h1>
    </div>
    <div id="btn-nav" class="active" onclick="toggleNav()">
      <svg class="icon" viewBox="0 0 24 24">
        <path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"/>
      </svg>
    </div>
  </header>

  <nav class="active">
    <a class="nav-item{{ if .IsHome }} active{{ end }}" href="{{ .Site.BaseURL }}">Overview</a>
    <a class="nav-item{{ if eq $lastSeg "faq"}} active{{ end }}" href="{{ .Site.BaseURL }}faq">F.A.Q.</a>

    <span class="nav-item">
      <a rel="external" target="_blank" href="https://github.com/bhj/karaoke-forever">GitHub</a>
      <svg class="icon external" viewBox="0 0 24 24">
        <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
      </svg>
    </span>
    <ul class="github">
      <li>
        <a class="github-button" href="https://github.com/bhj/karaoke-forever/releases" data-color-scheme="no-preference: dark; light: dark;" data-icon="octicon-cloud-download" data-size="large" aria-label="Download bhj/karaoke-forever on GitHub">Download</a>
        <a class="github-button" href="https://github.com/sponsors/bhj" data-size="large" data-color-scheme="no-preference: dark; light: dark;" data-icon="octicon-heart" aria-label="Sponsor @bhj on GitHub">Sponsor</a>
        <a class="github-button" href="https://github.com/bhj/karaoke-forever/issues" data-size="large" data-color-scheme="no-preference: dark; light: dark;" data-icon="octicon-issue-opened" aria-label="Issue bhj/karaoke-forever on GitHub">Issue</a>
      </li>
    </ul>

    <a class="nav-item" rel="external" target="_blank" href="{{ .Site.BaseURL }}discord">Discord
      <svg class="icon external" viewBox="0 0 24 24">
        <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
      </svg>
    </a>

    <a class="nav-item{{ if eq $lastSeg "docs"}} active{{ end }}" href="{{ .Site.BaseURL }}docs">Documentation</a>
    <ul id="doc-toc">
      <li><a href="{{ .Site.BaseURL }}docs/#quick-start">Quick Start</a></li>
      <li><a href="{{ .Site.BaseURL }}docs/#karaoke-forever-the-web-app">Karaoke Forever</a> (the "web" app)
{'fraction_non_alphanumeric': 0.20987432675044884, 'fraction_numerical': 0.06642728904847396, 'mean_word_length': 3.627076411960133, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3811317', 'n_tokens_mistral': 2411, 'n_tokens_neox': 2197, 'n_words': 424}