Skip to content

Commit 05b2027

Browse files
committed
fix layout
1 parent 62b90b0 commit 05b2027

File tree

85 files changed

+138
-3709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+138
-3709
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ test_images
2020
.DS_Store
2121
.coverage
2222
output
23+
output

_layouts/_includes/conferences.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ <h5>{{ conference.speaker }}</h5>
1111
{% if conference.conference_location != "_No response_" %}
1212
<br />
1313
<strong>{{ conference.location }}</strong>
14-
</p>
15-
{% endif %}
14+
</p>
15+
{% endif %}
1616
<p>{{ conference.description }}</p>
17-
1817
</article>
1918
{% endfor %}
2019
</div>
Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
{%- if page.comments != false and jekyll.environment == "production" -%}
2-
3-
<div id="disqus_thread"></div>
4-
<script>
5-
var disqus_config = function () {
6-
this.page.url = '{{ page.url | absolute_url }}';
7-
this.page.identifier = '{{ page.url | absolute_url }}';
8-
};
9-
10-
(function() {
11-
var d = document, s = d.createElement('script');
12-
13-
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14-
15-
s.setAttribute('data-timestamp', +new Date());
16-
(d.head || d.body).appendChild(s);
17-
})();
18-
</script>
19-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20-
{%- endif -%}
1+
{%- if page.comments != false and jekyll.environment == "production" -%}
2+
3+
<div id="disqus_thread"></div>
4+
<script>
5+
var disqus_config = function () {
6+
this.page.url = "{{ page.url | absolute_url }}";
7+
this.page.identifier = "{{ page.url | absolute_url }}";
8+
};
9+
10+
(function () {
11+
var d = document,
12+
s = d.createElement("script");
13+
14+
s.src = "https://{{ site.disqus.shortname }}.disqus.com/embed.js";
15+
16+
s.setAttribute("data-timestamp", +new Date());
17+
(d.head || d.body).appendChild(s);
18+
})();
19+
</script>
20+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
21+
{%- endif -%}

_layouts/_includes/foundational_supporters.html

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@ <h2>Foundational Supporters</h2>
66
<article>
77
<h3>{{year}} Supporters</h3>
88
<div class="grid">
9-
{% for data_lists in data[year] | slice(3) %}
10-
<section class="">
11-
<div>
9+
{% for data_lists in data[year] | slice(3) %}
10+
<section class="">
11+
<div>
1212
<ul>
13-
{% for supporter in data_lists %}
14-
<li>{{supporter}}</li>
15-
{% endfor %}
13+
{% for supporter in data_lists %}
14+
<li>{{supporter}}</li>
15+
{% endfor %}
1616
</ul>
17-
</div>
18-
</section>
19-
{% endfor %}
20-
</div>
21-
</article>
17+
</div>
18+
</section>
19+
{% endfor %}
20+
</div>
21+
</article>
2222
{% endfor %}
23-
<p>You can view the archive of supporters<sup>*</sup> by year at https://github.com/blackpythondevs/blackpythondevs.</p>
24-
<p>* <sub>Those who marked their desire to remain anonymous have not been included</sub></p>
25-
</div>
23+
<p>You can view the archive of supporters<sup>*</sup> by year at https://github.com/blackpythondevs/blackpythondevs.</p>
24+
<p>* <sub>Those who marked their desire to remain anonymous have not been included</sub></p>
2625
</section>

