Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
Example base.twig for use with Timber plugin for WordPress
<!doctype html>
<html class="no-js" {{site.language_attributes}}>
<meta charset="{{site.charset}}">
{% if wp_title %}
{{ wp_title }} - {{ }}
{% else %}
{{ }}
{% endif %}
<meta name="description" content="{{site.description}}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ }}/style.css">
<nav role="navigation">
<ul class="nav">
{% for item in primary_menu.get_items %}
<li class="nav-item {{item.classes | join(' ')}}">
<a class="nav-link" href="{{item.get_link}}">{{item.title}}</a>
{% endfor %}
<div class="wrapper">
{% block content %}
No content found!
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment