diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index a24638d..46ffd99 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -347,7 +347,7 @@ def publish(args): with open(viewer_dir / 'index.html', 'w') as f: f.write(viewer_template.render(depth=3, work=work, title=title, images=images)) - def make_categorization(categorization, query, work_filter): + def make_categorization(categorization, query, work_filter, work_style_cards=False): categorization_dir = args.destdir / 'site' / categorization cats = [cat for (cat,) in cur.execute(query)] @@ -374,6 +374,7 @@ def publish(args): categorization=categorization, categories=cats, samples=cat_samples, + work_style_cards=work_style_cards, )) make_categorization( @@ -395,6 +396,7 @@ def publish(args): 'series', 'SELECT DISTINCT series FROM works WHERE series NOT NULL ORDER BY series', lambda series: lambda work: work['series'] == series, + work_style_cards=True, ) with resources.as_file(resources.files("dlibrary")) as r: diff --git a/dlibrary/templates/categorization.html b/dlibrary/templates/categorization.html index 3a5a3ac..3a0519c 100644 --- a/dlibrary/templates/categorization.html +++ b/dlibrary/templates/categorization.html @@ -6,7 +6,7 @@ {% include 'nav.html' %}
{% for cat in categories %} -
+