<commit_before>extends ./layout.jade

block content
  .col-xs-12
    header.clearfix
      -if (!logo) logo = relative("/assets/img/ccno_logo.png")
      img.logo.hidden-xs(src=logo)
      h1.title= title
      .lesson-icons
        .level
          img(title="Level " + level src=relative("/assets/img/level" + level + ".png"))
          -levelName = 'layout.levelNames.' + level
          -dataLevelName = 'html=' + levelName
          span(data-i18n=dataLevelName)= t(levelName)
        .course
          -course = _.first(collection)
          -courseIndex = '/' + course + '/index.md'
          -courseMetadata = matter(courseIndex)
          -courseName = courseMetadata.title || course
          -courseLogo = relative("/" + course + "/logo-white.png")
          -if (!isFile(path.dir, courseLogo)) courseLogo = relative('/logo-white.png')
          img(src=courseLogo)
          span= courseName
        .pdf
          a.download(href=link.replace('.html', '.pdf') data-i18n="title=layout.downloadPdf" title=t('layout.downloadPdf'))
            span.glyphicon.glyphicon-save-file
          span PDF

  .col-xs-12
    .content!= contents<commit_msg>lesson: course logo as link<commit_after>extends ./layout.jade

block content
  .col-xs-12
    header.clearfix
      -if (!logo) logo = relative('/assets/img/ccno_logo.png')
      img.logo.hidden-xs(src=logo)
      h1.title= title
      .lesson-icons
        .level
          img(title="Level " + level src=relative('/assets/img/level' + level + '.png'))
          -levelName = 'layout.levelNames.' + level
          -dataLevelName = 'html=' + levelName
          span(data-i18n=dataLevelName)= t(levelName)
        -course = _.first(collection)
        -courseIndex = '/' + course + '/index.md'
        -courseMetadata = matter(courseIndex)
        -courseName = courseMetadata.title || course
        -courseLink = relative('/' + course)
        -courseLogo = relative('/' + course + '/logo-white.png')
        -if (!isFile(path.dir, courseLogo)) courseLogo = relative('/logo-white.png')
        a.course(href=courseLink)
          img(src=courseLogo)
          span= courseName
        .pdf
          a.download(href=link.replace('.html', '.pdf') data-i18n="title=layout.downloadPdf" title=t('layout.downloadPdf'))
            span.glyphicon.glyphicon-save-file
          span PDF

  .col-xs-12
    .content!= contents
{'fraction_non_alphanumeric': 0.1480858224652924, 'fraction_numerical': 0.007572570466975179, 'mean_word_length': 2.2664835164835164, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2598452', 'n_tokens_mistral': 746, 'n_tokens_neox': 731, 'n_words': 130}