Skip to content

Commit

Permalink
Added test case for carousel slider implementation (#594)
Browse files Browse the repository at this point in the history
* 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

* 2 x 2 grid for lastest-post and join-us

* Modularize join_us section into an include file for reusability and cleaner code

* removed commented code

* de-emphasized the recent blog section to only display post title and author

* bundle(deps-dev): bump commonmarker from 0.23.10 to 0.23.11 (#588)

Bumps [commonmarker](https://github.com/gjtorikian/commonmarker) from 0.23.10 to 0.23.11.
- [Release notes](https://github.com/gjtorikian/commonmarker/releases)
- [Changelog](https://github.com/gjtorikian/commonmarker/blob/main/CHANGELOG.md)
- [Commits](gjtorikian/commonmarker@v0.23.10...v0.23.11)

---
updated-dependencies:
- dependency-name: commonmarker
  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 dnsruby from 1.72.2 to 1.72.3 (#590)

Bumps [dnsruby](https://github.com/alexdalitz/dnsruby) from 1.72.2 to 1.72.3.
- [Changelog](https://github.com/alexdalitz/dnsruby/blob/master/RELEASE_NOTES.md)
- [Commits](https://github.com/alexdalitz/dnsruby/commits/v1.72.3)

---
updated-dependencies:
- dependency-name: dnsruby
  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 minitest from 5.25.1 to 5.25.2 (#589)

Bumps [minitest](https://github.com/minitest/minitest) from 5.25.1 to 5.25.2.
- [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc)
- [Commits](minitest/minitest@v5.25.1...v5.25.2)

---
updated-dependencies:
- dependency-name: minitest
  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>

* Change title to recent news

* removed unused CSS class

* reduced title size

* reduced title size

* Linting test passing

* Linting test passing

* Added testcase for carousel slider implementation

* Added testcase for carousel slider implementation

* added missing closing tag to css class

* Capitalize section title from 'Recent news' to 'Recent News'

Co-authored-by: Jay Miller <[email protected]>

---------

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]>
  • Loading branch information
6 people authored Dec 2, 2024
1 parent 6b64b65 commit 62b3d9f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/css/bpd.css
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ button.next:focus {
border: 1px solid #ddd;
border-radius: 8px;
background-color: #f9f9f9;

}
.latest-posts-grid {
display: flex;
flex-wrap: wrap;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: index
lang: en
title: Home
list_title: Recent news
list_title: Recent News
---

<h2>Our Mission</h2>
Expand Down
24 changes: 23 additions & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def test_first_slide_matches_latest_post(page_url: tuple[Page, str]) -> None:
"/blog",
),
)

def stem_description(
path: pathlib.Path,
) -> Generator[tuple[str, frontmatter.Post], None, None]:
Expand Down Expand Up @@ -171,3 +170,26 @@ def test_page_blog_posts(
page.locator('meta[name="description"]').get_attribute("content")
== frontmatter["description"]
)


def get_post_image(metadata, default_image="/assets/images/bpd_stacked.png"):
"""Determine the image to display for a post."""
return metadata.get("featured_image", default_image)


def test_default_image_displayed_for_post_without_featured_image():
metadata = {
"title": "Test Post Without Featured Image",
"date": "2024-11-27",
"lang": "en",
"layout": "post",
"excerpt": "This is a test post for checking the default image.",
}

default_image = "/assets/images/bpd_stacked.png"

featured_image = get_post_image(metadata, default_image)

# Assertions
assert metadata["title"] == "Test Post Without Featured Image"
assert featured_image == default_image

0 comments on commit 62b3d9f

Please sign in to comment.