_layouts/_includes/header.html

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,25 @@
11
{% set t = locales %}
22
<header class="site-header" role="banner">
3-
<h1 class="site-title"><a class="logo-text" href="/index.html"><img src="{{ '/assets/images/black_python_devs_logo-horizontal-white.png' }}" alt="Black Python Devs" /></a></h1>
3+
<h1 class="site-title">
4+
<a class="logo-text" href="/index.html"><img src="{{ '/assets/images/black_python_devs_logo-horizontal-white.png' }}" alt="Black Python Devs" /></a>
5+
</h1>
46
<nav class="site-navigation" aria-label="Main navigation">
57
<div class="site-navigation-wrap">
68
<ul class="menu" role="menu">
7-
{% for item in navigation %}
8-
{% set current = nil %}
9-
{% set nav_lang = nil %}
10-
{% if url == item.url %}
11-
{% set current = 'nav-current' %}
12-
{% endif %}
13-
{% if lang != 'en' %}
14-
{% set nav_lang = lang %}
15-
{% endif %}
9+
{% for item in navigation %} {% set current = nil %} {% set nav_lang = nil %} {% if url == item.url %} {% set current = 'nav-current' %} {% endif %} {% if lang != 'en' %} {% set nav_lang = lang %} {% endif %}
1610
<li class="menu-item {{ current }}" role="menuitem">
1711
<a class="{{ current }}" href="{{ nav_lang }}{{ item.url }}"> <i class="{{ item.fa }}" aria-hidden="true"></i>&nbsp;{{ item.text }} </a>
1812
</li>
19-
{% endfor %}
20-
{% if locales | length > 1 %}
13+
{% endfor %} {% if locales | length > 1 %}
2114
<li class="menu-item" role="menuitem">
2215
<div class="">
2316
<i class="fa fa-language" aria-hidden="true"></i>
2417
<select id="language" class="form-select" aria-label="Language">
25-
{% set locales = locales | sort %}
26-
{% for locale in locales %}
27-
{% set lang = locale[0] %}
28-
{% set locale_name = locale[1][lang].locale_name %}
29-
{% if lang == lang %}
18+
{% set locales = locales | sort %} {% for locale in locales %} {% set lang = locale[0] %} {% set locale_name = locale[1][lang].locale_name %} {% if lang == lang %}
3019
<option value="{{ lang }}" selected="selected">{{ locale_name }}</option>
3120
{% else %}
3221
<option value="{{ lang }}">{{ locale_name }}</option>
33-
{% endif %}
34-
{% endfor %}
22+
{% endif %} {% endfor %}
3523
</select>
3624
</div>
3725
</li>

_layouts/_includes/join_us.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
<article id="join-us">
33
<div class="grid">
44
<a href="https://discord.gg/XUc3tFqCT3" role="button" class="pico-background-violet-650">
5-
<span style="margin: 0 1rem;">
6-
<i class="fab fa-discord"></i></span>
7-
<span>
8-
Join our Discord
9-
</span>
5+
<span style="margin: 0 1rem"> <i class="fab fa-discord"></i></span>
6+
<span> Join our Discord </span>
107
</a>
118

12-
<a href="https://www.linkedin.com/groups/14336241/" role="button" class="pico-background-azure-650 white-button" ><span style="margin: 0 1rem;"><i class="fab fa-linkedin"></i></span>Join our LinkedIn Group</a
9+
<a href="https://www.linkedin.com/groups/14336241/" role="button" class="pico-background-azure-650 white-button"
10+
><span style="margin: 0 1rem"><i class="fab fa-linkedin"></i></span>Join our LinkedIn Group</a
1311
>
1412
</div>
1513
</article>
@@ -23,8 +21,10 @@ <h2>Support Black Python Devs</h2>
2321
<img class="donation-photo" src="/assets/images/gnome_powered_bpd_stacked.png" alt="Black Python Devs logo with GNOME Foundation sponsorship" />
2422
</div>
2523
</div>
26-
<small>Black Python Devs is a Non-Profit, fiscally hosted under the GNOME Foundation. GNOME does take a percentage for operating costs for our account and administration but at least 90% of proceeds goes directly to Black Python Devs General Purpose
27-
Fund as detailed here.</small>
24+
<small
25+
>Black Python Devs is a Non-Profit, fiscally hosted under the GNOME Foundation. GNOME does take a percentage for operating costs for our account and administration but at least 90% of proceeds goes directly to Black Python Devs General Purpose
26+
Fund as detailed here.</small
27+
>
2828
</article>
2929
<section>
3030
<h3>Corporate Sponsors</h3>

_layouts/_includes/latest-posts.html

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
2-
{% block content %}
3-
{% for page in pages %}
4-
{%- if page.list_title -%}
1+
{% block content %} {% for page in pages %} {%- if page.list_title -%}
52
<h2 class="post-list-heading">{{ list_title }}</h2>
63
{% endif %}
74
<article class="post-list">
@@ -18,8 +15,7 @@ <h3>
1815
<div class="pager">
1916
<ul class="pagination">
2017
{%- if paginator.previous_page %}
21-
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page
22-
}}</a></li>
18+
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
2319
{%- else %}
2420
<li>
2521
<div class="pager-edge"></div>
@@ -37,7 +33,4 @@ <h3>
3733
{%- endif %}
3834
</ul>
3935
</div>
40-
{%- endif %}
41-
42-
{% endfor %}
43-
{% endblock %}
36+
{%- endif %} {% endfor %} {% endblock %}

_layouts/_includes/map.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<!-- Load Leaflet CSS and JS from CDN -->
2-
<link
3-
rel="stylesheet"
4-
href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.css"
5-
/>
2+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.css" />
63
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.js"></script>
74

