Skip to content

Commit e738dea

Browse files
authored
Deployment Dilemma Blog Post (#8)
* deployment dilemma blog post draft * Update pages-deploy.yml * updated graphics * update order & date * date * update berkeley img * update sec img * date
1 parent ef21306 commit e738dea

27 files changed

+248
-23
lines changed

_blog/deployment-dilemma.md

+171
Large diffs are not rendered by default.

_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ collections:
132132
tabs:
133133
output: true
134134
sort_by: order
135+
blog:
136+
output: true
135137

136138
defaults:
137139
- scope:

_data/locales/en.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ layout:
1111
tabs:
1212
# format: <filename_without_extension>: <value>
1313
home: Deployments
14+
blog: Blog
1415
categories: Categories
15-
# tags: Institutions
1616
archives: Archives
1717
about: Maintainers
1818

File renamed without changes.

_layouts/post.html

+29-19
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ <h1 data-toc-skip>{{ page.title }}</h1>
1818
<span>
1919
{{ site.data.locales[lang].post.posted }}
2020
{% include datetime.html date=page.date tooltip=true lang=lang %}
21+
22+
{% if page.custom_authors %} <!-- Display read time next to the date if custom_authors is true -->
23+
&bull;
24+
{% include read-time.html content=content prompt=true lang=lang %}
25+
{% endif %}
26+
2127
</span>
2228

2329
<!-- lastmod date -->
@@ -50,24 +56,26 @@ <h1 data-toc-skip>{{ page.title }}</h1>
5056
<div class="d-flex justify-content-between">
5157
<!-- author(s) -->
5258
<span>
53-
{% if page.author %}
54-
{% assign authors = page.author %}
55-
{% elsif page.authors %}
56-
{% assign authors = page.authors %}
57-
{% endif %}
58-
59-
{{ site.data.locales[lang].post.written_by }}
60-
61-
<em>
62-
{% if authors %}
63-
{% for author in authors %}
64-
<a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
65-
{% unless forloop.last %}</em>, <em>{% endunless %}
66-
{% endfor %}
67-
{% else %}
68-
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
69-
{% endif %}
70-
</em>
59+
{% unless page.custom_authors %} <!-- Add this condition -->
60+
{% if page.author %}
61+
{% assign authors = page.author %}
62+
{% elsif page.authors %}
63+
{% assign authors = page.authors %}
64+
{% endif %}
65+
66+
{{ site.data.locales[lang].post.written_by }}
67+
68+
<em>
69+
{% if authors %}
70+
{% for author in authors %}
71+
<a href="{{ site.data.authors[author].url }}">{{ site.data.authors[author].name }}</a>
72+
{% unless forloop.last %}</em>, <em>{% endunless %}
73+
{% endfor %}
74+
{% else %}
75+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
76+
{% endif %}
77+
</em>
78+
{% endunless %} <!-- Close the condition here -->
7179
</span>
7280

7381
<div>
@@ -82,7 +90,9 @@ <h1 data-toc-skip>{{ page.title }}</h1>
8290
{% endif %}
8391

8492
<!-- read time -->
85-
{% include read-time.html content=content prompt=true lang=lang %}
93+
{% unless page.custom_authors %} <!-- Display read time here only if custom_authors is NOT true -->
94+
{% include read-time.html content=content prompt=true lang=lang %}
95+
{% endunless %}
8696
</div>
8797

8898
</div> <!-- .d-flex -->

_tabs/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# the default layout is 'page'
33
icon: fas fa-user
4-
order: 3
4+
order: 5
55
---
66

77
<style>

_tabs/blog.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: page
3+
icon: fas fa-feather
4+
order: 2
5+
math: true
6+
hide: true
7+
---
8+
9+
{% for post in site.blog%}
10+
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
11+
<p>{{ post.excerpt }}</p>
12+
<a href="{{ post.url }}">Read More >></a>
13+
{% endfor %}

_tabs/categories.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
layout: categories
33
icon: fas fa-stream
4-
order: 3
4+
order: 4
55
---

_tabs/contribute.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# layout: archives
33
icon: fas fa-pen
4-
order: 2
4+
order: 3
55
---
66

77
> If you know of an MPC deployment that has been **deployed** and reached a **substantial number of users** in practice, submit a PR to add a deployment. Or update an existing entry!

assets/css/style.scss

+29
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,32 @@
44
@import '{{ site.theme }}';
55

66
/* append your custom style below */
7+
8+
/* Add to your CSS file */
9+
.author-name {
10+
font-weight: bold;
11+
}
12+
13+
.author-affiliation {
14+
font-style: italic;
15+
}
16+
17+
.author-info {
18+
font-size: 0.9em;
19+
}
20+
21+
.rounded-10 {
22+
border-radius: 10px !important;
23+
}
24+
25+
.rounded-corners {
26+
border-radius: 10px;
27+
overflow: hidden;
28+
display: inline-block; /* Makes the div wrap around the image */
29+
}
30+
31+
.rounded-corners img {
32+
display: block; /* Removes any unwanted space below the image */
33+
width: 100%; /* Ensures the image fills the entire div */
34+
height: auto;
35+
}

assets/img/berkeley.jpg

105 KB
Loading

assets/img/cloudenclaves.png

95.5 KB
Loading

assets/img/coinbase.gif

1.11 MB
Loading

assets/img/coinbase2pc.png

43.4 KB
Loading

assets/img/coinbaseoverview.png

102 KB
Loading

assets/img/divviup.png

270 KB
Loading

assets/img/divviupgraph.png

105 KB
Loading

assets/img/enclave.png

36 KB
Loading

assets/img/enpa-flow.png

67.1 KB
Loading

assets/img/enpa.jpg

204 KB
Loading

assets/img/isrgoverview.png

108 KB
Loading

assets/img/mpc.png

101 KB
Loading

assets/img/mpcintheclouds.png

66.3 KB
Loading

assets/img/securitygroup.png

180 KB
Loading

assets/img/separation.png

38.1 KB
Loading

assets/img/signal.jpg

63.4 KB
Loading

assets/img/signaloverview.png

127 KB
Loading

0 commit comments

Comments
 (0)