<commit_before>!!! 5
%html
  %head{lang: current_page.data.language}
    %meta{charset: 'utf-8'}
    %meta{content: 'IE=edge', 'http-equiv' => 'X-UA-Compatible'}
    %meta{name: 'viewport', content: 'width=device-width, initial-scale=1.0'}
    %meta{name: 'description', content: current_page.data.description}

    -# Open Graph

    %meta{property: 'og:article:publisher', content: config.publisher_url}
    %meta{property: 'og:title', content: current_page.data.title}
    %meta{property: 'og:type', content: 'article'}
    %meta{property: 'og:url', content: path_to_url(current_page.url)}
    %meta{property: 'og:description', content: current_page.data.description}
    = yield_content :og

    -# Icons

    %link{rel: 'canonical', href: path_to_url(current_page.url)}

    %title= current_page.data.title
    = stylesheet_link_tag '//fonts.googleapis.com/css?family=Carrois+Gothic|Source+Code+Pro:400,700'
    = stylesheet_link_tag 'application'

    :javascript
      try{Typekit.load();}catch(e){}

  %body
    %article
      %header{role: "banner"}
        %nav.locales{role: "navigation"}
          %ul
            - $languages.each do |language|
              %li= link_to "#{language.last} [#{language.first}]", "/#{language.first}/",
              { rel: "alternate", lang: "#{language}", hreflang: "#{language}" }

      .main{role: "main"}
        - if current_page.metadata[:page][:version] != $last_version
          - code = current_page.metadata[:page][:language]
          - versions = Dir.entries("source/#{code}") - %w[. ..]
          - if versions.include?($last_version)
            = link_to "Version #{$last_version}", "#{code}/#{$last_version}"
          - else
            %p 
              The latest version of Keep a Changelog is not yet available in 
              this language but 
              = link_to "you can read it in English", "/en/#{$last_version}"
              for now.
        = yield

      %footer.clearfix{role: "banner"}
        %p.license
          This project is<commit_msg>Invite people to help translate latest version<commit_after>!!! 5
%html
  %head{lang: current_page.data.language}
    %meta{charset: 'utf-8'}
    %meta{content: 'IE=edge', 'http-equiv' => 'X-UA-Compatible'}
    %meta{name: 'viewport', content: 'width=device-width, initial-scale=1.0'}
    %meta{name: 'description', content: current_page.data.description}

    -# Open Graph

    %meta{property: 'og:article:publisher', content: config.publisher_url}
    %meta{property: 'og:title', content: current_page.data.title}
    %meta{property: 'og:type', content: 'article'}
    %meta{property: 'og:url', content: path_to_url(current_page.url)}
    %meta{property: 'og:description', content: current_page.data.description}
    = yield_content :og

    -# Icons

    %link{rel: 'canonical', href: path_to_url(current_page.url)}

    %title= current_page.data.title
    = stylesheet_link_tag '//fonts.googleapis.com/css?family=Carrois+Gothic|Source+Code+Pro:400,700'
    = stylesheet_link_tag 'application'

    :javascript
      try{Typekit.load();}catch(e){}

  %body
    %article
      %header{role: "banner"}
        %nav.locales{role: "navigation"}
          %ul
            - $languages.each do |language|
              %li= link_to "#{language.last} [#{language.first}]", "/#{language.first}/",
              { rel: "alternate", lang: "#{language}", hreflang: "#{language}" }

      .main{role: "main"}
        - if current_page.metadata[:page][:version] != $last_version
          - code = current_page.metadata[:page][:language]
          - versions = Dir.entries("source/#{code}") - %w[. ..]
          - if versions.include?($last_version)
            = link_to "Version #{$last_version}", "#{code}/#{$last_version}"
          - else
            %p 
              The latest version (#{$last_version}) is not yet available in this 
              language but
              = link_to "you can read it in English", "/en/#{$last_version}"
              for now and 
              = link_to "help translate ", "https://github.com/olivierlacan/keep-a-changelog/issues" 
              it.
        = yield

      %footer.clearfix{role: "banner"}
        %p.license
          This project is
{'fraction_non_alphanumeric': 0.16021837170662237, 'fraction_numerical': 0.004747211013529551, 'mean_word_length': 2.799819657348963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '498486', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1324, 'n_words': 264}