Skip to content

Commit 4df9262

Browse files
aledlieclaude
andcommitted
refactor: consolidate duplicate templates and includes
- Remove unused _includes/_author-profile.html (duplicate of author-profile.html) - Remove unused _includes/_discus_comments.html (duplicate of comment.html) - Remove unused _includes/breadcrumb.html (duplicate of breadcrumbs.html) - Remove duplicate _sass/minimal-mistakes/utils.scss - Consolidate posts-category.html and posts-tag.html into posts-taxonomy.html - Add taxonomy-archive.html layout for reusable taxonomy pages Reduces template duplication by ~40 lines and simplifies maintenance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 5d9bc62 commit 4df9262

17 files changed

+871
-937
lines changed

.bundle/plugin/specifications/bundler-graph-0.2.1.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Gem::Specification.new do |s|
55
s.name = "bundler-graph".freeze
6-
s.version = "0.2.1"
6+
s.version = "0.2.1".freeze
77

88
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
99
s.metadata = { "homepage_uri" => "https://github.com/rubygems/bundler-graph", "source_code_uri" => "https://github.com/rubygems/bundler-graph" } if s.respond_to? :metadata=
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
1616
s.homepage = "https://github.com/rubygems/bundler-graph".freeze
1717
s.licenses = ["MIT".freeze]
1818
s.required_ruby_version = Gem::Requirement.new(">= 2.4.0".freeze)
19-
s.rubygems_version = "3.0.3.1".freeze
19+
s.rubygems_version = "3.2.26".freeze
2020
s.summary = "Generates a visual dependency graph for your Gemfile".freeze
2121

22-
s.installed_by_version = "3.0.3.1" if s.respond_to? :installed_by_version
22+
s.installed_by_version = "3.7.2".freeze
2323
end

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,3 +565,4 @@ Migrated from deprecated SCSS functions to modern Sass module system:
565565
---
566566

567567
**Last Major Update:** 2025-11-26 - Accessibility WCAG 2.1 AA compliance achieved
568+
- always use uv pip install for new python libraries

_includes/_author-profile.html

Lines changed: 0 additions & 246 deletions
This file was deleted.

_includes/_discus_comments.html

Lines changed: 0 additions & 22 deletions
This file was deleted.

_includes/breadcrumb.html

Lines changed: 0 additions & 40 deletions
This file was deleted.

_includes/posts-category.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

_includes/posts-tag.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

_includes/posts-taxonomy.html

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,14 @@
1-
{% assign items_max = 0 %}
2-
{% for item in include.taxonomies %}
3-
{% if item[1].size > items_max %}
4-
{% assign items_max = item[1].size %}
5-
{% endif %}
6-
{% endfor %}
7-
8-
<ul class="taxonomy-index">
9-
{% for i in (1..items_max) reversed %}
10-
{% for item in include.taxonomies %}
11-
{% if item[1].size == i %}
12-
<li>
13-
<a href="#{{ item[0] | slugify }}">
14-
<strong>{{ item[0] }}</strong> <span class="taxonomy-count">{{ i }}</span>
15-
</a>
16-
</li>
17-
{% endif %}
18-
{% endfor %}
19-
{% endfor %}
20-
</ul>
21-
22-
{% assign entries_layout = page.entries_layout | default: 'list' %}
23-
{% for i in (1..items_max) reversed %}
24-
{% for taxonomy in include.taxonomies %}
25-
{% if taxonomy[1].size == i %}
26-
<section id="{{ taxonomy[0] | slugify }}" class="taxonomy-section">
27-
<h2 class="archive-subtitle">{{ taxonomy[0] }}</h2>
28-
<div class="entries-{{ entries-layout }}">
29-
{% for post in taxonomy.last %}
30-
{% include archive-single.html type=entries_layout %}
31-
{% endfor %}
32-
</div>
33-
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
34-
</section>
35-
{% endif %}
36-
{% endfor %}
37-
{% endfor %}
1+
{% comment %}
2+
Unified taxonomy posts include
3+
Parameters:
4+
- taxonomy: The taxonomy term to filter by (e.g., "javascript")
5+
- collection: The collection type - "tags" or "categories"
6+
{% endcomment %}
7+
{% if include.collection == "tags" %}
8+
{% assign posts = site.tags[include.taxonomy] | where_exp: "post", "post.hidden != true" %}
9+
{% else %}
10+
{% assign posts = site.categories[include.taxonomy] | where_exp: "post", "post.hidden != true" %}
11+
{% endif %}
12+
{%- for post in posts -%}
13+
{% include archive-single.html %}
14+
{%- endfor -%}

0 commit comments

Comments
 (0)