Skip to content

Commit

Permalink
2023-11-07 03:00:51
Browse files Browse the repository at this point in the history
  • Loading branch information
uidHUB committed Nov 7, 2023
1 parent fec3528 commit f042d89
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 38 deletions.
4 changes: 4 additions & 0 deletions layouts/partials/module/node/license.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{/*

{{ $api := (site.Params.api) }}
{{ $headers := (dict "User-Agent" ($api.user_agent)) }}
{{ $url := "https://raw.githubusercontent.com/spdx/license-list-data/main/json/details" }}
Expand Down Expand Up @@ -48,3 +50,5 @@ <h5 class="card-header">{{ (i18n "license_text") }}</h5>
</div>
{{ end }}
{{ end }}

*/}}
2 changes: 1 addition & 1 deletion layouts/partials/module/node/sources.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ if (hasPrefix . "http") }}
{{ $url := (urls.Parse .) }}
{{ $path := (delimit ((split ($url.Path) "/") | last 2) "/") }}
<a class="text-reset" href="{{ . }}" target="_blank" rel="noopener nofollow">
<a class="text-reset" href="{{ . }}" target="_blank" rel="noopener noreferrer nofollow">
{{ ($url.Host) }} {{ with ($path) }}({{ . }}){{ end }}
</a>
{{ else }}
Expand Down
23 changes: 4 additions & 19 deletions layouts/partials/module/node/tabs/info/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,10 @@ <h5 class="card-title">{{ (i18n "meta") }}</h5>
<div class="col">
<div class="input-group">
<input type="text" class="form-control" value="{{ . }}" readonly/>
<button class="btn btn-primary" type="button"
data-bs-toggle="modal" data-bs-target="#{{ ($id) }}"
data-bs-tooltip data-bs-title="{{ (i18n "license_text") }}">
<i class="far fa-file-lines fa-fw"></i></button>
</div>
<div class="modal fade" id="{{ ($id) }}" tabindex="-1" aria-labelledby="{{ ($id) }}-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-xl">
<div class="modal-content shadow">
<div class="modal-header">
<h2 class="modal-title fs-5" id="{{ ($id) }}-label">{{ (i18n "license") }}</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{ (i18n "close") }}"></button>
</div>
<div class="modal-body">
<div class="node-body">
{{ (partial "module/node/license" .) }}
</div>
</div>
</div>
</div>
<a class="btn btn-primary" href="https://choosealicense.com/licenses/{{ . | lower }}" target="_blank"
role="button" rel="noopener noreferrer nofollow"
data-bs-tooltip data-bs-title="{{ (i18n "license_text") }}">
<i class="far fa-file-lines fa-fw"></i></a>
</div>
</div>
{{ end }}
Expand Down
36 changes: 18 additions & 18 deletions layouts/partials/module/node/tabs/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,92 +14,92 @@
<div class="col">
<div class="row row-cols-auto g-2">
<div class="col">
<a class="btn btn-light" href="mailto:?subject={{ ($title) }}&amp;body={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "email") }}' role="button" rel="noopener nofollow">
<a class="btn btn-light" href="mailto:?subject={{ ($title) }}&amp;body={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "email") }}' role="button" rel="noopener noreferrer nofollow">
<i class="fas fa-envelope-open-text fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://twitter.com/intent/tweet?url={{ ($url) }}&amp;text={{ ($title) }}&amp;hashtags={{ ($tags) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.twitter") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://twitter.com/intent/tweet?url={{ ($url) }}&amp;text={{ ($title) }}&amp;hashtags={{ ($tags) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.twitter") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-twitter fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://facebook.com/sharer/sharer.php?u={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.facebook") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://facebook.com/sharer/sharer.php?u={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.facebook") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-facebook fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://linkedin.com/sharing/share-offsite/?url={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.linkedin") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://linkedin.com/sharing/share-offsite/?url={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.linkedin") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-linkedin fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://reddit.com/submit?url={{ ($url) }}&amp;title={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.reddit") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://reddit.com/submit?url={{ ($url) }}&amp;title={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.reddit") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-reddit fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://vk.com/share.php?url={{ ($url) }}&amp;title={{ ($title) }}&amp;description={{ ($summary) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.vk") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://vk.com/share.php?url={{ ($url) }}&amp;title={{ ($title) }}&amp;description={{ ($summary) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.vk") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-vk fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://t.me/share/url?url={{ ($url) }}&amp;text={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.telegram") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://t.me/share/url?url={{ ($url) }}&amp;text={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.telegram") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-telegram fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="http://pinterest.com/pin/create/button/?url={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.pinterest") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="http://pinterest.com/pin/create/button/?url={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.pinterest") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-pinterest fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://getpocket.com/edit?url={{ ($url) }}&amp;title={{ ($title) }}" target="_blank" data-bs-tooltip data-bs-title='{{ (i18n "social.pocket") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://getpocket.com/edit?url={{ ($url) }}&amp;title={{ ($title) }}" target="_blank" data-bs-tooltip data-bs-title='{{ (i18n "social.pocket") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-get-pocket fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://news.ycombinator.com/submitlink?u={{ ($url) }}&amp;t={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.hackernews") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://news.ycombinator.com/submitlink?u={{ ($url) }}&amp;t={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.hackernews") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-hacker-news fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://livejournal.com/update.bml?subject={{ ($title) }}&amp;event={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.livejournal") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://livejournal.com/update.bml?subject={{ ($title) }}&amp;event={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.livejournal") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fas fa-edit fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&amp;st.shareUrl={{ ($url) }}&amp;title={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.ok") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&amp;st.shareUrl={{ ($url) }}&amp;title={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.ok") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-odnoklassniki fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://blogger.com/blog-this.g?u={{ ($url) }}&amp;n={{ ($title) }}&amp;t={{ ($summary) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.blogger") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://blogger.com/blog-this.g?u={{ ($url) }}&amp;n={{ ($title) }}&amp;t={{ ($summary) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.blogger") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-blogger fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://digg.com/submit?url={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.digg") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://digg.com/submit?url={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.digg") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-digg fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://web.skype.com/share?url={{ ($url) }}&amp;title={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.skype") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://web.skype.com/share?url={{ ($url) }}&amp;title={{ ($title) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.skype") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-skype fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://api.whatsapp.com/send?text={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.whatsapp") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://api.whatsapp.com/send?text={{ ($url) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.whatsapp") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-whatsapp fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://tumblr.com/widgets/share/tool?canonicalUrl={{ ($url) }}&amp;title={{ ($title) }}&amp;content={{ ($summary) }}&amp;tags={{ ($tags) }}&amp;posttype=link" data-bs-tooltip data-bs-title='{{ (i18n "social.tumblr") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://tumblr.com/widgets/share/tool?canonicalUrl={{ ($url) }}&amp;title={{ ($title) }}&amp;content={{ ($summary) }}&amp;tags={{ ($tags) }}&amp;posttype=link" data-bs-tooltip data-bs-title='{{ (i18n "social.tumblr") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-tumblr fa-fw"></i>
</a>
</div>
<div class="col">
<a class="btn btn-light btn-social" href="https://wordpress.com/wp-admin/press-this.php?u={{ ($url) }}&amp;t={{ ($title) }}&amp;s={{ ($summary) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.wordpress") }}' role="button" rel="noopener nofollow" data-fn="popup">
<a class="btn btn-light btn-social" href="https://wordpress.com/wp-admin/press-this.php?u={{ ($url) }}&amp;t={{ ($title) }}&amp;s={{ ($summary) }}" data-bs-tooltip data-bs-title='{{ (i18n "social.wordpress") }}' role="button" rel="noopener noreferrer nofollow" data-fn="popup">
<i class="fab fa-wordpress fa-fw"></i>
</a>
</div>
Expand Down

0 comments on commit f042d89

Please sign in to comment.