add attributes to share and profile buttons
This commit is contained in:
@@ -12,7 +12,7 @@ homepage: https://codeberg.org/tymoteuszjozwiak/paxover
|
||||
demo: https://jozwiak.top
|
||||
keywords: paxover
|
||||
bugs: https://codeberg.org/tymoteuszjozwiak/paxover/issues
|
||||
license: CC BY-NC-SA
|
||||
license: MIT
|
||||
|
||||
dependencies:
|
||||
- { name: grav, version: ">=1.6.0" }
|
||||
@@ -95,6 +95,10 @@ form:
|
||||
type: text
|
||||
label: Class (e.g. btn-twitter)
|
||||
size: medium
|
||||
.attributes:
|
||||
type: text
|
||||
label: Attributes (e.g. disabled)
|
||||
size: medium
|
||||
.link:
|
||||
type: text
|
||||
label: Link
|
||||
@@ -131,6 +135,10 @@ form:
|
||||
type: text
|
||||
label: Class (e.g. btn-twitter)
|
||||
size: medium
|
||||
.attributes:
|
||||
type: text
|
||||
label: Attributes (e.g. disabled)
|
||||
size: medium
|
||||
.link:
|
||||
type: text
|
||||
label: Link
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="social">
|
||||
{% for button in theme_config.social_buttons %}
|
||||
<a class="btn {{ button.class }}" target="_blank" rel="me nofollow noopener noreferrer" href="{{ button.link }}" title="{{ button.title }}">{{ button.name }}</a>
|
||||
<a class="btn {{ button.class }}" {{ button.attributes }} target="_blank" rel="me nofollow noopener noreferrer" href="{{ button.link }}" title="{{ button.title }}">{{ button.name }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="contact">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<h2>{{ theme_config.blog.share|raw }}</h2>
|
||||
<div class="share">
|
||||
{% for button in theme_config.blog.share_buttons %}
|
||||
<a class="btn {{ button.class }}" target="_blank" rel="nofollow noopener noreferrer" href="{{ button.link }}?{{ button.url_param }}={{ page.url(true) }}" title="{{ button.title }}">{{ button.name }}</a>
|
||||
<a class="btn {{ button.class }}" {{ button.attributes }} target="_blank" rel="nofollow noopener noreferrer" href="{{ button.link }}?{{ button.url_param }}={{ page.url(true) }}" title="{{ button.title }}">{{ button.name }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user