85
<style>
@@ -37,10 +34,7 @@
3734
<h1>Interactive Map</h1>
3835
<div id="map"></div>
3936
<div class="instructions">
40-
<p>
41-
<strong>Instructions:</strong> You can drag to move the map, scroll to
42-
zoom in/out, and click on the marker to see information.
43-
</p>
37+
<p><strong>Instructions:</strong> You can drag to move the map, scroll to zoom in/out, and click on the marker to see information.</p>
4438
</div>
4539
</div>
4640

_layouts/_includes/posts.html

Lines changed: 31 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,31 @@
1-
{% if site.paginate %}
2-
{% assign posts = paginator.posts %}
3-
{% else %}
4-
{% assign posts = site.posts %}
5-
{% endif %}
6-
7-
{%- if posts.size > 0 -%}
8-
{%- if page.list_title -%}
9-
<h2 class="post-list-heading">{{ page.list_title }}</h2>
10-
{%- endif -%}
11-
<div class="post-list">
12-
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%}
13-
{% assign count = 0 %}
14-
{%- for post in posts -%}
15-
<div>
16-
<h3>
17-
<a class="post-link" href="{{ post.url | relative_url }}">
18-
{{ post.title | escape }}
19-
</a>
20-
</h3>
21-
<span class="post-meta">{{ post.date | date: date_format }}</span>
22-
{%- if site.show_excerpts -%}
23-
<p class="post-description">
24-
{{ post.description }}
25-
</p>
26-
{%- endif -%}
27-
</div>
28-
{%- assign count = count | plus:1 -%}
29-
{%- endfor -%}
30-
</div>
31-
32-
{% if site.paginate %}
33-
<div class="pagination">
34-
{%- if paginator.previous_page %}
35-
<a href="{{ paginator.previous_page_path | relative_url }}" class="prev">&larr; Prev</a>
36-
{%- else %}
37-
<span class="disabled prev">&larr; Prev</span>
38-
{%- endif %}
39-
40-
{%- if paginator.next_page %}
41-
<a href="{{ paginator.next_page_path | relative_url }}" class="next">Next &rarr;</a>
42-
{%- else %}
43-
<span class="disabled next">Next &rarr;</span>
44-
{%- endif %}
45-
</div>
46-
47-
{%- endif %}
48-
49-
{%- endif -%}
1+
{% if site.paginate %} {% assign posts = paginator.posts %} {% else %} {% assign posts = site.posts %} {% endif %} {%- if posts.size > 0 -%} {%- if page.list_title -%}
2+
<h2 class="post-list-heading">{{ page.list_title }}</h2>
3+
{%- endif -%}
4+
<div class="post-list">
5+
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%} {% assign count = 0 %} {%- for post in posts -%}
6+
<div>
7+
<h3>
8+
<a class="post-link" href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>
9+
</h3>
10+
<span class="post-meta">{{ post.date | date: date_format }}</span>
11+
{%- if site.show_excerpts -%}
12+
<p class="post-description">{{ post.description }}</p>
13+
{%- endif -%}
14+
</div>
15+
{%- assign count = count | plus:1 -%} {%- endfor -%}
16+
</div>
17+
18+
{% if site.paginate %}
19+
<div class="pagination">
20+
{%- if paginator.previous_page %}
21+
<a href="{{ paginator.previous_page_path | relative_url }}" class="prev">&larr; Prev</a>
22+
{%- else %}
23+
<span class="disabled prev">&larr; Prev</span>
24+
{%- endif %} {%- if paginator.next_page %}
25+
<a href="{{ paginator.next_page_path | relative_url }}" class="next">Next &rarr;</a>
26+
{%- else %}
27+
<span class="disabled next">Next &rarr;</span>
28+
{%- endif %}
29+
</div>
30+
31+
{%- endif %} {%- endif -%}

_layouts/_includes/social-item.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<li>
2-
<a {% unless entry.platform="" ="rss" %}rel="me" {% endunless %}href="{{ entry.user_url }}" target="_blank" title="{{ entry.title | default: entry.platform }}">
3-
<svg class="svg-icon grey">
4-
<use xlink:href="/assets/minima-social-icons.svg#"></use>
5-
</svg>
6-
</a>
7-
</li>
1+
<li>
2+
<a {% unless entry.platform="" ="rss" %}rel="me" {% endunless %}href="{{ entry.user_url }}" target="_blank" title="{{ entry.title | default: entry.platform }}">
3+
<svg class="svg-icon grey">
4+
<use xlink:href="/assets/minima-social-icons.svg#"></use>
5+
</svg>
6+
</a>
7+
</li>

0 commit comments

Comments
 (0)