Skip to content

Commit 5ee4663

Browse files
TimOsahenrudependabot[bot]TobiasHT5kjaymillerkafui4k
authored
New carousel (#585)
* bundle(deps-dev): bump json from 2.7.2 to 2.7.4 (#546) Bumps [json](https://github.com/ruby/json) from 2.7.2 to 2.7.4. - [Release notes](https://github.com/ruby/json/releases) - [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md) - [Commits](ruby/json@v2.7.2...v2.7.4) --- updated-dependencies: - dependency-name: json dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fixed broken youtube link (#545) * bundle(deps-dev): bump execjs from 2.9.1 to 2.10.0 (#547) Bumps [execjs](https://github.com/rails/execjs) from 2.9.1 to 2.10.0. - [Release notes](https://github.com/rails/execjs/releases) - [Commits](rails/execjs@v2.9.1...v2.10.0) --- updated-dependencies: - dependency-name: execjs dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps-dev): bump activesupport from 7.2.1.1 to 7.2.1.2 (#549) Bumps [activesupport](https://github.com/rails/rails) from 7.2.1.1 to 7.2.1.2. - [Release notes](https://github.com/rails/rails/releases) - [Changelog](https://github.com/rails/rails/blob/v7.2.1.2/activesupport/CHANGELOG.md) - [Commits](rails/rails@v7.2.1.1...v7.2.1.2) --- updated-dependencies: - dependency-name: activesupport dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps): bump rexml from 3.3.8 to 3.3.9 (#548) Bumps [rexml](https://github.com/ruby/rexml) from 3.3.8 to 3.3.9. - [Release notes](https://github.com/ruby/rexml/releases) - [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md) - [Commits](ruby/rexml@v3.3.8...v3.3.9) --- updated-dependencies: - dependency-name: rexml dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * A recap blog-post for pyconug (#541) * creating recap post for pyconug - Added 3 images to the images folder in the assets directory. - Added post in the _posts folder on 2024-10-25 * Fix table display * Reformat post - Remove paragraph HTML tags - Replace Markdown table with HTML table * Update _posts/2024-10-25-pycon-ug-2024.md Co-authored-by: Jay Miller <[email protected]> * replace featured image with BPD's one * fix pre-commit issues --------- Co-authored-by: Jay Miller <[email protected]> * Update 2024-10-25-pycon-ug-2024.md (#552) * new dsf election post October 2024 (#551) * Limit carousel posts to 3 recent posts * Changed `object-fit` to `contain` in `.email-circle img` for full image visibility within circle * Add default image for posts without featured images in carousel * changed slider carousel width from 85 to 100 * Proper naming convention - changed email-circle to image-circle * Add a recap blog-post for pyho-2024 (#555) * bundle(deps-dev): bump json from 2.7.4 to 2.7.6 (#558) Bumps [json](https://github.com/ruby/json) from 2.7.4 to 2.7.6. - [Release notes](https://github.com/ruby/json/releases) - [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md) - [Commits](ruby/json@v2.7.4...v2.7.6) --- updated-dependencies: - dependency-name: json dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps): bump webrick from 1.8.2 to 1.9.0 (#559) Bumps [webrick](https://github.com/ruby/webrick) from 1.8.2 to 1.9.0. - [Release notes](https://github.com/ruby/webrick/releases) - [Commits](ruby/webrick@v1.8.2...v1.9.0) --- updated-dependencies: - dependency-name: webrick dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps-dev): bump activesupport from 7.2.1.2 to 7.2.2 (#560) Bumps [activesupport](https://github.com/rails/rails) from 7.2.1.2 to 7.2.2. - [Release notes](https://github.com/rails/rails/releases) - [Changelog](https://github.com/rails/rails/blob/v7.2.2/activesupport/CHANGELOG.md) - [Commits](rails/rails@v7.2.1.2...v7.2.2) --- updated-dependencies: - dependency-name: activesupport dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * add ollama_summarizer.py * update requirements * update layouts to include descriptions * update posts * update posts with default layout * update posts with default layout * update MAINTAINERS with update_layout * simplify cli * update pre-commit * resizing featured images (#543) * Revert "resizing featured images (#543)" (#565) This reverts commit b3b23c6. * bundle(deps-dev): bump uri from 0.13.1 to 1.0.1 (#568) Bumps [uri](https://github.com/ruby/uri) from 0.13.1 to 1.0.1. - [Release notes](https://github.com/ruby/uri/releases) - [Commits](ruby/uri@v0.13.1...v1.0.1) --- updated-dependencies: - dependency-name: uri dependency-type: indirect update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps-dev): bump net-http from 0.4.1 to 0.5.0 (#569) Bumps [net-http](https://github.com/ruby/net-http) from 0.4.1 to 0.5.0. - [Release notes](https://github.com/ruby/net-http/releases) - [Commits](ruby/net-http@v0.4.1...v0.5.0) --- updated-dependencies: - dependency-name: net-http dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps-dev): bump securerandom from 0.3.1 to 0.3.2 (#570) Bumps [securerandom](https://github.com/ruby/securerandom) from 0.3.1 to 0.3.2. - [Release notes](https://github.com/ruby/securerandom/releases) - [Commits](ruby/securerandom@v0.3.1...v0.3.2) --- updated-dependencies: - dependency-name: securerandom dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps-dev): bump benchmark from 0.3.0 to 0.4.0 (#571) Bumps [benchmark](https://github.com/ruby/benchmark) from 0.3.0 to 0.4.0. - [Release notes](https://github.com/ruby/benchmark/releases) - [Commits](ruby/benchmark@v0.3.0...v0.4.0) --- updated-dependencies: - dependency-name: benchmark dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps-dev): bump activesupport from 7.2.2 to 8.0.0 (#572) Bumps [activesupport](https://github.com/rails/rails) from 7.2.2 to 8.0.0. - [Release notes](https://github.com/rails/rails/releases) - [Changelog](https://github.com/rails/rails/blob/v8.0.0/activesupport/CHANGELOG.md) - [Commits](rails/rails@v7.2.2...v8.0.0) --- updated-dependencies: - dependency-name: activesupport dependency-type: indirect update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps-dev): bump json from 2.7.6 to 2.8.1 (#573) Bumps [json](https://github.com/ruby/json) from 2.7.6 to 2.8.1. - [Release notes](https://github.com/ruby/json/releases) - [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md) - [Commits](ruby/json@v2.7.6...v2.8.1) --- updated-dependencies: - dependency-name: json dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * manually update conferences (#576) * bundle(deps-dev): bump uri from 1.0.1 to 1.0.2 (#583) Bumps [uri](https://github.com/ruby/uri) from 1.0.1 to 1.0.2. - [Release notes](https://github.com/ruby/uri/releases) - [Commits](ruby/uri@v1.0.1...v1.0.2) --- updated-dependencies: - dependency-name: uri dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps-dev): bump faraday-net_http from 3.3.0 to 3.4.0 (#584) Bumps [faraday-net_http](https://github.com/lostisland/faraday-net_http) from 3.3.0 to 3.4.0. - [Release notes](https://github.com/lostisland/faraday-net_http/releases) - [Commits](lostisland/faraday-net_http@v3.3.0...v3.4.0) --- updated-dependencies: - dependency-name: faraday-net_http dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * bundle(deps-dev): bump json from 2.8.1 to 2.8.2 (#582) Bumps [json](https://github.com/ruby/json) from 2.8.1 to 2.8.2. - [Release notes](https://github.com/ruby/json/releases) - [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md) - [Commits](ruby/json@v2.8.1...v2.8.2) --- updated-dependencies: - dependency-name: json dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Uninstalled bootstrap * custom carousel slider with passing test cases * de-emphasized the recent blogs section to make it smaller * custom carousel slider with passing test cases * custom carousel slider with passing test cases --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Toe•bias/HT <[email protected]> Co-authored-by: Jay Miller <[email protected]> Co-authored-by: Kafui Alordo <[email protected]> Co-authored-by: Johanan Oppong Amoateng <[email protected]>
1 parent 2e54647 commit 5ee4663

File tree

46 files changed

+609
-181
lines changed

Some content is hidden

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

46 files changed

+609
-181
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ repos:
3232
rev: 23.9.1
3333
hooks:
3434
- id: black
35+
- repo: local
36+
hooks:
37+
- id: check-for-layout
38+
name: check-for-layout
39+
files: _posts/.*.md
40+
entry: python update_layout.py
41+
language: python
42+
additional_dependencies: [typer, python-frontmatter, typing-extensions]

Gemfile

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
source "https://rubygems.org"
2-
ruby RUBY_VERSION
3-
4-
gem "jekyll"
5-
6-
# If you have any plugins, put them here!
7-
group :jekyll_plugins do
8-
gem "jemoji"
9-
gem "github-pages"
10-
gem "jekyll-remote-theme"
11-
gem "jekyll-feed"
12-
end
13-
14-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
15-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
16-
17-
gem 'webrick', '~> 1.7'
18-
19-
# gem "rake"
20-
# gem 'prism', '~> 0.17.1'
21-
# gem 'ruby-lsp', '~> 0.12.4'
1+
source "https://rubygems.org"
2+
ruby RUBY_VERSION
3+
4+
gem "jekyll"
5+
6+
# If you have any plugins, put them here!
7+
group :jekyll_plugins do
8+
gem "jemoji"
9+
gem "github-pages"
10+
gem "jekyll-remote-theme"
11+
gem "jekyll-feed"
12+
end
13+
14+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
15+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
16+
17+
gem 'webrick', '~> 1.9'
18+
19+
# gem "rake"
20+
# gem 'prism', '~> 0.17.1'
21+
# gem 'ruby-lsp', '~> 0.12.4'

Gemfile.lock

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.2.1.1)
4+
activesupport (8.0.0)
55
base64
6+
benchmark (>= 0.3)
67
bigdecimal
78
concurrent-ruby (~> 1.0, >= 1.3.1)
89
connection_pool (>= 2.2.5)
@@ -12,9 +13,11 @@ GEM
1213
minitest (>= 5.1)
1314
securerandom (>= 0.3)
1415
tzinfo (~> 2.0, >= 2.0.5)
16+
uri (>= 0.13.1)
1517
addressable (2.8.7)
1618
public_suffix (>= 2.0.2, < 7.0)
1719
base64 (0.2.0)
20+
benchmark (0.4.0)
1821
bigdecimal (3.1.8)
1922
coffee-script (2.4.1)
2023
coffee-script-source
@@ -34,13 +37,13 @@ GEM
3437
ethon (0.16.0)
3538
ffi (>= 1.15.0)
3639
eventmachine (1.2.7)
37-
execjs (2.9.1)
38-
faraday (2.12.0)
39-
faraday-net_http (>= 2.0, < 3.4)
40+
execjs (2.10.0)
41+
faraday (2.12.1)
42+
faraday-net_http (>= 2.0, < 3.5)
4043
json
4144
logger
42-
faraday-net_http (3.3.0)
43-
net-http
45+
faraday-net_http (3.4.0)
46+
net-http (>= 0.5.0)
4447
ffi (1.17.0-aarch64-linux-gnu)
4548
ffi (1.17.0-aarch64-linux-musl)
4649
ffi (1.17.0-arm-linux-gnu)
@@ -221,7 +224,7 @@ GEM
221224
gemoji (>= 3, < 5)
222225
html-pipeline (~> 2.2)
223226
jekyll (>= 3.0, < 5.0)
224-
json (2.7.2)
227+
json (2.8.2)
225228
kramdown (2.4.0)
226229
rexml
227230
kramdown-parser-gfm (1.1.0)
@@ -237,7 +240,7 @@ GEM
237240
jekyll-feed (~> 0.9)
238241
jekyll-seo-tag (~> 2.1)
239242
minitest (5.25.1)
240-
net-http (0.4.1)
243+
net-http (0.5.0)
241244
uri
242245
nokogiri (1.16.7-aarch64-linux)
243246
racc (~> 1.4)
@@ -261,7 +264,7 @@ GEM
261264
rb-fsevent (0.11.2)
262265
rb-inotify (0.11.1)
263266
ffi (~> 1.0)
264-
rexml (3.3.8)
267+
rexml (3.3.9)
265268
rouge (3.30.0)
266269
rubyzip (2.3.2)
267270
safe_yaml (1.0.5)
@@ -273,7 +276,7 @@ GEM
273276
sawyer (0.9.2)
274277
addressable (>= 2.3.5)
275278
faraday (>= 0.17.3, < 3)
276-
securerandom (0.3.1)
279+
securerandom (0.3.2)
277280
simpleidn (0.2.3)
278281
terminal-table (1.8.0)
279282
unicode-display_width (~> 1.1, >= 1.1.1)
@@ -282,8 +285,8 @@ GEM
282285
tzinfo (2.0.6)
283286
concurrent-ruby (~> 1.0)
284287
unicode-display_width (1.8.0)
285-
uri (0.13.1)
286-
webrick (1.8.2)
288+
uri (1.0.2)
289+
webrick (1.9.0)
287290

288291
PLATFORMS
289292
aarch64-linux
@@ -308,7 +311,7 @@ DEPENDENCIES
308311
jekyll-remote-theme
309312
jemoji
310313
tzinfo-data
311-
webrick (~> 1.7)
314+
webrick (~> 1.9)
312315

313316
RUBY VERSION
314317
ruby 3.3.5p100

MAINTAINERS.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ First off, thank you for considering contributing to Black Python Devs website.
1414
- [Translations](#translations)
1515
- [Styling](#styling)
1616
- [Adding New Pages](#adding-new-pages)
17+
- Post Validation
1718

1819
# Before You Get Started
1920

@@ -203,6 +204,34 @@ ROUTES = [
203204

204205
- Make sure your new page renders correctly and all links work as expected.
205206

207+
## Layout Validation
208+
209+
### Automatic Layout Updates
210+
211+
To ensure consistency across all blog posts, we've implemented automatic layout validation and updating functionality. This helps maintain proper frontmatter configuration for all Markdown files in the `_posts` directory.
212+
213+
### Tools and Features
214+
215+
#### `update_layout.py` CLI Tool
216+
217+
- Checks and applies missing layout fields to post files
218+
- Can process multiple posts simultaneously
219+
- Usage:
220+
```bash
221+
python update_layout.py fix|check path/to/post1.md [path/to/post2.md ...]
222+
```
223+
224+
#### Pre-commit Hook
225+
226+
We've implemented a custom pre-commit hook that automatically runs the `update_layout.py` update check on any `.md` files in the `_posts` directory that are being committed. The hook will:
227+
228+
- Run automatically before each commit
229+
- Check all modified `.md` files in the `_posts` directory
230+
- Apply the necessary layout field if missing
231+
- Fail the commit initially but fix the issue, allowing you to commit again
232+
233+
For manual layout checks and updates, you can always run the `update_layout.py` tool directly.
234+
206235
---
207236

208237
Remember, when in doubt, don't hesitate to ask for help in our Discord community or in a GitHub issue!

_data/conferences.json

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
[
22
{
3-
"conference_name": "PyconUg",
4-
"url": "https://ug.pycon.org",
5-
"conference_start_date": "2024-10-09",
6-
"conference_end_date": "2024-10-13",
3+
"conference_name": "DELSU Tech Invasion 2.0",
4+
"url": "https://dti.hamplustech.com/",
5+
"conference_start_date": "2024-12-04",
6+
"conference_end_date": "2024-12-05",
77
"conference_type": "in-person",
8-
"conference_location": "NWSC International Resource Centre (IREC), Kampala, Uganda",
9-
"summary": "The conference is a five-day event, 9-13 October. PyconUganda inherit this tradition of an annual event that brings together python enthusiasts, tech audiences and technology business in uganda and around the world.",
10-
"speaking": null
11-
},
12-
{
13-
"conference_name": "PyHo",
14-
"url": "https://twitter.com/pythonho",
15-
"conference_start_date": "2024-10-25",
16-
"conference_end_date": "2024-10-26",
17-
"conference_type": "in-person",
18-
"conference_location": "University of Health and Allied Sciences, Trafalgar, Ho. Ho, Volta Region, Ghana.",
19-
"summary": "PyHo, champion the leverage of Python in education promote diversity and inclusion from underrepresented communities within\nthe/beyond our region. Provide the foundational platform for new and experienced speakers alike to share ideas and resources.",
20-
"speaking": null
8+
"conference_location": "Abraka, Delta State, Nigeria",
9+
"summary": "This is the second edition of DELSU Tech Invasion (DTI) with the theme: Learn . Innovate . Earn. The subject or focus area is Python for Academics: Spreadsheet and Data Manipulation, Data Analytics and Visualization.",
10+
"speaking": "- Developing lite web apps using Flask and Python - [Michael Oghenerukevwe Edward](http://linkedin.com/in/airdward/)\n- Transitioning in Tech Ecosystem as a Female - [Precious Ogbuka](https://www.linkedin.com/in/precious-ogbuka)\n- Rapid Development of Desktop Apps using Tkinter and Python - [Azubuike Uche Nathan](https://x.com/NathanAzub10827)\n- Why Learn, Innovate and Earn - [Naomi Apomejevwe Egbe](https://x.com/IamNaomiEgbe)\n- Gender diversity and inclusion in the tech ecosystem - [Elozino Onorie](https://x.com/_hush_7)\n- others can be found in the links below:\n - https://dti.hamplustech.com/pages/speaker/\n - https://dti.hamplustech.com/pages/schedule/"
2111
}
2212
]

_includes/conferences.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ <h2>
1818
{% endif %}
1919
{% if conference.speaking %}
2020
<h3>Speaking:</h3>
21-
<li>
2221
{{ conference.speaking | markdownify }}
23-
</li>
2422
{% endif %}
2523
</article>
2624
{% endfor %}

_includes/latest-posts.html

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22
<h2 class="post-list-heading">{{ page.list_title }}</h2>
33
{%- endif -%}
44
<article class="post-list">
5-
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%} {% assign count = 0 %} {% assign limit_posts = 3 %} {%- for post in posts -%} {%- if count < limit_posts -%}
6-
<div>
7-
<h3>
8-
<a class="" 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 -%} {{ post.excerpt }} {%- endif -%}
5+
{%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%}
6+
<div class="latest-posts-grid">
7+
{% assign count = 0 %} {% assign limit_posts = 3 %} {%- for post in posts -%} {%- if count < limit_posts -%}
8+
<div class="post-item">
9+
<h3>
10+
<a class="" href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>
11+
</h3>
12+
<p>{{ post.date | date: date_format }}</p>
13+
{%- if site.show_excerpts -%}
14+
<p class="post-description">{{ post.description }}</p>
15+
{%- endif -%}
16+
</div>
17+
{%- assign count = count | plus: 1 -%} {%- endif -%} {%- endfor -%}
1218
</div>
13-
{%- assign count = count | plus:1 -%} {%- endif -%} {%- endfor -%}
1419
</article>
1520

1621
{% if site.paginate %}

_includes/posts.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ <h3>
2020
</h3>
2121
<span class="post-meta">{{ post.date | date: date_format }}</span>
2222
{%- if site.show_excerpts -%}
23-
{{ post.excerpt }}
24-
{%- endif -%}
23+
<p class="post-description">
24+
{{ post.description }}
25+
</p>
26+
{%- endif -%}
2527
</div>
2628
{%- assign count = count | plus:1 -%}
2729
{%- endfor -%}

_layouts/default.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
6-
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}" />
6+
<meta name="description" content="{% if page.description%}{{ page.description | escape }}{% else %}{{ site.description }}{% endif %}" />
77
<title>{% if page.title %}{{ site.title }} | {{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
88
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}" />
99
<link rel="stylesheet" href="{{ '/assets/css/pico.min.css' | relative_url }}" />
@@ -12,7 +12,6 @@
1212
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" />
1313
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | prepend: site.baseurl | prepend: site.url }}" />
1414
<link rel="icon" href="https://fav.farm/%E2%9C%8A%F0%9F%8F%BE" type="image/svg" />
15-
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
1615
{% if page.lang and page.untranslated != true and site.data.locales.size > 1 %}
1716
{% assign locales = site.data.locales | sort %}
1817
{% for locale in locales %}
@@ -37,6 +36,5 @@
3736
{%- include footer.html -%}
3837
<script src="{{ '/assets/js/index.js' | relative_url }}"></script>
3938
<script src="https://kit.fontawesome.com/1bbe56de49.js" crossorigin="anonymous"></script>
40-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
4139
</body>
4240
</html>

_layouts/index.html

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,24 @@
33
---
44
<div class="home">
55
{% assign t = site.data.locales[page.lang][page.lang] %} {% if page.title %} {% assign header = page.title %} {% else %} {% assign header = site.title %} {% endif %}
6-
<header>
7-
<div id="postSlider" class="carousel slide slider-container" data-bs-ride="carousel">
8-
<div class="carousel-inner">
9-
{% for post in site.posts %}
10-
<div class="carousel-item {% if forloop.first %}active{% endif %}">
11-
<div class="email-circle">
12-
<img src="{{ post.featured_image | default: post.content | split: '!' | first | split: '(' | last | split: ')' | first | default: 'default-image.jpg' }}" alt="{{ post.title }}">
13-
</div>
14-
<h3 class="post-title">{{ post.title }}</h3>
15-
<p class="post-summary">{{ post.excerpt | strip_html | truncatewords: 20 }}</p>
6+
<div class="slider">
7+
<div class="slides">
8+
{% assign recent_posts = site.posts | slice: 0, 3 %}
9+
{% for post in recent_posts %}
10+
<div class="slide {% if forloop.first %}active{% endif %}">
11+
<div class="image-wrapper">
12+
<img src="{{ post.featured_image | default: '/assets/images/bpd_stacked.png' }}" alt="{{ post.title }}">
13+
</div>
14+
<div class="info">
15+
<h2>{{ post.title }}</h2>
16+
<p>{{ post.excerpt | strip_html | truncatewords: 20 }}</p>
1617
</div>
17-
{% endfor %}
1818
</div>
19-
20-
<!-- Controls -->
21-
<button class="carousel-control-prev" type="button" data-bs-target="#postSlider" data-bs-slide="prev">
22-
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
23-
<span class="visually-hidden">Previous</span>
24-
</button>
25-
<button class="carousel-control-next" type="button" data-bs-target="#postSlider" data-bs-slide="next">
26-
<span class="carousel-control-next-icon" aria-hidden="true"></span>
27-
<span class="visually-hidden">Next</span>
28-
</button>
19+
{% endfor %}
2920
</div>
30-
</header>
21+
<button class="prev" onclick="moveSlide(-1)">&#10094;</button>
22+
<button class="next" onclick="moveSlide(1)">&#10095;</button>
23+
</div>
3124
{{ content }}
3225

3326
<img src="{{'/assets/images/dcus.jpg' | relative_url }}" alt="DjangoCon US 2023"/>

0 commit comments

Comments
 (0)