<commit_before>!!! 5
%html
  %head
    %meta{ charset: "utf-8" }
    %meta{ http_equiv: 'X-UA-Compatible', content: 'IE=edge;chrome=1' }
    %meta{ content: 'width=device-width, initial-scale=1, maximum-scale=1', name: 'viewport' }
    %meta{ content: "Middleman #{Middleman::VERSION}", name: 'generator' }
    %link{ rel: 'author', href: 'https://plus.google.com/+AtsushiNAGASE' }
    %title
      - if current_article
        = "#{current_article.title} - "
      - elsif content_for?(:title)
        = "#{yield_content(:title)} - "
      = "ja.ngs.io"
    - ogp_tags do|name, value|
      %meta{  property: name, content: value }
    - %w{ bootstrap application syntax font-awesome }.each do|css|
      = stylesheet_link_tag css
    - if current_page.data.description
      %meta{ content: current_page.data.description, name: "description" }
    - else
      %meta{ content: "プログラミング、ガジェット、電子工作、ロードバイク、ランニング、旅行など", name: "description" }
    - if current_page.data.keywords
      %meta{ content: current_page.data.page.keywords, name: "keywords" }
    %meta{ content: "<NAME>", name: "author" }
    = feed_tag :atom, "#{blog.options.prefix.to_s}/feed.xml", title: "Atom Feed"
  %body
    .container
      .row
        %main.col-md-9{ role: 'main' }
          = yield
        %aside.col-md-3
          %h2 ナビゲーション
          %ol.nav
            %li
              = link_to '/' do
                %span.glyphicon.glyphicon-home
                &nbsp;ホーム
              = link_to '/about' do
                %span.glyphicon.glyphicon-user
                &nbsp;自己紹介
              = link_to 'http://ngs.io/' do
                %span.glyphicon.glyphicon-pencil
                &nbsp;Blog (English)

        %aside.col-md-3
          %h2 最近の記事
          %ol.nav
            - blog.articles.select {|a| a.data[:public] }.sort { |x,y| y.date <=> x.date }[0...10].each do |article|
              %li
                = link_to article do
                  %span.title= article.title
                  %time= article.date.strftime('%Y/%m/%d')
          %h2 タグ
          %ol.nav
            - blog.tags.sort.each do |tag, articles|
              %li
                = link_to tag_path(tag) do
                  %span.glyphicon.glyphicon-tag
                  = tag
                  %span.badge.pull-right= articles.size
          %h2 月別
          %ol.nav
            - blog.articles.select {|a| a.data[:public] }.group_by {|a| a.date.year }.each do |year, year_articles|
              - year_articles.group_by {|a| a.date.month }.each do |month, month_articles|
                %li
                  = link_to blog_month_path(year, month) do
                    = sprintf '%04d年%02d月', year, month
                    %span.badge.pull-right= month_articles.size
      %footer.row
        %address.col-md-12<
          Proudly hosted by
          = link_to 'GitHub Pages', 'http://pages.github.com'
          \.&nbsp;
          Theme by
          = link_to 'United', 'http://bootswatch.com/united/'
          from
          = link_to 'Bootswatch', 'http://bootswatch.com/'
          \.&nbsp;
          Copyright &copy; #{ Time.now.year }&nbsp;
          = link_to '<NAME>', 'http://ngs.io/'
          \.

    = google_analytics_tag


- content_for :title do
  = "ja.ngs.io"<commit_msg>Update layout<commit_after>!!! 5
%html
  %head
    %meta{ charset: "utf-8" }
    %meta{ http_equiv: 'X-UA-Compatible', content: 'IE=edge;chrome=1' }
    %meta{ content: 'width=device-width, initial-scale=1, maximum-scale=1', name: 'viewport' }
    %meta{ content: "Middleman #{Middleman::VERSION}", name: 'generator' }
    %link{ rel: 'author', href: 'https://plus.google.com/+AtsushiNAGASE' }
    %title
      - if current_article
        = "#{current_article.title} - "
      - elsif content_for?(:title)
        = "#{yield_content(:title)} - "
      = "ja.ngs.io"
    - ogp_tags do|name, value|
      %meta{  property: name, content: value }
    - %w{ bootstrap application syntax font-awesome }.each do|css|
      = stylesheet_link_tag css
    - if current_page.data.description
      %meta{ content: current_page.data.description, name: "description" }
    - else
      %meta{ content: "プログラミング、ガジェット、電子工作、ロードバイク、ランニング、旅行など", name: "description" }
    - if current_page.data.keywords
      %meta{ content: current_page.data.page.keywords, name: "keywords" }
    %meta{ content: "長瀬 敦史", name: "author" }
    = feed_tag :atom, "#{blog.options.prefix.to_s}/feed.xml", title: "Atom Feed"
  %body
    .container
      .row
        %main.col-md-9{ role: 'main' }
          = yield
        %aside.col-md-3
          %h2 ナビゲーション
          %ol.nav
            %li
              = link_to '/' do
                %span.glyphicon.glyphicon-home
                &nbsp;ホーム
              = link_to '/about' do
                %span.glyphicon.glyphicon-user
                &nbsp;自己紹介
              = link_to 'http://ngs.io/' do
                %span.glyphicon.glyphicon-pencil
                &nbsp;Blog (English)
          %h2 最近の記事
          %ol.nav
            - blog.articles.select {|a| a.data[:public] }.sort { |x,y| y.date <=> x.date }[0...10].each do |article|
              %li
                = link_to article do
                  %span.title= article.title
                  %time= article.date.strftime('%Y/%m/%d')
          %h2 タグ
          %ol.nav
            - blog.tags.sort.each do |tag, articles|
              %li
                = link_to tag_path(tag) do
                  %span.glyphicon.glyphicon-tag
                  = tag
                  %span.badge.pull-right= articles.size
          %h2 月別
          %ol.nav
            - blog.articles.select {|a| a.data[:public] }.group_by {|a| a.date.year }.each do |year, year_articles|
              - year_articles.group_by {|a| a.date.month }.each do |month, month_articles|
                %li
                  = link_to blog_month_path(year, month) do
                    = sprintf '%04d年%02d月', year, month
                    %span.badge.pull-right= month_articles.size
      %footer.row
        %address.col-md-12<
          Proudly hosted by
          = link_to 'GitHub Pages', 'http://pages.github.com'
          \.&nbsp;
          Theme by
          = link_to 'United', 'http://bootswatch.com/united/'
          from
          = link_to 'Bootswatch', 'http://bootswatch.com/'
          \.&nbsp;
          Copyright &copy; #{ Time.now.year }&nbsp;
          = link_to '<NAME>', 'http://ngs.io/'
          \.

    = google_analytics_tag


- content_for :title do
  = "ja.ngs.io"
{'fraction_non_alphanumeric': 0.1447408770315854, 'fraction_numerical': 0.006286415210058264, 'mean_word_length': 1.6999172185430464, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4892830', 'n_tokens_mistral': 2310, 'n_tokens_neox': 2207, 'n_words': 426}