<commit_before>extends layout

block title
  title hapi Resources

block content
  .content.page-api.cf

    .column.api-description
      p Aside from the content that you'll find on this site, there's also a lot of community-produced content that can help you learn how to be effective with hapi.js. If you've produced some content that you want to see on this list, please send us a <a href="https://github.com/hapijs/hapijs.com/blob/master/lib/resources.js">pull request</a>. 

      each category, categoryName in resources.categories
        .category
          a(id=categoryName)
          h3= categoryName

          ul
            each item, itemName in category
              li
                a(href=item.url)= itemName
                p= item.description

    .column.nav-secondary
      nav(role='toc')
        h3 Resources

        ul.unstyled(role='categories')
          each category, categoryName in resources.categories
            li(role='category')
              a(href='##{categoryName}')= categoryName
<commit_msg>remove spaces from resource links<commit_after>extends layout

block title
  title hapi Resources

block content
  -  function spaceToDash(s) { return s.replace(/\s+/g, '-'); };
  .content.page-api.cf

    .column.api-description
      p Aside from the content that you'll find on this site, there's also a lot of community-produced content that can help you learn how to be effective with hapi.js. If you've produced some content that you want to see on this list, please send us a <a href="https://github.com/hapijs/hapijs.com/blob/master/lib/resources.js">pull request</a>.

      each category, categoryName in resources.categories
        .category
          a(id=spaceToDash(categoryName))
          h3= categoryName

          ul
            each item, itemName in category
              li
                a(href=item.url)= itemName
                p= item.description

    .column.nav-secondary
      nav(role='toc')
        h3 Resources

        ul.unstyled(role='categories')
          each category, categoryName in resources.categories
            li(role='category')
              a(href='##{spaceToDash(categoryName)}')= categoryName

{'fraction_non_alphanumeric': 0.08775137111517367, 'fraction_numerical': 0.0018281535648994515, 'mean_word_length': 2.404354587869362, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2850454', 'n_tokens_mistral': 613, 'n_tokens_neox': 584, 'n_words': 194}