Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">

<title>Locations{% if template_item.current_value == "US" %} {% else %} in {{[template_item.current_value].label}} {% endif %}</title>

    {% for meta in template_item.meta %}
        {{ meta|raw }}
    {% endfor %}
  {% for stylesheets in template_item.stylesheets %}
        {{ stylesheets|raw }}
    {% endfor %}
  {% for scripts in template_item.scripts %}
        {{ scripts|raw }}
    {% endfor %}
<body class="metalocator dir_level_{{[template_item.current_value].current_level}}">


<main class="container-fluid metalocator directory_pg px-4">
    <div class="row">
        <div class="col">
            <h1 class="heading_main">Locations 
{% if template_item.current_value == "US" %}
{% else %}
in {{[template_item.current_value].label}}
{% endif %}
            <div class="ml_directory_list"> 
                {% for region in template_item[template_item.current_value].data %}
              		{% if region.first_letter %}
                  		{% if not loop.first %}
              			</div><!-- ml_directory_letter_wrapper -->
                  		{% endif %}
             			<div class="ml_directory_letter_wrapper">
                          <h2 class="letter_heading">{{ region.first_letter }}</h2>
            		{% endif %}
                	<div class="ml_directory_index_wrapper_region">
                      <a href="{{ }}">{{ region.label }} ({{ region.current_value_count }})</a>
                    </div><!-- ml_directory_index_wrapper_region -->
                	{% if loop.last %}
              		</div><!-- ml_directory_letter_wrapper (last) -->
                 	{% endif %}
                {% endfor %} 
            <!-- ml_directory_list -->
            <div class="locations_wrap row justify-content-start">
                {% for location in template_item.locations %}
                <div class="col-12 col-sm-6 col-lg-4 mb-3 mb-sm-4">
                  <div class="location h-100">
                   <h2 class="location_name"><a href="{{ location.staticlink }}">{{ }}</a></h2>
                     {{ location.address }}
                     {% if location.address2 %}
                     {% endif %}
                     <br>{{ }}, {{ location.state }} {{ location.postalcode }}<br>
                     {{ }}
                   <div class="store_hours">
                      <h5 class="heading">Store Hours</h5>
                   <!-- <a class="btn btn-sm btn-secondary" href="{{ location.staticlink }}">Details</a> -->
                  </div><!-- location -->
                <!-- locations -->
                {% endfor %}
            <!-- locations_wrap -->
      		{% for nearby in template_item.nearby %}
                {% if loop.first %}
      			<div class="sec_nearby">
                {% endif %} 
                    <li><a href="{{ }}">{{nearby.value_count}} locations in {{ nearby.value }}</a></li>
                {% if loop.last %}
      			</div><!-- sec_nearby -->
              	{% endif %} 
      		{% endfor %}

        <!-- row --> 
<!-- /.container --> 
<footer class="py-4">