Skip to content

Instantly share code, notes, and snippets.

View krasnoperov's full-sized avatar
🎯
Focusing

Aleksei Krasnoperov krasnoperov

🎯
Focusing
View GitHub Profile
@krasnoperov
krasnoperov / menucrumbs.html
Created June 12, 2013 15:04
Twitter Bootstrap layout for menu and breadcrumbs from django-treenav. Dropdown lists are used for submenus. This template ignores "full_tree" flag and works as it is set to True. In other words, full menu with dropdown submenus rendered in any case.
{% load i18n %}{% load url from future %}
{% if active_menu_items %}
<ul class="breadcrumb">
{% for item in active_menu_items %}
<li>
<a href="{% if item.node.href %}{{ item.node.href }}{% else %}{% url 'treenav_undefined_url' item_slug=item.node.slug %}{% endif %}">
{% trans item.node.label %}
</a>
{% if not forloop.last %}<span class="divider">/</span>{% endif %}
</li>
@krasnoperov
krasnoperov / test.md
Last active October 22, 2017 15:23
Example usage of jekyll-gist

{% gist krasnoperov/8c7a014f0b54354f9c1f1c3afa197bdd %}

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
java
kotlin("jvm") version "1.3.20"
}
group = "com.songsterr.events"
version = "1.0.${System.getenv("BUILD_NUMBER") ?: "0-SNAPSHOT"}"