Merge pull request #474 from freakboy3742/site-fix

Two more workarounds missed in #473.
This commit is contained in:
Russell Keith-Magee 2022-04-06 13:31:20 +08:00 committed by GitHub
commit 91f1c3713e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -17,8 +17,8 @@
{% for child in this.children %}
<div class="clearfix project">
{% if child.image %}
<img src="{{ site.get(child.path)|url }}{{ child.image }}" height="72px" class="pull-xs-left">
{% else %}
<img src="{{ site.get(child.path, alt='_primary')|url }}{{ child.image }}" height="72px" class="pull-xs-left">
{% else %}
<img src="/static/images/defaultlogo.png" height="72px" class="pull-xs-left">
{% endif %}
<h2><a href="{{ child|url(alt=this.alt) }}">{{ child.name }}</a></h2>

View file

@ -67,7 +67,7 @@
<div class="col-sm-4">
<div class="sidebar-module sidebar-module-inset gutter">
<img class="img-fluid center-block" {% if this.image %}src="{{ site.get(this.path)|url }}{{ this.image }}" {% else %} src="/static/images/defaultlogo.png"{% endif %}></div>
<img class="img-fluid center-block" {% if this.image %}src="{{ site.get(this.path, alt='_primary')|url }}{{ this.image }}" {% else %} src="/static/images/defaultlogo.png"{% endif %}></div>
{% if this.github_repo or this.rtfd_name %}<br />{% endif %}
{% if this.github_repo %}<p><a href="https://github.com/{{ this.github_repo }}"><i class="fa fa-github fa-lg" aria-hidden="true"></i> {{ t_source_code }}</a></p>{% endif %}
{% if this.rtfd_name %}<p><a href="https://{{ this.rtfd_name }}.readthedocs.io/"><i class="fa fa-book fa-lg" aria-hidden="true"></i> {{ t_documentation }}</a></p>{% endif %}