page.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ---
  2. layout: default
  3. ---
  4. <div class="post-header">
  5. <h1 class="post-title-main">{{ page.title }}</h1>
  6. </div>
  7. {% if page.simple_map == true %}
  8. <script>
  9. $(document).ready ( function(){
  10. $('.box{{page.box_number}}').addClass('active');
  11. });
  12. </script>
  13. {% include custom/{{page.map_name}}.html %}
  14. {% elsif page.complex_map == true %}
  15. <script>
  16. $(document).ready ( function(){
  17. $('.modalButton{{page.box_number}}').addClass('active');
  18. });
  19. </script>
  20. {% include custom/{{page.map_name}}.html %}
  21. {% endif %}
  22. <div class="post-content">
  23. {% if page.summary %}
  24. <div class="summary">{{page.summary}}</div>
  25. {% endif %}
  26. {% unless page.toc == false %}
  27. {% include toc.html %}
  28. {% endunless %}
  29. {% if site.github_editme_path %}
  30. <a target="_blank" href="https://github.com/{{site.github_editme_path}}{{page.path}}" class="btn btn-default githubEditButton" role="button"><i class="fa fa-github fa-lg"></i> Edit me</a>
  31. {% endif %}
  32. {{content}}
  33. <div class="tags">
  34. {% if page.tags != null %}
  35. <b>Tags: </b>
  36. {% assign projectTags = site.data.tags.allowed-tags %}
  37. {% for tag in page.tags %}
  38. {% if projectTags contains tag %}
  39. <a href="{{ "tag_" | append: tag | append: ".html" }}" class="btn btn-default navbar-btn cursorNorm" role="button">{{page.tagName}}{{tag}}</a>
  40. {% endif %}
  41. {% endfor %}
  42. {% endif %}
  43. </div>
  44. {% include disqus.html %}
  45. </div>
  46. {{site.data.alerts.hr_shaded}}
  47. {% include footer.html %}