<commit_before>extends ../layouts/default

block main
  h1= title

block content
  - each article in articles
    .article
      h3
        a(href='/articles/'+article._id, title=article.title) #{article.title}
      p= article.body

      .meta.muted
        span= formatDate(article.createdAt)
        &nbsp; - &nbsp;
        - if (article.user)
          span Author &nbsp;

          - var name = article.user.name ? article.user.name : article.user.username

          a(href="/users/"+article.user._id)= name
        &nbsp; - &nbsp;
        - if (article.tags)
          - each tag in article.tags.split(',')
            &nbsp;
            a.tag(href="/tags/"+tag)
              i.icon-tags
              |  #{tag}

  - if (pages > 1)
    .pagination
      ul
        != createPagination(pages, page)<commit_msg>when no articles are there, display a message. fixes #62<commit_after>extends ../layouts/default

block main
  h1= title

block content
  - if (articles.length)
    - each article in articles
      .article
        h3
          a(href='/articles/'+article._id, title=article.title) #{article.title}
        p= article.body

        .meta.muted
          span= formatDate(article.createdAt)
          &nbsp; - &nbsp;
          - if (article.user)
            span Author &nbsp;

            - var name = article.user.name ? article.user.name : article.user.username

            a(href="/users/"+article.user._id)= name
          &nbsp; - &nbsp;
          - if (article.tags)
            - each tag in article.tags.split(',')
              &nbsp;
              a.tag(href="/tags/"+tag)
                i.icon-tags
                |  #{tag}

    - if (pages > 1)
      .pagination
        ul
          != createPagination(pages, page)
  - else
    p.muted No articles.&nbsp;
      a(href="/articles/new") create one
{'fraction_non_alphanumeric': 0.13052976515565265, 'fraction_numerical': 0.004369197160021846, 'mean_word_length': 1.6359712230215828, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5259877', 'n_tokens_mistral': 572, 'n_tokens_neox': 553, 'n_words': 127}