Skip to content

Commit

Permalink
[pluginlist-update] Adding lektor-tags for plugins, adding assets for…
Browse files Browse the repository at this point in the history
… another webpack build, plugin template tweaks.
  • Loading branch information
nixjdm committed May 14, 2018
1 parent ae9e709 commit 460693e
Show file tree
Hide file tree
Showing 13 changed files with 2,745 additions and 17 deletions.
1 change: 1 addition & 0 deletions Website.lektorproject
Expand Up @@ -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.
2,671 changes: 2,671 additions & 0 deletions assets/static/912ec66d7572ff821749319396470bde.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/static/styles.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions configs/tags.ini
@@ -0,0 +1,2 @@
parent = /plugins
template = plugin-tag.html
8 changes: 8 additions & 0 deletions content/plugins/lektor-jinja-content/contents.lr
@@ -1,3 +1,11 @@
name: lektor-jinja-content
---
categories: content
---
tags:

before-build
jinja
templates
content
markdown
3 changes: 3 additions & 0 deletions models/plugin.ini
Expand Up @@ -33,3 +33,6 @@ width = 1/4
label = Categories
type = select
source = site.query('/plugin-categories')

[fields.tags]
type = strings
13 changes: 13 additions & 0 deletions templates/plugin-tag.html
@@ -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 %}
51 changes: 35 additions & 16 deletions templates/plugin.html
Expand Up @@ -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 class="col-sm-3 plugin-margin">
<h4>Project links</h4>
<ul class="tree-nav">
<li><a href="{{ pd.home_page }}">Homepage</a></li>
</ul>

<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>
{% 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 %}
Expand All @@ -49,7 +54,21 @@ <h4>Meta</h4>
{{ 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 %}
Expand Down
11 changes: 11 additions & 0 deletions webpack/scss/main.scss
Expand Up @@ -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;
Expand Down

0 comments on commit 460693e

Please sign in to comment.