File tree Expand file tree Collapse file tree 1 file changed +2
-32
lines changed Expand file tree Collapse file tree 1 file changed +2
-32
lines changed Original file line number Diff line number Diff line change 19
19
< div class ="navlinks-children ">
20
20
{% for childlink in link[1] %}
21
21
{% for linkparts in childlink %}
22
- {% capture before %}{{ linkparts[1] | split: "://" | first }}{% endcapture %}
23
- {% capture after %}{{ linkparts[1] | split: "://" | last }}{% endcapture %}
24
- {% assign internal = true %}
25
- {% if before != after %}
26
- {% if before == "http" or before == "https" %}
27
- {% assign internal = false %}
28
- {% endif %}
29
- {% endif %}
30
-
31
- {% if internal %}
32
- {% capture linkurl %}{{ site.baseurl }}/{{ linkparts[1] }}{% endcapture %}
33
- {% else %}
34
- {% capture linkurl %}{{ linkparts[1] }}{% endcapture %}
35
- {% endif %}
36
-
37
- < a href ="{{ linkurl }} "> {{ linkparts[0] }}</ a >
22
+ {% include navbarlink.html link=linkparts %}
38
23
{% endfor %}
39
24
{% endfor %}
40
25
</ div >
41
26
</ li >
42
27
{% else %}
43
28
< li >
44
- {% capture before %}{{ link[1] | split: "://" | first }}{% endcapture %}
45
- {% capture after %}{{ link[1] | split: "://" | last }}{% endcapture %}
46
- {% assign internal = true %}
47
- {% if before != after %}
48
- {% if before == "http" or before == "https" %}
49
- {% assign internal = false %}
50
- {% endif %}
51
- {% endif %}
52
-
53
- {% if internal %}
54
- {% capture linkurl %}{{ site.baseurl }}/{{ link[1] }}{% endcapture %}
55
- {% else %}
56
- {% capture linkurl %}{{ link[1] }}{% endcapture %}
57
- {% endif %}
58
-
59
- < a href ="{{ linkurl }} "> {{ link[0] }}</ a >
29
+ {% include navbarlink.html link=link %}
60
30
</ li >
61
31
{% endif %}
62
32
{% endfor %}
You can’t perform that action at this time.
0 commit comments