Compare commits

...

4 Commits

3 changed files with 59 additions and 8 deletions

View File

@ -1,3 +1,16 @@
# Forked Changes
This plugin supports multi-author, *multi-language (hardcoded) and adds additional media accounts (Matrix, Mastodon, Gitea, Github) and email.
The icons are based on [forkaweso.me](https://forkaweso.me/Fork-Awesome/icons/).
Just [download the icon package](https://forkaweso.me/Fork-Awesome/get-started/) for your theme and add to your `base.html.twig` file `{% do assets.addCss('theme://css/fork-awesome.min.css', 100) %}` under `{% block stylesheets %}`.
(*) Multi-language is hardcoded (en, de) and a quick solution for [our news](https://techsaviours.org/news/) that we recently launched.
Add your language code in [line 47](https://github.com/TECH-SAVIOURS-ORG/grav-plugin-aura-authors/blob/6c66baf37fe8a6f75d86c033fc5e9dbd54787033/templates/partials/author-bio.html.twig#L47) and add a new [description](https://github.com/TECH-SAVIOURS-ORG/grav-plugin-aura-authors/blob/6c66baf37fe8a6f75d86c033fc5e9dbd54787033/blueprints.yaml#L64-L71) field to `blueprints.yaml`.
See also [Multi-Language](https://learn.getgrav.org/17/content/multi-language).
The plugin is no longer maintained for years.
Below is the original text.
# Aura Authors Plugin
The **Aura Authors** Plugin for [Grav CMS](https://github.com/getgrav/grav) enables you to store author bios in a centrally managed repository and have them displayed across various pages of your site.

View File

@ -50,7 +50,7 @@ form:
size: large
label: Taxonomy Label
validate:
pattern: "[a-z][a-z0-9_\-]+"
pattern: "[a-z][a-zA-Z0-9]*$"
message: "Use all lowercase letters and replace spaces with hyphens."
required: true
.image:
@ -61,10 +61,39 @@ form:
destination: 'user/images'
accept:
- image/*
.description:
.description.en:
type: textarea
size: long
label: Description
label: Description English
.description.de:
type: textarea
size: long
label: Description German
.person-mastodon-url:
type: text
size: large
label: Mastodon URL
placeholder: 'https://fosstodon.org/@techsaviours'
.person-matrix-org-url:
type: text
size: large
label: Matrix URL
placeholder: 'https://chat.techsaviours.org/#/user/@user:techsaviours.org'
.person-gitea-url:
type: text
size: large
label: Gitea URL
placeholder: 'https://git.techsaviours.org/user'
.person-github-url:
type: text
size: large
label: GitHub URL
placeholder: 'https://github.com/user'
.person-envelope-user:
type: text
size: large
label: Email Address
placeholder: 'user@techsaviours.org'
.person-facebook-url:
type: text
size: large

View File

@ -7,6 +7,12 @@
'instagram',
'pinterest',
'website',
'envelope',
'mastodon',
'matrix-org',
'gitea',
'github',
'globe',
] %}
<div class="author-bio">
<p class="author-heading">About the author</p>
@ -21,25 +27,28 @@
</div>
<div class="author-social">
<ul>
{% if author['person-envelope-user'] %}
<li><a href="mailto:{{ author['person-envelope-user'] }}"><i class="fa fa-at"></i></a></li>
{% endif %}
{% for item in social %}
{% set href = author['person-' ~ item ~ '-url'] %}
{% if href %}
<li><a href="{{ href }}" target="_blank"><span class="aura-icon-{{ item }}"></span></a></li>
<li><a href="{{ href }}" target="_blank"><i class="fa fa-{{ item }}"></i></a></li>
{% endif %}
{% endfor %}
{% if author['person-twitter-user'] %}
<li><a href="https://twitter.com/{{ author['person-twitter-user'] }}" target="_blank"><span class="aura-icon-twitter"></span></a></li>
{% endif %}
<li><a href="https://twitter.com/{{ author['person-twitter-user'] }}" target="_blank"><i class="aura-icon-twitter"></i></a></li>
{% endif %}
</ul>&nbsp;
</div>
<div class="clear-right"></div>
</div>
<div class="author-description">
<p>{{ author.description }}</p>
<p>{{ author.description.en }}</p>
</div>
</div>
</div>
{% if config.plugins['aura-authors']['include-css'] %}
{% do assets.addCss('user://plugins/aura-authors/assets/style.min.css') %}
{% endif %}
{% endif %}
{% endif %}