//= require_self

// Share buttons
$('.btn-share').on('click', function() {
    window.open($(this).attr('href'), 'Share', 'width=200,height=200,noopener');
    return false;
});

$(document).on('turbolinks:load', function () {
  // Initialize fluidbox
  $('.fluidbox-trigger').fluidbox();

  // Track page views on Turbolinks
  if (typeof ga === 'function') {
    ga('send', 'pageview', location.pathname);
  }

  // Initialize scrollreveal
  sr.reveal('.reveal', {
    distance: '0',
    duration: 500,
    easing: 'ease-in-out',
    origin: 'top',
    scale: 1,
    reset: false,
    viewFactor: 0
  });
});

window.sr = ScrollReveal({ reset: true });

//= require_self

// Share buttons
$('.btn-share').on('click', function() {
  window.open($(this).attr('href'), 'Share', 'width=200,height=200,noopener');
  return false;
});

$(document).on('turbolinks:load', function () {
  // Initialize fluidbox
  $('.fluidbox-trigger').fluidbox();

  // Track page views on Turbolinks
  if (typeof ga === 'function') {
    ga('send', 'pageview', location.pathname);
  }

  // Initialize scrollreveal
  sr.reveal('.reveal', {
    distance: '0',
    duration: 500,
    easing: 'ease-in-out',
    origin: 'top',
    scale: 1,
    reset: false,
    viewFactor: 0
  });
});

window.sr = ScrollReveal({ reset: true });

Fix identation