25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

72 lines
2.1 KiB

  1. {% extends "layout.html" %}
  2. {% block title %}{{column.name}} - {{siteConfig.site_name}}{% endblock %}
  3. {% block content %}
  4. <!-- Column Banner -->
  5. <div class="col-banner" {% if column.banner_image %}style="background-image:url('{{column.banner_image}}')"{% endif %}>
  6. <div class="col-banner-overlay"></div>
  7. <div class="col-banner-content">
  8. <h1>{{column.name}}</h1>
  9. {% if column.name_en %}
  10. <div class="col-banner-en">{{column.name_en}}</div>
  11. {% endif %}
  12. {% if column.description %}
  13. <div class="col-banner-desc">{{column.description}}</div>
  14. {% endif %}
  15. </div>
  16. </div>
  17. <!-- Sub Navigation Tabs -->
  18. {% if children and children.length > 0 %}
  19. <div class="col-tabs-wrap">
  20. <div class="col-tabs">
  21. {% for child in children %}
  22. <a href="/column/{{column.key}}/{{child.key}}.html"
  23. class="col-tab{% if currentChild and currentChild.key == child.key %} active{% endif %}">
  24. {{child.name}}
  25. </a>
  26. {% endfor %}
  27. </div>
  28. </div>
  29. {% endif %}
  30. <!-- Breadcrumb -->
  31. <div class="col-breadcrumb-wrap">
  32. <div class="col-breadcrumb">
  33. <span>您的位置:</span>
  34. <a href="/">首页</a><span class="sep">&gt;</span>
  35. <a href="/column/{{column.key}}.html">{{column.name}}</a>
  36. {% if currentChild %}
  37. <span class="sep">&gt;</span><span class="current">{{currentChild.name}}</span>
  38. {% endif %}
  39. </div>
  40. </div>
  41. <!-- Content Area -->
  42. <div class="col-content-wrap">
  43. <div class="col-content">
  44. {% if currentChild %}
  45. <h2 class="col-section-title">{{currentChild.name}}</h2>
  46. {% endif %}
  47. {% if contentData.type == 'page' %}
  48. {% include "column/_page.html" %}
  49. {% elif contentData.type == 'article' %}
  50. {% include "column/_article.html" %}
  51. {% elif contentData.type == 'image' %}
  52. {% include "column/_image.html" %}
  53. {% elif contentData.type == 'text' %}
  54. {% include "column/_text.html" %}
  55. {% elif contentData.type == 'person' %}
  56. {% include "column/_person.html" %}
  57. {% elif contentData.type == 'job' %}
  58. {% include "column/_job.html" %}
  59. {% else %}
  60. <div class="col-empty">暂无内容</div>
  61. {% endif %}
  62. </div>
  63. </div>
  64. {% include "common/_footer.html" %}
  65. {% endblock %}