jekyll-theme-centos 2.51.1.beta.54 → 2.51.1.beta.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/base/link.html +61 -16
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8ab16f4c1db9e235787598b25e960e919e40c9b48d98fe096e434bd4e0f4eda
|
4
|
+
data.tar.gz: 1d2d47e7221bd5ca855d2bf1cbade08785c2507b475e4653506f625af4c2e91d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7390853ec019ac3d8972e2282d6b82db1f447f7c947cb639de811b5a6e14e72ae8f1a2114ecff1d5aae27ee0894f330119af00e9bc1ac1fbae4ceab5bb8d6cf
|
7
|
+
data.tar.gz: 3243fa337e9a14ddb29b10dcbcf17bd86f2b0bb799730dd0083fb89f683436b76048eed8d0c93eaaabc43b26a8237228fda73edcc65b6b7c099c86bb39d9dca6
|
data/_includes/base/link.html
CHANGED
@@ -1,17 +1,62 @@
|
|
1
|
-
{%- capture
|
2
|
-
{%-
|
3
|
-
|
4
|
-
{
|
5
|
-
|
6
|
-
|
1
|
+
{%- capture html_link %}
|
2
|
+
{%- comment %}
|
3
|
+
Usage:
|
4
|
+
{% include base/link.html name="Text link" url="#" %}
|
5
|
+
|
6
|
+
Optional Parameters:
|
7
|
+
* name (string) : ""
|
8
|
+
* url (string) : ""
|
9
|
+
* class (string) : ""
|
10
|
+
* role (string) : ""
|
11
|
+
* color (string) : "primary"
|
12
|
+
* icon (string) : ""
|
13
|
+
* icon_position (string) : "start"
|
14
|
+
|
15
|
+
Output:
|
16
|
+
Text link with consistent presentation.
|
17
|
+
{%- endcomment %}
|
18
|
+
|
19
|
+
{%- assign name = include.name | default: nil %}
|
20
|
+
{%- assign url = include.url | default: nil %}
|
21
|
+
{%- assign color = include.color | default: "primary" %}
|
22
|
+
{%- assign role = include.role | default: nil %}
|
23
|
+
{%- assign icon = include.icon | default: nil %}
|
24
|
+
{%- assign icon_position = include.icon_position | default: "start" %}
|
25
|
+
{%- assign class = include.class | default: nil %}
|
26
|
+
|
27
|
+
{%- capture html_link_elements -%}
|
28
|
+
{%- if url == nil %}
|
29
|
+
href="{{ page.url }}#{{ name | strip | replace: " ", "-" | strip_html | downcase }}"
|
30
|
+
{%- else %}
|
31
|
+
{%- if url contains "https://" or url contains "http://" %}
|
32
|
+
href="{{ url }}"
|
33
|
+
{%- else %}
|
34
|
+
href="{{ site.url }}{{ site.baseurl }}{{ url }}"
|
35
|
+
{%- endif -%}
|
36
|
+
{%- endif -%}
|
37
|
+
|
38
|
+
{%- if class %}
|
39
|
+
class="{{ class }}"
|
40
|
+
{%- else %}
|
41
|
+
class="link-{{ color }} link-offset-3 link-offset-3-hover link-underline-{{ color }} link-underline-opacity-25 link-underline-opacity-75-hover"
|
42
|
+
{%- endif -%}
|
43
|
+
|
44
|
+
{%- if role %}
|
45
|
+
role="{{ role }}"
|
46
|
+
{%- endif -%}
|
47
|
+
{%- endcapture -%}
|
48
|
+
|
49
|
+
{%- capture html_link_name %}
|
50
|
+
{%- if icon != nil %}
|
51
|
+
{%- if icon_position == "end" -%}
|
52
|
+
{{ name }}<i class="{{ icon }} ms-2"></i>
|
53
|
+
{%- else -%}
|
54
|
+
<i class="{{ icon }} me-2"></i>{{ name }}
|
55
|
+
{%- endif -%}
|
56
|
+
{%- else -%}
|
57
|
+
{{ name }}
|
58
|
+
{%- endif -%}
|
7
59
|
{%- endcapture -%}
|
8
|
-
{
|
9
|
-
{%-
|
10
|
-
{{-
|
11
|
-
{%- else -%}
|
12
|
-
link-{{ include.color | default: "primary" }} link-offset-3 link-offset-3-hover link-underline-{{ include.color | default: "primary" }} link-underline-opacity-25 link-underline-opacity-75-hover
|
13
|
-
{%- endif -%}
|
14
|
-
{%- endcapture -%}
|
15
|
-
{%- if include.url -%}
|
16
|
-
<a href="{{ href }}" class="{{ class }}"{% if include.role %} role="{{ include.role }}"{% endif %}>{% if include.icon %}<i class="{{ include.icon }}"></i> {% endif %}{{ include.name }}</a>
|
17
|
-
{%- endif -%}
|
60
|
+
<a {{ html_link_elements | strip_newlines | strip }}>{{ html_link_name }}</a>
|
61
|
+
{%- endcapture %}
|
62
|
+
{{- html_link -}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-centos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.51.1.beta.
|
4
|
+
version: 2.51.1.beta.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ReleaseBot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: 2.4.0
|
47
47
|
description:
|
48
48
|
email:
|
49
|
-
-
|
49
|
+
- group_58921183_bot_b2824b5ca0eb4d2e45040e1a9a3477ce@noreply.gitlab.com
|
50
50
|
executables: []
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|