<commit_before>---
title: Blog
layout: blogBase
---
- page.title = "Blog tag #{page.selected_tag}" if !page.selected_tag.nil?
- page.title = "#{page.title} - page #{page.posts.current_page_index + 1}" if (!page.posts.current_page.nil?) and (page.posts.current_page_index != 0)
%h1 #{page.title}
- for post in page.posts
  -# Trick to make images work from blog posts work for the aggregator blog page
  - default_imagesdir = site.asciidoctor.attributes['imagesdir']
  - site.asciidoctor.attributes['imagesdir'] = relative(Pathname.new(post.output_path).parent.to_s)
  = partial('blogPostBody.html.haml', :outputPage => page, :post => post)
  - site.asciidoctor.attributes['imagesdir'] = default_imagesdir
  %hr(style = "border-color: #000;")
%ul.pager
  %li.previous{:class => ('disabled' unless page.posts.next_page)}
    %a{:href => (page.posts.next_page ? page.posts.next_page.url : '#')}
      %span.glyphicon.glyphicon-chevron-left
      Older
  %li.pages #{page.posts.current_page_index + 1} / #{page.posts.pages.size}
  %li.next{:class => ('disabled' unless page.posts.previous_page)}
    %a{:href => (page.posts.previous_page ? page.posts.previous_page.url : '#')}
      Newer
      %span.glyphicon.glyphicon-chevron-right<commit_msg>blog pagination: fix natural direction (previous vs next) + use relative url's<commit_after>---
title: Blog
layout: blogBase
---
- page.title = "Blog tag #{page.selected_tag}" if !page.selected_tag.nil?
- page.title = "#{page.title} - page #{page.posts.current_page_index + 1}" if (!page.posts.current_page.nil?) and (page.posts.current_page_index != 0)
%h1 #{page.title}
- for post in page.posts
  -# Trick to make images work from blog posts work for the aggregator blog page
  - default_imagesdir = site.asciidoctor.attributes['imagesdir']
  - site.asciidoctor.attributes['imagesdir'] = relative(Pathname.new(post.output_path).parent.to_s)
  = partial('blogPostBody.html.haml', :outputPage => page, :post => post)
  - site.asciidoctor.attributes['imagesdir'] = default_imagesdir
  %hr(style = "border-color: #000;")
%ul.pager
  %li.previous{:class => ('disabled' unless page.posts.previous_page)}
    %a{:href => (page.posts.previous_page ? relative(page.posts.previous_page.url, page) : '#')}
      %span.glyphicon.glyphicon-chevron-left
      Newer
  %li.pages #{page.posts.current_page_index + 1} / #{page.posts.pages.size}
  %li.next{:class => ('disabled' unless page.posts.next_page)}
    %a{:href => (page.posts.next_page ? relative(page.posts.next_page.url, page) : '#')}
      Older
      %span.glyphicon.glyphicon-chevron-right
{'fraction_non_alphanumeric': 0.1654397520340953, 'fraction_numerical': 0.005424254165052305, 'mean_word_length': 4.379166666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '3057528', 'n_tokens_mistral': 904, 'n_tokens_neox': 884, 'n_words': 167}