<commit_before>{% extends "base.html" %}

{% block title -%}
    {{office.title | safe}}
{%- endblock %}

{% block desc -%}
    {{office.desc | safe}}
{%- endblock %}


{% block content %}

    {# Variables #}
    
    {% set path = '/offices/' ~ office.slug ~ '/' %}

    {# Macros #}

    {% import "post-macros.html" as post_macros with context %}
    
    
    <main class="content content__1-3" id="main" role="main">

        <!-- .content_bar must come after .content_hero but before .content_wrapper -->
        <div class="content_bar"></div>

        <div class="wrapper content_wrapper office">

            <aside class="content_sidebar content__flush-all-on-small">
                {% include "_offices-nav.html" %}
            </aside>

            <div class="content_main 
                        content__flush-bottom 
                        content__flush-top-on-small">
                <h1>{{office.title | safe}}</h1>
                
                <div class="{% if office.intro_subscribe_form -%} 
                                content-l
                                content-l__large-gutters
                            {%- endif %}">
                    <section class="office_intro 
                                    {% if office.intro_subscribe_form -%}
                                        content-l_col 
                                        content-l_col-1-2
                                    {%- endif %}">
                        <p class="h3">{{office.intro_text | safe if office.intro_text}}</p>
                    </section>
                    
                    {% if office.intro_subscribe_form %}
                    <section class="office_contact 
                                    content-l_col 
                                    content-l_col-1-2
                                    content-l_col__before-divider">
                        <p class="h3 u-show-on-mobile">Stay informed</p>
                        <p class="short-desc">Stay up to date with our email newsletter</p>
                        <!-- TODO: need correct query data for email -->
                        <!-- TODO: the include prob won't work with inline form -->
                        {% include "email-subscribe-form.html" %}
                    </section>
                    {% endif %}
                    
                </div>
                
                {% if office.top_story_head %}
                <section class="office_featured
                                block 
                                block__padded-top 
                                block__sub
                                block__border-top">
                    <h1 class="h3">{{office.top_story_head | safe}}</h1>
                    <div class="content-l
                                content-l__large-gutters">
                        <div class="content-l_col
                                    content-l_col-1-2">
                            <p class="short-desc">{{office.top_story_desc | safe}}</p>
                        </div>
                        <div class="content-l_col 
                                    content-l_col-1-2
                                    content-l_col__before-divider">
                            <ul class="list__links">
                                {% for link in office.top_story_links %}
                                	<li class="list_item">
                                        <a class="jump-link 
                                                  jump-link__right 
                                                  list_link"
                                           href="{{link[0]}}">
                                            {{link[1]}}
                                        </a>
                                    </li>
                                {% endfor %}
                            </ul>
                        </div>
                    </div>
                </section>
                {% endif %}
                
                {% if office.resources %}
                    <section class="office_resources
                                    block 
                                    block__padded-top 
                                    block__border-top">
                        <h1 class="h2">
                            {{resource_title}}
                        </h1>
                        <div>
                                {% for resource in office.resources %}
                                	<section class="media office_resource block__sub">
                                        <div class="media_image-container 
                                                    media_image-container__wide-margin">
                                            <img class="media_image
                                                        u-centered-on-mobile" 
                                                 width="150"
                                                 src="{{resource.icon}}">
                                        </div>
                                        <div class="media_body">
                                            <h2 class="h3">{{resource.head | safe}}</h2>
                                            <p class="short-desc">{{resource.desc | safe}}</p>
                                            <a class="jump-link 
                                                        jump-link__right"
                                                 href="{{resource.link[0] if resource.link}}">
                                                  {{resource.link[1] if resource.link}}
                                            </a>
                                        </div>
                                    </section>
                                {% endfor %}
                            </div>
                    </section>
                {% endif %}
                
                
                {% if initiatives %}
                    <section class="office_initiatives
                                    block__sub
                                    block 
                                    block__padded-top 
                                    block__border-top">
                        <h1 class="h2">
                            Our Work
                        </h1>
                        <div class="content-l 
                                    content-l__large-gutters
                                    expandables-group">
                            
                            {% for initiative in initiatives %}
                            <div class="office_initiative
                                        expandable 
                                        expandable__expanded 
                                        expandable__mobile-only
                                        content-l_col
                                        {% if initiatives|list|length > 1 -%}
                                            content-l_col-1-2
                                        {% else -%}
                                            content-l_col-1
                                        {%- endif %}">
                                <button class="expandable_header
                                                 expandable_target
                                                 u-show-on-mobile">
                                      <span class="expandable_header-left 
                                                   expandable_label">
                                          {{initiative.title | safe}}
                                      </span>
                                      <span class="expandable_header-right 
                                                   expandable_link">
                                          <span class="expandable_cue-open">
                                              <span class="cf-icon 
                                                           cf-icon-plus-round">
                                              </span>
                                          </span>
                                          <span class="expandable_cue-close">
                                              <span class="cf-icon 
                                                           cf-icon-minus-round">
                                              </span>
                                          </span>
                                      </span>
                                  </button>
                                  <div class="expandable_content">
                                        <h2 class="h4
                                                   u-hide-on-mobile">
                                            {{initiative.title | safe}}
                                        </h2>
                                        <p class="short-desc">
                                            {{initiative.content | safe}}
                                        </p>
                                        <a class="jump-link 
                                                  jump-link__right"
                                            href="{{path}}">
                                            Read more
                                        </a>
                                    </div>
                            </div><!-- END .expandable -->
                            {% endfor %}
                        </div>
                    </section>
                {% endif %}<commit_msg>Set initiative paths on office template<commit_after>{% extends "base.html" %}

{% block title -%}
    {{office.title | safe}}
{%- endblock %}

{% block desc -%}
    {{office.desc | safe}}
{%- endblock %}


{% block content %}

    {# Variables #}
    
    {% set path = '/offices/' ~ office.slug ~ '/' %}

    {# Macros #}

    {% import "post-macros.html" as post_macros with context %}
    
    
    <main class="content content__1-3" id="main" role="main">

        <!-- .content_bar must come after .content_hero but before .content_wrapper -->
        <div class="content_bar"></div>

        <div class="wrapper content_wrapper office">

            <aside class="content_sidebar content__flush-all-on-small">
                {% include "_offices-nav.html" %}
            </aside>

            <div class="content_main 
                        content__flush-bottom 
                        content__flush-top-on-small">
                <h1>{{office.title | safe}}</h1>
                
                <div class="{% if office.intro_subscribe_form -%} 
                                content-l
                                content-l__large-gutters
                            {%- endif %}">
                    <section class="office_intro 
                                    {% if office.intro_subscribe_form -%}
                                        content-l_col 
                                        content-l_col-1-2
                                    {%- endif %}">
                        <p class="h3">{{office.intro_text | safe if office.intro_text}}</p>
                    </section>
                    
                    {% if office.intro_subscribe_form %}
                    <section class="office_contact 
                                    content-l_col 
                                    content-l_col-1-2
                                    content-l_col__before-divider">
                        <p class="h3 u-show-on-mobile">Stay informed</p>
                        <p class="short-desc">Stay up to date with our email newsletter</p>
                        <!-- TODO: need correct query data for email -->
                        <!-- TODO: the include prob won't work with inline form -->
                        {% include "email-subscribe-form.html" %}
                    </section>
                    {% endif %}
                    
                </div>
                
                {% if office.top_story_head %}
                <section class="office_featured
                                block 
                                block__padded-top 
                                block__sub
                                block__border-top">
                    <h1 class="h3">{{office.top_story_head | safe}}</h1>
                    <div class="content-l
                                content-l__large-gutters">
                        <div class="content-l_col
                                    content-l_col-1-2">
                            <p class="short-desc">{{office.top_story_desc | safe}}</p>
                        </div>
                        <div class="content-l_col 
                                    content-l_col-1-2
                                    content-l_col__before-divider">
                            <ul class="list__links">
                                {% for link in office.top_story_links %}
                                	<li class="list_item">
                                        <a class="jump-link 
                                                  jump-link__right 
                                                  list_link"
                                           href="{{link[0]}}">
                                            {{link[1]}}
                                        </a>
                                    </li>
                                {% endfor %}
                            </ul>
                        </div>
                    </div>
                </section>
                {% endif %}
                
                {% if office.resources %}
                    <section class="office_resources
                                    block 
                                    block__padded-top 
                                    block__border-top">
                        <h1 class="h2">
                            {{resource_title}}
                        </h1>
                        <div>
                                {% for resource in office.resources %}
                                	<section class="media office_resource block__sub">
                                        <div class="media_image-container 
                                                    media_image-container__wide-margin">
                                            <img class="media_image
                                                        u-centered-on-mobile" 
                                                 width="150"
                                                 src="{{resource.icon}}">
                                        </div>
                                        <div class="media_body">
                                            <h2 class="h3">{{resource.head | safe}}</h2>
                                            <p class="short-desc">{{resource.desc | safe}}</p>
                                            <a class="jump-link 
                                                        jump-link__right"
                                                 href="{{resource.link[0] if resource.link}}">
                                                  {{resource.link[1] if resource.link}}
                                            </a>
                                        </div>
                                    </section>
                                {% endfor %}
                            </div>
                    </section>
                {% endif %}
                
                
                {% if initiatives %}
                    <section class="office_initiatives
                                    block__sub
                                    block 
                                    block__padded-top 
                                    block__border-top">
                        <h1 class="h2">
                            Our Work
                        </h1>
                        <div class="content-l 
                                    content-l__large-gutters
                                    expandables-group">
                            
                            {% for initiative in initiatives %}
                            <div class="office_initiative
                                        expandable 
                                        expandable__expanded 
                                        expandable__mobile-only
                                        content-l_col
                                        {% if initiatives|list|length > 1 -%}
                                            content-l_col-1-2
                                        {% else -%}
                                            content-l_col-1
                                        {%- endif %}">
                                <button class="expandable_header
                                                 expandable_target
                                                 u-show-on-mobile">
                                      <span class="expandable_header-left 
                                                   expandable_label">
                                          {{initiative.title | safe}}
                                      </span>
                                      <span class="expandable_header-right 
                                                   expandable_link">
                                          <span class="expandable_cue-open">
                                              <span class="cf-icon 
                                                           cf-icon-plus-round">
                                              </span>
                                          </span>
                                          <span class="expandable_cue-close">
                                              <span class="cf-icon 
                                                           cf-icon-minus-round">
                                              </span>
                                          </span>
                                      </span>
                                  </button>
                                  <div class="expandable_content">
                                        <h2 class="h4
                                                   u-hide-on-mobile">
                                            {{initiative.title | safe}}
                                        </h2>
                                        <p class="short-desc">
                                            {{initiative.content | safe}}
                                        </p>
                                        <a class="jump-link 
                                                  jump-link__right"
                                            href="{{path ~ initiative.slug}}">
                                            Read more
                                        </a>
                                    </div>
                            </div><!-- END .expandable -->
                            {% endfor %}
                        </div>
                    </section>
                {% endif %}
{'fraction_non_alphanumeric': 0.081738768718802, 'fraction_numerical': 0.004159733777038269, 'mean_word_length': 0.5546843424137095, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 189, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 278, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2822723', 'n_tokens_mistral': 3696, 'n_tokens_neox': 3248, 'n_words': 626}