{%- assign author = site.data.experts | where_exp:“expert”, “expert.name == page.author” -%} <div class=“post-footer–wrap”>

<div class="post-footer"> 
    <div class="footer--author-image">
      {%- if author.size > 0 -%}
      <img src="{{author.[0].image}}" alt="">
      {%- endif -%}
    </div>
    <div class="footer--author-details">
      {%- if author.size > 0 -%}
      <h3>{{author.[0].name}}</h3>
      <p>{{author.[0].title}}</p>
      {%- else -%}
      <h3>{{post.author}}</h3>
      {%- endif -%}
    </div>
</div>

</div> {%- if page.path contains '_posts' -%} <div class=“recent related”>

<div class="featured--title">
  <h2><span>RECENT</span> <span class="emphasize">ARTICLES</span></h2>
  <hr class="bar">
</div>
<div class="shadow-wrap">
  <div class="main-carousel">
    {%- comment -%} This loop will have to be re-written once we can pull in more real posts, for right now we're just
    looping through the same 3 {%- endcomment -%}
    {%- assign recent = site.posts -%}
    {%- for post in recent limit:6 -%}
    <div class="carousel-cell">
      <div class="recent-blog">
        <span>{{post.publication}}<span />
      </div>
      <div class="recent-image">
        <img src="{{post.featured-image}}" />
      </div>
      <div class="featured-other--author">
        {%- assign author = site.data.experts | where_exp:"expert", "expert.name == post.author" -%}
        {%- if author.size > 0 -%}
        <div class="featured-other--author-pic">
          <img src="{{ author[0].image }}" alt="">
          <span><a href="{{ author[0].link }}">{{ author[0].name }}</a></span>
        </div>
        {%- else -%}
        <div class="featured-other--author-pic">
          <img src="/uploads/author-placeholder.jpg" alt="">
          <span>{{ post.author | markdownify | remove:"<p>" | remove:"</p>"}}</span>
        </div>
        {%- endif -%}
        <div class="featured-other--author-data">
          <p>{{ post.date | date: '%m/%d' }} | {% capture time %}{{ post.content | reading_time }}{% endcapture %} {{
            time }} min read</p>
        </div>
      </div>
      <h4 class="featured-other--title">{{ post.title | truncate: 84 }}
        <hr class="bar">
      </h4>
      <p class="featured-other--summary">{{ post.summary | markdownify | remove:'<p>' | rmeove:'</p>' | truncate: 125}}</p>
      <a href="{{ post.url }}" class="button">READ MORE</a>
    </div>
    {%- endfor -%}
  </div>
</div>

</div> {%- endif -%} <footer>

<div class="footer-inner">
  <p id="last"></p>
  <p class="footer-bottom-links"><a href="/sign-up" class="footer-bottom-link">Sign Up</a>
    <a href="/contact-us" class="footer-bottom-link">Contact Us</a>
    <a href="/project-login" class="footer-bottom-link">Project Login</a>
    <a href="/privacy-policy" class="footer-bottom-link">Privacy Policy</a> <span class="copyright">Copyright DAI. All Rights Reserved.</span> </p>
  {% include footer-nav.html %}
  <div class="footer-bottom">
    <svg class="logo--footer footer-flat--logo" viewBox="0 0 982 245" preserveAspectRatio="xMinYMax meet"><use xlink:href="#flater-logo"></use></svg><span class="trademarked">&reg; </span>
  </div>
  <p></p>
  <p class="legaleeze">DAI is an equal opportunity/affirmative action employer with a commitment to diversity. All qualified applicants will receive consideration for employment without regard to race, color, religion, sex, sexual orientation, gender identity or national origin. <a href="/eeo">Related Resources</a></p>
</div>

{%- comment -%} Pull all this carreers crap out of here at some point {%- endcomment -%}
{% if page.careers == true %}
  <script src="https://unpkg.com/vue@2.5.2/dist/vue.min.js"></script>

  <script src="https://cdn.jsdelivr.net/algoliasearch/3/algoliasearch.min.js"></script>
  <!-- Lity (Lightweight, accessible and responsive lightbox) -->

  <script src="https://cdnjs.cloudflare.com/ajax/libs/lity/2.2.0/lity.min.js"></script>
  <!-- Slick -->

  <script src="https://cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.js"></script>
  <!-- Scroll Magic -->

  <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js"></script>

  <script src="/careers/assets/build/js/main.min.js"></script>
  <script src="/careers/assets/js/app.js"></script>
{% endif %}

<script>

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-29611334-1', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');

</script> </footer>