[pluginlist-update] Adding lektor-tags for plugins, adding assets for another webpack build, plugin template tweaks.

This commit is contained in:
Joseph Nix 2018-05-03 23:50:36 -05:00
parent ae9e7090eb
commit 460693eccb
13 changed files with 2746 additions and 18 deletions

View File

@ -16,3 +16,4 @@ lektor-markdown-header-anchors = 0.1
lektor-markdown-highlighter = 0.1
lektor-markdown-admonition = 0.1
lektor-atom = 0.2
lektor-tags = 0.1

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

2
configs/tags.ini Normal file
View File

@ -0,0 +1,2 @@
parent = /plugins
template = plugin-tag.html

View File

@ -1,3 +1,11 @@
name: lektor-jinja-content
---
categories: content
---
tags:
before-build
jinja
templates
content
markdown

View File

@ -33,3 +33,6 @@ width = 1/4
label = Categories
type = select
source = site.query('/plugin-categories')
[fields.tags]
type = strings

13
templates/plugin-tag.html Normal file
View File

@ -0,0 +1,13 @@
{% extends "plugins.html" %}
{% block body %}
<h1>Tag: {{ this.tag }}</h1>
<h2>Plugins:</h2>
<ul>
{% for i in this.items %}
<li><a href="{{ i|url }}">{{ i._id }}</a></li>
{% else %}
<li><em>No items.</em></li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -15,32 +15,37 @@
<h1>Plugin &ndash; {{ pd.name }} {{ pd.version }}</h1>
</div>
</div>
<div class="row">
<div class="col-sm-1"></div>
<div class="col-sm-11">
<p>{{ summary }}<p>
</div>
</div>
<div class="row">
<div class="col-sm-3" style="padding-top: 25px;">
<div>
<h4>Project links</h4>
<ul class="tree-nav">
<li><a href="{{ pd.home_page }}">Homepage</a></li>
</ul>
</div>
{% if 'github' in pd.home_page %}
<div>
<h4>GitHub statistics</h4>
<ul class="button-nav">
<li><p><a class="github-button" href="{{ pd.home_page }}" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star {{ this.name }} on GitHub">Star</a></p></li>
<li><p><a class="github-button" href="{{ pd.home_page }}/fork" data-icon="octicon-repo-forked" data-show-count="true" data-size="large" data-show="true" aria-label="Open Issues">Fork</a></p></li>
<li><p><a class="github-button" href="{{ pd.home_page }}/issues" data-icon="octicon-issue-opened" data-show-count="true" data-size="large" data-show="true" aria-label="Open Issues">Open Issues</a></p></li>
</ul>
<div class="row">
<div class="col-sm-3 plugin-margin">
<h4>Project links</h4>
<ul class="tree-nav">
<li><a href="{{ pd.home_page }}">Homepage</a></li>
</ul>
{% if 'github' in pd.home_page %}
<div class="separator">
<h4>GitHub Statistics</h4>
</div>
<ul class="button-nav">
<li><p><a class="github-button" href="{{ pd.home_page }}" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star {{ this.name }} on GitHub">Star</a></p></li>
<li><p><a class="github-button" href="{{ pd.home_page }}/fork" data-icon="octicon-repo-forked" data-show-count="true" data-size="large" data-show="true" aria-label="Open Issues">Fork</a></p></li>
<li><p><a class="github-button" href="{{ pd.home_page }}/issues" data-icon="octicon-issue-opened" data-show-count="true" data-size="large" data-show="true" aria-label="Open Issues">Open Issues</a></p></li>
</ul>
{% endif %}
<h4>Meta</h4>
<div class="separator">
<h4>Meta</h4>
</div>
<p><strong>Version:</strong> {{ pd.version }}</p>
<p><strong>Author:</strong>
{% if pd.author_email %}
@ -49,7 +54,21 @@
{{ pd.author }}
{% endif %}
</p>
<div class="separator">
<h4>Tags</h4>
</div>
{% if this.tags %}
{% for t in this.tags -%}
{{ "and " if loop.last }}
<a href="{{ ('/plugins/tag/' ~ t.lower() ~ '/')|url }}">{{ t }}</a>{{ ", " if not loop.last }}
{% endfor %}
{% else %}
<p>Plugin has no tags.</p>
{% endif %}
</div>
<div class="col-sm-9 doc-styling">
<h2>Project Description</h2>
{% if pd.description %}

View File

@ -671,6 +671,17 @@ ul.tree-nav {
}
}
div.plugin-margin {
h4 {
margin: 25px 0;
}
}
div.separator {
border-top: 1px solid #ddd;
margin: 25px 0;
}
div.comment-box {
border-top: 1px solid #ddd;
margin-top: 35px;