From d3e85a6b8a6691fd60235915560e7dd942d82b3e Mon Sep 17 00:00:00 2001 From: Darya Kaviani Date: Wed, 27 Sep 2023 13:48:05 -0700 Subject: [PATCH] add url image preview --- _blog/deployment-dilemma.md | 3 +++ _layouts/post.html | 35 +++++++++++++++++++---------------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/_blog/deployment-dilemma.md b/_blog/deployment-dilemma.md index 0d378c3..84ff2fd 100644 --- a/_blog/deployment-dilemma.md +++ b/_blog/deployment-dilemma.md @@ -4,6 +4,9 @@ title: "The Deployment Dilemma: Merits & Challenges of Deploying MPC" date: 2023-09-27 10:00:00 -0800 math: true custom_authors: true +categories: blog +image: + path: /assets/img/mpc.png 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. 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. diff --git a/_layouts/post.html b/_layouts/post.html index ad5fd28..5e7e81d 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -35,23 +35,26 @@

{{ page.title }}

{% endif %} {% if page.image %} - {% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %} - {% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %} - {% capture alt %}alt="{{ page.image.alt | default: "Preview Image" }}"{% endcapture %} - - {% capture lqip %} - {% if page.image.lqip %} - lqip="{{ page.image.lqip }}" - {% endif %} - {% endcapture %} - -
- - {%- if page.image.alt -%} -
{{ page.image.alt }}
- {%- endif -%} -
+ {% unless page.categories contains 'blog' %} + {% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %} + {% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %} + {% capture alt %}alt="{{ page.image.alt | default: "Preview Image" }}"{% endcapture %} + + {% capture lqip %} + {% if page.image.lqip %} + lqip="{{ page.image.lqip }}" + {% endif %} + {% endcapture %} + +
+ + {%- if page.image.alt -%} +
{{ page.image.alt }}
+ {%- endif -%} +
+ {% endunless %} {% endif %} +