Skip to content

Commit

Permalink
Correct logical mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildingAtom committed Jun 17, 2023
1 parent 7773dae commit ba2c2f4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion _includes/_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<link rel="stylesheet" href="{{ "/css/overrides.css" | relative_url }}">
{% endif %}
{% endfor %}
{%- if site.mathjax or page.mathjax -%}
{%- if page.mathjax or site.mathjax -%}
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
{%- endif %}
</head>
2 changes: 1 addition & 1 deletion _includes/sections/_footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- if site.footer or site.footer != blank or site.show-credit -%}
{%- if site.show-credit or site.footer and site.footer != blank -%}
<footer class="site-footer">
<div class="wrapper">
{%- if site.show-credit -%}
Expand Down
6 changes: 3 additions & 3 deletions _includes/sections/authors
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{%- for author in page.authors %}
<div class="single">
<p class="name">
{%- if author.url or author.url != blank -%}
{%- if author.url != blank and author.url -%}
<a href="{{ author.url }}">{{ author.name }}</a>
{%- else -%}
{{ author.name }}
Expand All @@ -12,9 +12,9 @@
<sup>{{ author.footnotes }}</sup>
{%- endif -%}
</p>
{%- if author.mailto or author.mailto != blank %}
{%- if author.mailto != blank and author.mailto %}
<a class="email" href="mailto:{{ author.mailto }}">{{ author.email | default: author.mailto}}</a>
{%- elsif author.email or author.email != blank %}
{%- elsif author.email != blank and author.email %}
<p class="email">{{ author.email }}</p>
{%- endif %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion _includes/sections/footer/_connections.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- if site.footer.connections and site.footer.connections != blank -%}
{%- if site.footer.connections != blank and site.footer.connections-%}
{%- assign connections = site.footer.connections -%}
{%- assign connections-pre = site.footer.connections-pre -%}
{%- assign connections-post = site.footer.connections-post -%}
Expand Down
6 changes: 3 additions & 3 deletions _includes/sections/footer/_rel-sites.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{%- assign rel = include.sites -%}
{%- if rel and rel.sites.size > 0 -%}
{%- if rel.sites.size > 0 and rel-%}
<div class="related">
<ul class="related-sites">
{%- for loc in rel.sites -%}
<li>
<a href="{{ loc.href }}">
{%- if loc.icon or loc.icon != blank -%}
{%- if loc.icon != blank and loc.icon -%}
{%- include util/icons icon=loc.icon icon-library=loc.icon-library -%}
<span style="opacity: 0;">&nbsp;</span>
{%- endif -%}
{%- if loc.text or loc.text != blank -%}
{%- if loc.text != blank and loc.text -%}
{{ loc.text | escape }}
{%- endif -%}
</a>
Expand Down
4 changes: 2 additions & 2 deletions _includes/sections/links
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<div class="icon">
{%- include util/icons icon=link.icon icon-library=link.icon-library -%}
</div>
{%- if link.text or link.text != blank -%}
{%- if link.text != blank and link.text -%}
<p>{{ link.text }}</p>
{%- endif -%}
{%- if link.url or link.url != blank -%}
{%- if link.url != blank and link.url -%}
<a href="{{ link.url }}"></a>
{%- endif -%}
</div>
Expand Down

0 comments on commit ba2c2f4

Please sign in to comment.