This repository has been archived by the owner on Mar 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from metbril/develop
Release 0.1.0
- Loading branch information
Showing
9 changed files
with
143 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# v0.1.0 | ||
## 08/11/2018 | ||
## 08/12/2018 | ||
|
||
1. [](#new) | ||
* ChangeLog started... | ||
* Add plugin configuration | ||
* Add list template | ||
* Add link template | ||
* Add initial documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
name: Rel Me | ||
version: 0.1.0 | ||
description: Add rel=me links to your website. | ||
description: 'Add rel="me" links to your website.' | ||
icon: plug | ||
author: | ||
name: Robert van Bregt | ||
email: [email protected] | ||
homepage: https://github.com/metbril/grav-plugin-rel-me | ||
homepage: https://github.com/metbril/grav-plugin-relme | ||
demo: http://demo.yoursite.com | ||
keywords: grav, plugin, etc | ||
bugs: https://github.com/metbril/grav-plugin-rel-me/issues | ||
docs: https://github.com/metbril/grav-plugin-rel-me/blob/develop/README.md | ||
keywords: grav, plugin, social, link, indieweb | ||
bugs: https://github.com/metbril/grav-plugin-relme/issues | ||
docs: https://github.com/metbril/grav-plugin-relme/blob/develop/README.md | ||
license: MIT | ||
|
||
form: | ||
|
@@ -25,7 +25,31 @@ form: | |
0: PLUGIN_ADMIN.DISABLED | ||
validate: | ||
type: bool | ||
text_var: | ||
path: | ||
type: text | ||
label: PLUGIN_REL_ME.TEXT_VARIABLE | ||
help: PLUGIN_REL_ME.TEXT_VARIABLE_HELP | ||
size: medium | ||
label: PLUGIN_RELME.PATH_LABEL | ||
help: PLUGIN_RELME.PATH_HELP | ||
placeholder: PLUGIN_RELME.PATH_PLACEHOLDER | ||
active: | ||
type: toggle | ||
label: PLUGIN_RELME.ACTIVE_LABEL | ||
help: PLUGIN_RELME.ACTIVE_HELP | ||
highlight: 0 | ||
default: 1 | ||
options: | ||
1: PLUGIN_ADMIN.ENABLED | ||
0: PLUGIN_ADMIN.DISABLED | ||
validate: | ||
type: bool | ||
icons: | ||
type: toggle | ||
label: PLUGIN_RELME.ICONS_LABEL | ||
help: PLUGIN_RELME.ICONS_HELP | ||
highlight: 0 | ||
default: 1 | ||
options: | ||
1: PLUGIN_ADMIN.ENABLED | ||
0: PLUGIN_ADMIN.DISABLED | ||
validate: | ||
type: bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
en: | ||
PLUGIN_REL_ME: | ||
TEXT_VARIABLE: Text Variable | ||
TEXT_VARIABLE_HELP: Text to add to the top of a page | ||
PLUGIN_RELME: | ||
PATH_LABEL: Path | ||
PATH_HELP: Path to parent of menu items | ||
PATH_PLACEHOLDER: Path to parent of menu items | ||
ACTIVE_LABEL: Active | ||
ACTIVE_HELP: Enabled if meta tags should be generated | ||
ICONS_LABEL: Show icons | ||
ICONS_HELP: Show icons in menu | ||
|
||
nl: | ||
PLUGIN_RELME: | ||
PATH_LABEL: Pad | ||
PATH_HELP: Pad naar ouder van menuitems | ||
PATH_PLACEHOLDER: Pad naar ouder van menuitems | ||
ACTIVE_LABEL: Actief | ||
ACTIVE_HELP: Ingeschakeld als meta tags moeten worden gegenereerd | ||
ICONS_LABEL: Iconen weergeven | ||
ICONS_HELP: Iconen weergeven in menu |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
enabled: true | ||
path: | ||
active: true | ||
icons: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% set path = page.find(config.plugins.relme.path) %} | ||
{% set active = config.plugins.relme.active %} | ||
{% if active %} | ||
{%- for menu in path.children.visible.order('default', 'asc') -%} | ||
<link rel="me" href="{{ menu.header.link }}" /> | ||
{% endfor %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% set path = page.find(config.plugins.relme.path) %} | ||
<ul> | ||
{% for menu in path.children.visible.order('default', 'asc') %} | ||
<li> | ||
<a rel="me" href="{{ menu.header.link }}"> | ||
{% if config.plugins.relme.icons -%} | ||
{%- set icon = (menu.header.icon) ? menu.header.icon : 'link' -%} | ||
<i class="fa fa-{{ icon }}"></i> | ||
{% endif -%} | ||
{{ menu.title }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> |