Skip to content

Latest commit

 

History

History
170 lines (149 loc) · 5.63 KB

File metadata and controls

170 lines (149 loc) · 5.63 KB
layout page
title Systems
menu main
weight 2
hide_title true
permalink /systems/

{% assign systems = site.systems | sort_natural: "title" %}

{% assign pinned_items_alpha = systems | where_exp: "item", "item.pinned == 1 and item.order == nil" | sort_natural: "title" %} {% assign pinned_items_ordered = systems | where_exp: "item", "item.pinned == 1 and item.order != nil" | sort: "order" %} {% assign pinned_items = pinned_items_ordered | concat: pinned_items_alpha %}

{% assign stable_items_alpha = systems | where_exp: "item", 'item.state == "stable" and item.pinned != 1 and item.order == nil' | sort_natural: "title" %} {% assign stable_items_ordered = systems | where_exp: "item", 'item.state == "stable" and item.pinned != 1 and item.order != nil' | sort: "order" %} {% assign stable_items = stable_items_ordered | concat: stable_items_alpha %}

{% assign experimental_items_alpha = systems | where_exp: "item", 'item.state == "experimental" and item.pinned != 1 and item.order == nil' | sort_natural: "title" %} {% assign experimental_items_ordered = systems | where_exp: "item", 'item.state == "experimental" and item.pinned != 1 and item.order != nil' | sort: "order" %} {% assign experimental_items = experimental_items_ordered | concat: experimental_items_alpha %}

{% assign deprecated_items_alpha = systems | where_exp: "item", 'item.state == "deprecated" and item.pinned != 1 and item.order == nil' | sort_natural: "title" %} {% assign deprecated_items_ordered = systems | where_exp: "item", 'item.state == "deprecated" and item.pinned != 1 and item.order != nil' | sort: "order" %} {% assign deprecated_items = deprecated_items_ordered | concat: deprecated_items_alpha %}

{% assign ordered_systems = pinned_items | concat: stable_items | concat: experimental_items | concat: deprecated_items %}

{% include callout.html tone="green" link="https://github.com/potassco/" icon='' text='Our systems are open source, feel free to contribute and report issues. The source code of our projects is available on GitHub.' %}

×

Search results:

{% for item in ordered_systems %} {% include system_list_item.html item=item %} {% endfor %}
<script type="text/javascript" charset="utf-8"> var posts = [ {% for item in ordered_systems %} {% assign summary = item.summary %} {% assign system_state = item.state %} {% assign state_label = "Error" %} {% if system_state == 'stable' %} {% assign state_label = 'Stable' %} {% elsif system_state == 'experimental' %} {% assign state_label = 'Experimental' %} {% elsif system_state == 'deprecated' %} {% assign state_label = 'Deprecated' %} {% endif %} { title: {{ item.title | strip_html | jsonify }}, summary: {{ summary | strip_html | normalize_whitespace | jsonify }}, content: {{ item.content | strip_html | normalize_whitespace | jsonify }}, url: {{ item.url | strip_html | jsonify }}, order: {{ forloop.index0 }}, stateLabel: {{ state_label | jsonify }}, stateClass: {{ system_state | jsonify }} }{% unless forloop.last %},{% endunless %} {% endfor %} ]; document.addEventListener('DOMContentLoaded', function() { var searchField = $('#search'); var searchClear = $('#search_area .search_clear'); var searchResultsArea = $('#search_results_area'); var searchCount = $('#result_count'); var searchResults = $('#search_results'); var searchResultsHeading = $('#search_results_heading'); var systemsSections = $('#systems_sections'); var jsonSearch = new JSONSearch({ fields: { title: 'infix', summary: 'word_prefix', content: 'word_prefix' }, ranks: { title: 3, summary: 2, content: 1 } }); var renderResults = function(results) { searchCount.text('(' + results.length + ')'); searchResults.html(results.map(function(post) { var badge = post.stateLabel ? ' ' + post.stateLabel + '' : ''; return '
' + post.title + '' + badge + '

' + post.summary + '

'; }).join('')); }; var clear = function() { searchField.val(''); search(); }; var search = function(event) { if (event && event.keyCode == 27) { clear(); return; } var query = searchField.val(); if (!query) { searchClear.hide(); searchResultsHeading.hide(); searchResultsArea.hide(); systemsSections.show(); return; } var results = jsonSearch.getResults(query, posts).sort(function(a, b) { return a.order - b.order; }); searchClear.show(); searchResultsHeading.show(); searchResultsArea.show(); systemsSections.hide(); renderResults(results); }; searchField.on('keyup', search); searchClear.on('click', clear); }); </script> <script type="text/javascript" src="{{ "/assets/js/jquery.min.js" | prepend: full_base_url }}" charset="utf-8"></script> <script type="text/javascript" src="{{ "/assets/js/json_search.0.9.0.js" | prepend: full_base_url }}" charset="utf-8"></script>