File tree 8 files changed +14
-8
lines changed
8 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
- < a class ="button " href ="{{ include.link }} "{% if include.color %} style ="background: {{ include.color }} "{% endif %} > {{ include.text }}{% if include.icon %} {% include icon.html id=include.icon %}{% endif %}</ a >
1
+ < a class ="button " href ="{{ include.link | default: " # " }}"{% if include.color %} style="background: {{ include.color }} "{% endif %} > {{ include.text | default: "Button" }}{% if include.icon %} {% include icon.html id=include.icon %}{% endif %}</ a >
Original file line number Diff line number Diff line change 1
1
{% if include.alt %}{% assign altText = include.alt %}{% else %}{% assign altText = include.caption %}{% endif %}
2
2
< figure class ="figure{% if include.position %} figure--{{ include.position }}{% endif %} ">
3
- < img class ="image " src ="{{ include.image }} " {% if altText %}alt ="Image - {{ altText }} "{% endif %} >
3
+ {% if include.image %} < img class ="image " src ="{{ include.image }} " {% if altText %}alt ="Image - {{ altText }} "{% endif %} > {% else %} < small > Image not found </ small > {% endif%}
4
4
{% if include.caption %}< figcaption class ="caption "> {{ include.caption }}</ figcaption > {% endif %}
5
5
</ figure >
Original file line number Diff line number Diff line change 1
- < svg class ="icon icon--{{ include.id }} " role ="img "{% if include.title %} aria-label ="{{ include.title }} icon "{% endif %} > {% if include.title %}< title > {{ include.title }}</ title > {% endif %}< use xlink:href ="#{{ include.id }} "{% if include.color %} fill ="{{ include.color }} "{% endif %} > </ use > </ svg >
1
+ < svg class ="icon icon--{{ include.id | default: " link " }}" role="img "{% if include.title %} aria-label ="{{ include.title }} icon "{% endif %} > {% if include.title %}< title > {{ include.title }}</ title > {% endif %}< use xlink:href ="#{{ include.id | default: " link " }}"{% if include.color %} fill="{{ include.color }} "{% endif %} > </ use > </ svg >
Original file line number Diff line number Diff line change 1
1
< div class ="map ">
2
- < iframe src ="https://www.google.com/maps/d/u/0/embed?mid={{ include.id }} "> </ iframe >
2
+ {% if include.id %} < iframe src ="https://www.google.com/maps/d/u/0/embed?mid={{ include.id }} "> </ iframe > {% else %} < small > Map not found </ small > {% endif %}
3
3
</ div >
Original file line number Diff line number Diff line change 1
1
< nav class ="nav ">
2
2
< ul class ="list list--nav ">
3
- {% for item in site.pages %}
4
- {% unless item.title == false or item.url contains "/page" or item.url contains "/404.html" or item.url contains "/feed." or item.url contains ".json" %}
3
+ {% for item in site.html_pages %}
4
+ {% unless item.title == false or item.url contains "/page" or item.url contains "/404.html" %}
5
5
< li class ="item item--nav{% if item.url == page.url %} item--current{% endif %} ">
6
6
7
7
{% if item.url contains '://' %}
Original file line number Diff line number Diff line change 1
1
< header class ="header ">
2
2
< div class ="container ">
3
- {% include site-logo.html %}
3
+ {% if site.logo %}{% include site-logo.html %}{% endif %}
4
4
5
5
{% include nav-header.html %}
6
6
</ div >
Original file line number Diff line number Diff line change 22
22
23
23
< link rel ="stylesheet " href ="{{ "/assets/styles.css" | relative_url }}">
24
24
25
- {% include site-favicons.html %}
25
+ {% if site.avatarurl %}{% include site-favicons.html %}{% endif %}
26
26
</ head >
27
27
< body class ="layout-{{ page.layout }}{% if page.title %} {{ page.title | slugify }}{% endif %} ">
28
28
{% include site-icons.svg %}
Original file line number Diff line number Diff line change @@ -432,4 +432,10 @@ pre code {
432
432
margin : 0 ;
433
433
}
434
434
}
435
+ .nav a {
436
+ padding-left : 0 ;
437
+ padding-right : 0 ;
438
+ margin-left : .2rem ;
439
+ margin-right : .2rem ;
440
+ }
435
441
}
You can’t perform that action at this time.
0 commit comments