Skip to content

Commit 1b12671

Browse files
committed
Minor updates to linkedin embeddings
1 parent f5f7484 commit 1b12671

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

_includes/embed/linkedin.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
{% assign id = include.id %}
12
{% assign height = include.height | default: '1200' %}
23
{% assign width = include.width | default: '600' %}
34
{% assign title = include.title | default: 'Embedded LinkedIn Post' %}
45

56
<div style="width: 100%; padding: 1rem; display: flex; justify-content: center; align-items: center;">
67
<iframe
7-
src="https://www.linkedin.com/embed/feed/update/urn:li:ugcPost:{{ include.id }}"
8+
src="https://www.linkedin.com/embed/feed/update/urn:li:ugcPost:{{ id }}"
89
height="{{ height }}"
910
width="{{ width }}"
1011
frameborder="0"
1112
allowfullscreen=""
1213
title="{{ title }}"
14+
style="padding: 1.2rem; border-radius: 2.5rem;"
15+
name="linkedin-embed-{{ id }}"
1316
></iframe>
14-
</div>
17+
</div>

0 commit comments

Comments
 (0)