Skip to content

Commit 3c27640

Browse files
authored
Merge pull request #8 from diffix/edon/image-href
Add href property to image
2 parents 1560a57 + a84f13a commit 3c27640

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

_includes/image.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
{% assign src = include.src | default:"" %}
22
{% assign alt = include.alt | default:"" %}
33
{% assign max_width = include.max_width | default:"" %}
4+
{% assign href = include.href | default:"" %}
45

56
{% if src != "" %}
6-
<img src="{{ src }}"
7-
alt="{{ alt }}"
8-
class="img-fluid mx-auto d-block"
9-
{% if max_width != "" %}style="max-width: {{ max_width }}; width: 100%;"{% endif %}>
7+
{% if href != "" %}
8+
<a href="{{ href }}"
9+
class="mx-auto d-block"
10+
{% if max_width != "" %}style="max-width: {{ max_width }}; width: 100%;"{% endif %}>
11+
<img src="{{ src }}" alt="{{ alt }}" class="img-fluid">
12+
</a>
1013
{% else %}
11-
<p class="error">Error: Missing 'src' attribute in include 'image.html'.</p>
14+
<img src="{{ src }}"
15+
alt="{{ alt }}"
16+
class="img-fluid mx-auto d-block"
17+
{% if max_width != "" %}style="max-width: {{ max_width }}; width: 100%;"{% endif %}>
18+
{% endif %}
19+
{% else %}
20+
<p class="error">Error: Missing 'src' attribute in include 'image.html'.</p>
1221
{% endif %}

_pages/syndiffix.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ nav: true
1414

1515
A complete description of **SynDiffix**, including its operation, performance, and anonymity, can be found on [arXiv](https://arxiv.org/abs/2311.09628). See [github.com/diffix/syndiffix](https://github.com/diffix/syndiffix).
1616

17-
Click [here](/syndiffix-mostlyai-ctgan) for a comparison of SynDiffix with Mostly AI and CTGAN.
18-
19-
<a href="/syndiffix-mostlyai-ctgan"> <img src="/assets/img/compare-link.png"> </a>
17+
{% include image.html href="/syndiffix-mostlyai-ctgan" src="/assets/img/compare-link.png" alt="SynDiffix usage style" max_width="800px" %}
2018

2119
Programming with **SynDiffix** can be as easy as:
2220

0 commit comments

Comments
 (0)