Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data/data.html
- {% set menuItems = [
- {
- title: 'agency',
- link: 'agency.html'
- },
- {
- title: 'projects',
- link: 'projects.html'
- },
- {
- title: 'jobs',
- link: 'jobs.html'
- },
- {
- title: 'contact',
- link: 'contact.html'
- }
- ] %}
- partials/_header.html(меню)
- {% import "data/data.html" as data %} (в ту страницу куда инеклюдится header)
- <div class="header__center js-header-center">
- <ul class="nav-menu header__nav-menu">
- {% for item in data.menuItems %}
- <li class="{% if (pageLink == item.title) %}current-menu-item{% endif %}"><a href="{{ item.link }}">{{ item.title }}</a></li>
- {% endfor %}
- </ul>
- <a href="#" class="header__lang js-header-lang" data-name="{{ data.lang.name }}.">{{data.lang.locale}}.</a>
- <div class="header__socials">
- <ul class="header__socials-list">
- {% for item in data.socials %}
- <li class="header__socials-item">
- <a href="#" class="header__socials-link">{{ item }}</a>
- </li>
- {% endfor %}
- </ul>
- </div>
- </div>
Add Comment
Please, Sign In to add comment