mirror of
https://github.com/lektor/lektor-website.git
synced 2025-02-22 07:00:38 +01:00
[pluginlist-update] Adding lektor-tags for plugins, adding assets for another webpack build, plugin template tweaks.
This commit is contained in:
parent
ae9e7090eb
commit
460693eccb
@ -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
|
||||
|
BIN
assets/static/674f50d287a8c48dc19ba404d20fe713.eot
Normal file
BIN
assets/static/674f50d287a8c48dc19ba404d20fe713.eot
Normal file
Binary file not shown.
2671
assets/static/912ec66d7572ff821749319396470bde.svg
Normal file
2671
assets/static/912ec66d7572ff821749319396470bde.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 434 KiB |
BIN
assets/static/af7ae505a9eed503f8b8e6982036873e.woff2
Normal file
BIN
assets/static/af7ae505a9eed503f8b8e6982036873e.woff2
Normal file
Binary file not shown.
BIN
assets/static/b06871f281fee6b241d60582ae9369b9.ttf
Normal file
BIN
assets/static/b06871f281fee6b241d60582ae9369b9.ttf
Normal file
Binary file not shown.
BIN
assets/static/fee66e712a8a08eef5805a46892932ad.woff
Normal file
BIN
assets/static/fee66e712a8a08eef5805a46892932ad.woff
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
2
configs/tags.ini
Normal file
2
configs/tags.ini
Normal file
@ -0,0 +1,2 @@
|
||||
parent = /plugins
|
||||
template = plugin-tag.html
|
@ -1,3 +1,11 @@
|
||||
name: lektor-jinja-content
|
||||
---
|
||||
categories: content
|
||||
---
|
||||
tags:
|
||||
|
||||
before-build
|
||||
jinja
|
||||
templates
|
||||
content
|
||||
markdown
|
||||
|
@ -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
13
templates/plugin-tag.html
Normal 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 %}
|
@ -15,32 +15,37 @@
|
||||
<h1>Plugin – {{ 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 %}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user