-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add likely share support (#678)
* Feat: Add likely share support * #491 * update cdn
- Loading branch information
Showing
4 changed files
with
59 additions
and
5 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
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,23 @@ | ||
{% set likely_js_url = '//cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.js' %} | ||
{% if theme.vendors.likely_js %} | ||
{% set likely_js_url = theme.vendors.likely_js %} | ||
{% endif %} | ||
<script src="{{ likely_js_url }}"></script> | ||
|
||
{% set likely_css_url = '//cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.css' %} | ||
{% if theme.vendors.likely_css %} | ||
{% set likely_css_url = theme.vendors.likely_css %} | ||
{% endif %} | ||
<link rel="stylesheet" href="{{ likely_css_url }}"> | ||
|
||
{% if theme.likely.look == 'normal' %} | ||
{% set likely_look = 'likely' %} | ||
{% else %} | ||
{% set likely_look = 'likely likely-' + theme.likely.look %} | ||
{% endif %} | ||
|
||
<div class="{{ likely_look }}"> | ||
{% for x in theme.likely.networks %} | ||
<div class="{{ loop.key }}">{{ x }}</div> | ||
{% endfor %} | ||
</div> |
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