summaryrefslogtreecommitdiff
path: root/templates/software
diff options
context:
space:
mode:
Diffstat (limited to 'templates/software')
-rw-r--r--templates/software/page.html27
-rw-r--r--templates/software/section.html24
2 files changed, 51 insertions, 0 deletions
diff --git a/templates/software/page.html b/templates/software/page.html
new file mode 100644
index 0000000..513aee9
--- /dev/null
+++ b/templates/software/page.html
@@ -0,0 +1,27 @@
+{% extends "base.html" %}
+
+{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
+{% block description %}{{ page.description | default(value=config.description) }}{% endblock description %}
+
+{% block content %}
+<article class="site-container article-page software-page">
+ <header class="article-header narrow">
+ <p class="article-kind"><a href="{{ get_url(path='@/software/_index.md') }}">Software</a></p>
+ <h1>{{ page.title }}</h1>
+ {% if page.description %}<p class="article-description">{{ page.description }}</p>{% endif %}
+ </header>
+
+ <dl class="software-meta narrow">
+ {% if page.extra.language %}<div><dt>使用言語</dt><dd>{{ page.extra.language | join(sep=", ") }}</dd></div>{% endif %}
+ {% if page.extra.license %}<div><dt>ライセンス</dt><dd>{{ page.extra.license }}</dd></div>{% endif %}
+ <div><dt>Source</dt><dd><a class="external-link" href="{{ page.extra.source }}" rel="external">cgit</a></dd></div>
+ {% if page.extra.github_mirror %}<div><dt>Mirror</dt><dd><a class="external-link" href="{{ page.extra.github_mirror }}" rel="external">GitHub</a></dd></div>{% endif %}
+ </dl>
+
+ <div class="prose">
+ {{ page.content | safe }}
+ </div>
+
+ {% include "partials/related-notes.html" %}
+</article>
+{% endblock content %}
diff --git a/templates/software/section.html b/templates/software/section.html
new file mode 100644
index 0000000..813f793
--- /dev/null
+++ b/templates/software/section.html
@@ -0,0 +1,24 @@
+{% extends "base.html" %}
+
+{% block title %}{{ section.title }} | {{ config.title }}{% endblock title %}
+{% block description %}{{ section.description }}{% endblock description %}
+
+{% block content %}
+<div class="site-container listing-page">
+ <header class="page-header">
+ <h1>{{ section.title }}</h1>
+ <p>{{ section.description }}</p>
+ </header>
+ {% if section.pages %}
+ <div class="software-list software-list-full">
+ {% for software_item in section.pages %}
+ {% set item = software_item %}
+ {% include "partials/software-list-item.html" %}
+ {% endfor %}
+ </div>
+ {% else %}
+ <p class="empty-state">Softwareはまだありません。</p>
+ {% endif %}
+ <p class="source-note">ソースコードの正本は各Softwareから自前cgitへ案内します。</p>
+</div>
+{% endblock content %}