Adresses #205 and better find out link for plugin README.md

This commit is contained in:
Sommerregen
2015-09-27 11:54:34 +02:00
parent 25e1c9ffa8
commit 75e03d08cb
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ author:
homepage: https://github.com/getgrav/grav-plugin-admin
keywords: admin, plugin, manager, panel
bugs: https://github.com/getgrav/grav-plugin-admin/issues
readme: https://github.com/getgrav/grav-plugin-admin/blob/develop/README.md
license: MIT
dependencies:

View File

@@ -53,7 +53,7 @@
{% endif %}
{% if plugin.readme or plugin.homepage %}
{% set readme_link = plugin.readme ?: plugin.homepage ~ '/blob/develop/README.md' %}
{% set readme_link = plugin.readme ?: plugin.docs|default(plugin.homepage ~ '/blob/master/README.md') %}
<tr>
<td>{{ "PLUGIN_ADMIN.README"|tu }}:</td>
<td><a href="{{ readme_link }}" target="_blank">{{ readme_link }}</a></td>