PageRenderTime 53ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/themes/octopress/templates/_includes/navigation.html

https://gitlab.com/janninematt/janninematt
HTML | 55 lines | 53 code | 2 blank | 0 comment | 0 complexity | 7b32fca9c3cfbaeca3eead99eb1eee75 MD5 | raw file
  1. {% if DISPLAY_FEEDS_ON_MENU|default(true) %}
  2. <ul class="subscription" data-subscription="rss">
  3. {% if FEED_FEEDBURNER %}
  4. <li><a href="http://feeds.feedburner.com/{{ FEED_FEEDBURNER }}" rel="subscribe-rss">RSS</a></li>
  5. {% else %}
  6. {% if FEED_ATOM %}
  7. <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" rel="subscribe-atom">Atom</a></li>
  8. {% endif %}
  9. {% if FEED_RSS %}
  10. <li><a href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" rel="subscribe-rss">RSS</a></li>
  11. {% endif %}
  12. {% endif %}
  13. </ul>
  14. {% endif %}
  15. {% if SEARCH_BOX %}
  16. <form action="{{ SITESEARCH|default('https://www.google.com/search') }}" method="get">
  17. <fieldset role="search">
  18. {% if 'duckduckgo.com' in SITESEARCH|lower %}
  19. <input type="hidden" name="sites" value="{{ SITEURL|replace('https://','')|replace('http://','') }}" />
  20. {% else %}
  21. <input type="hidden" name="sitesearch" value="{{ SITEURL|replace('https://','')|replace('http://','') }}">
  22. {% endif %}
  23. <input class="search" type="text" name="q" results="0" placeholder="Search"/>
  24. </fieldset>
  25. </form>
  26. {% endif %}
  27. <ul class="main-navigation">
  28. {% for title, link in MENUITEMS %}
  29. <li><a href="{{ link }}">{{ title }}</a></li>
  30. {% endfor %}
  31. {% if DISPLAY_PAGES_ON_MENU %}
  32. {% for page in PAGES %}
  33. <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
  34. {% endfor %}
  35. {% endif %}
  36. {% if MENUITEMS_MIDDLE %}
  37. {% for title, link in MENUITEMS_MIDDLE %}
  38. <li><a href="{{ link }}">{{ title }}</a></li>
  39. {% endfor %}
  40. {% endif %}
  41. {% if DISPLAY_CATEGORIES_ON_MENU %}
  42. {% for cat, null in categories %}
  43. <li {% if cat == category %}class="active"{% endif %}>
  44. <a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | capitalize }}</a>
  45. </li>
  46. {% endfor %}
  47. {% endif %}
  48. {% if MENUITEMS_AFTER %}
  49. {% for title, link in MENUITEMS_AFTER %}
  50. <li><a href="{{ link }}">{{ title }}</a></li>
  51. {% endfor %}
  52. {% endif %}
  53. </ul>