Skip to content

Commit d3e85a6

Browse files
committed
add url image preview
1 parent d4ef95c commit d3e85a6

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

_blog/deployment-dilemma.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ title: "The Deployment Dilemma: Merits & Challenges of Deploying MPC"
44
date: 2023-09-27 10:00:00 -0800
55
math: true
66
custom_authors: true
7+
categories: blog
8+
image:
9+
path: /assets/img/mpc.png
710
excerpt: "MPC, or secure multi-party computation, is a powerful class of cryptographic primitives that enables a host of privacy-preserving systems. In MPC, $n$ parties each have an input $s_i$, and aim to compute a joint function $f(s_1, …, s_n)$. Because parties can only learn the function’s output, each party’s input is entirely hidden from the rest.
811
912
In recent years, milestones in the efficiency of MPC protocols have opened a new door: leveraging MPC in broad-reaching, user-facing applications. But designing and implementing an MPC protocol is only the first step to deploying an end-to-end MPC application.

_layouts/post.html

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,26 @@ <h1 data-toc-skip>{{ page.title }}</h1>
3535
{% endif %}
3636

3737
{% if page.image %}
38-
{% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
39-
{% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
40-
{% capture alt %}alt="{{ page.image.alt | default: "Preview Image" }}"{% endcapture %}
41-
42-
{% capture lqip %}
43-
{% if page.image.lqip %}
44-
lqip="{{ page.image.lqip }}"
45-
{% endif %}
46-
{% endcapture %}
47-
48-
<div class="mt-3 mb-3">
49-
<img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip | strip }}>
50-
{%- if page.image.alt -%}
51-
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
52-
{%- endif -%}
53-
</div>
38+
{% unless page.categories contains 'blog' %}
39+
{% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
40+
{% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
41+
{% capture alt %}alt="{{ page.image.alt | default: "Preview Image" }}"{% endcapture %}
42+
43+
{% capture lqip %}
44+
{% if page.image.lqip %}
45+
lqip="{{ page.image.lqip }}"
46+
{% endif %}
47+
{% endcapture %}
48+
49+
<div class="mt-3 mb-3">
50+
<img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip | strip }}>
51+
{%- if page.image.alt -%}
52+
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
53+
{%- endif -%}
54+
</div>
55+
{% endunless %}
5456
{% endif %}
57+
5558

5659
<div class="d-flex justify-content-between">
5760
<!-- author(s) -->

0 commit comments

Comments
 (0)