Skip to content

Commit

Permalink
add url image preview
Browse files Browse the repository at this point in the history
  • Loading branch information
daryakaviani committed Sep 27, 2023
1 parent d4ef95c commit d3e85a6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
3 changes: 3 additions & 0 deletions _blog/deployment-dilemma.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
35 changes: 19 additions & 16 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,26 @@ <h1 data-toc-skip>{{ page.title }}</h1>
{% 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 %}

<div class="mt-3 mb-3">
<img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip | strip }}>
{%- if page.image.alt -%}
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
{%- endif -%}
</div>
{% 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 %}

<div class="mt-3 mb-3">
<img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip | strip }}>
{%- if page.image.alt -%}
<figcaption class="text-center pt-2 pb-2">{{ page.image.alt }}</figcaption>
{%- endif -%}
</div>
{% endunless %}
{% endif %}


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

0 comments on commit d3e85a6

Please sign in to comment.