Skip to content

Commit ec8773c

Browse files
committed
fix(2426): fix old library_intro references
1 parent d5326c0 commit ec8773c

2 files changed

Lines changed: 2 additions & 38 deletions

File tree

core/views.py

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2048,43 +2048,7 @@ def get_context_data(self, **kwargs):
20482048
# Hardcoded for the demo page. The production library intro context is
20492049
# built by `libraries.utils.build_library_intro_context`; reuse it when
20502050
# integrating this component into the real library pages.
2051-
context["library_intro"] = {
2052-
"library_name": "Boost.Beast.",
2053-
"description": (
2054-
"Lightweight utilities that power dozens of other Boost libraries"
2055-
),
2056-
"authors": [
2057-
{
2058-
"name": "Vinnie Falco",
2059-
"role": "Author",
2060-
"avatar_url": large_static("img/v3/demo-page/avatar.png"),
2061-
"badge_url": large_static("img/v3/badges/badge-first-place.png"),
2062-
"badge": "",
2063-
"bio": "Big C++ fan. Not quite kidney-donation level, but close.",
2064-
"profile_url": "",
2065-
},
2066-
{
2067-
"name": "Alex Wells",
2068-
"role": "Contributor",
2069-
"avatar_url": large_static("img/v3/demo-page/avatar.png"),
2070-
"badge_url": "",
2071-
"badge": "",
2072-
"bio": "C++ enthusiast who has worked at Intel and Microsoft.",
2073-
"profile_url": "",
2074-
},
2075-
{
2076-
"name": "Dave Abrahams",
2077-
"role": "Contributor",
2078-
"avatar_url": large_static("img/v3/demo-page/avatar.png"),
2079-
"badge_url": large_static("img/v3/badges/badge-bronze.png"),
2080-
"badge": "",
2081-
"bio": "Contributor to Boost since 2009.",
2082-
"profile_url": "",
2083-
},
2084-
],
2085-
"cta_url": "#",
2086-
}
2087-
2051+
#
20882052
# Demo variants for the Library Intro Card scrollable behaviour:
20892053
# "few" stays under the 3-row cap (no scroll); "many" exceeds it.
20902054
_intro_avatar = large_static("img/v3/demo-page/avatar.png")

templates/v3/examples/_v3_example_section.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ <h3>{{ section_title }}</h3>
307307
</div>
308308
{% endwith %}
309309

310-
{% if library_intro %}
310+
{% if library_intro_few or library_intro_three or library_intro_many %}
311311
{% with section_title="Library Intro Card" %}
312312
<div class="v3-examples-section__block" id="{{ section_title|slugify }}">
313313
<h3>{{ section_title }}</h3>

0 commit comments

Comments
 (0)