@@ -12,74 +12,73 @@ <h1 class="post-title">{{ page.title | escape }}</h1>
1212
1313 < div class ="post-content ">
1414 < div class ="description "> {{ content }}</ div >
15- {% unless site.partial_build %}
16- < div class ="content ">
17- {% capture filter %}c.authors contains '{{ page.slug }}'{% endcapture %}
18- {% assign contents = site.content | where_exp: "c", filter %}
19- {% capture filter %}c.translator contains " and {{page.slug}}" or c.translator contains "{{page.slug}} and " or c.translator == "{{page.slug}}"{% endcapture %}
20- {% assign transcont = site.content | where_exp: "c", filter | where_exp: "c", "c.status != 'rejected'" | sort: "slug" %}
21- {% capture filter %}c.editor contains " and {{page.slug}}" or c.editor contains "{{page.slug}} and " or c.editor == "{{page.slug}}"{% endcapture %}
22- {% assign editcont = site.content | where_exp: "c", filter %}
23- {% assign readcont = site.content | where: "reader", page.slug %}
15+
16+ < div class ="content ">
17+ {% capture filter %}c.authors contains '{{ page.slug }}'{% endcapture %}
18+ {% assign contents = site.content | where_exp: "c", filter %}
19+ {% capture filter %}c.translator contains " and {{page.slug}}" or c.translator contains "{{page.slug}} and " or c.translator == "{{page.slug}}"{% endcapture %}
20+ {% assign transcont = site.content | where_exp: "c", filter | where_exp: "c", "c.status != 'rejected'" | sort: "slug" %}
21+ {% capture filter %}c.editor contains " and {{page.slug}}" or c.editor contains "{{page.slug}} and " or c.editor == "{{page.slug}}"{% endcapture %}
22+ {% assign editcont = site.content | where_exp: "c", filter %}
23+ {% assign readcont = site.content | where: "reader", page.slug %}
2424
25- {%- assign contents = contents | concat: editcont | concat: readcont | where_exp: "c", "c.status != 'rejected'" -%}
26- {%- assign editcont = editcont | map: "url" -%}
27- {%- assign c_by_year = contents | group_by: "year" | sort: "name" -%}
28- {%- if contents.size > 0 -%}
29- < h2 > Selected Works by year</ h2 >
30- < div >
31- < p >
32- {%- for year in c_by_year -%}
33- < a href ="#{{year.name}} "> {{ year.name }}</ a >
34- {% unless forloop.last %}
35- •
36- {% endunless %}
37- {%- endfor -%}
38- {%- if transcont.size > 0 -%}
39- •
40- < a href ="#translations "> Translations</ a >
41- {%- endif -%}
42- </ p >
25+ {%- assign contents = contents | concat: editcont | concat: readcont | where_exp: "c", "c.status != 'rejected'" -%}
26+ {%- assign editcont = editcont | map: "url" -%}
27+ {%- assign c_by_year = contents | group_by: "year" | sort: "name" -%}
28+ {%- if contents.size > 0 -%}
29+ < h2 > Selected Works by year</ h2 >
30+ < div >
31+ < p >
4332 {%- for year in c_by_year -%}
44- < h3 id ="{{year.name}} "> {{ year.name }}</ h3 >
45- {%- assign year_items = year.items | sort: 'title' -%}
46- < div class ="minimal_content_list ">
47- {% for c in year_items %}
48- < div class ="mb-3 inline_content ">
49- {% case c.stars %}
50- {% when 5 %}
51- < i class ="fas fa-medal "> </ i >
52- {% when 4 %}
53- < i class ="fas fa-star "> </ i >
54- {% endcase %}
55- {%- include_cached content_icon.html category=c.category subcat=c.subcat -%}
56- < a href ="{{c.url}} "> {{ c.title | markdownify | remove: '< p > ' | remove: '</ p > ' }}</ a >
57- {%- if editcont contains c.url -%}(edited){%- endif -%}
58- </ div >
59- {% endfor %}
60- </ div >
33+ < a href ="#{{year.name}} "> {{ year.name }}</ a >
34+ {% unless forloop.last %}
35+ •
36+ {% endunless %}
6137 {%- endfor -%}
62- </ div >
63- {%- endif -%}
64- {% if transcont.size > 0 %}
65- < h3 id ="translations "> Translations by {{ page.title }}:</ h3 >
66- < div class ="minimal_content_list ">
67- {% for c in transcont %}
68- < div class ="mb-3 inline_content ">
69- {% case c.stars %}
70- {% when 5 %}
71- < i class ="fas fa-medal "> </ i >
72- {% when 4 %}
73- < i class ="fas fa-star "> </ i >
74- {% endcase %}
75- {%- include_cached content_icon.html category=c.category subcat=c.subcat -%}
76- < a href ="{{c.url}} "> {{ c.title | markdownify | remove: '< p > ' | remove: '</ p > ' }}</ a >
77- </ div >
78- {% endfor %}
79- </ div >
80- {% endif %}
81- </ div >
82- {% endunless %}
38+ {%- if transcont.size > 0 -%}
39+ •
40+ < a href ="#translations "> Translations</ a >
41+ {%- endif -%}
42+ </ p >
43+ {%- for year in c_by_year -%}
44+ < h3 id ="{{year.name}} "> {{ year.name }}</ h3 >
45+ {%- assign year_items = year.items | sort: 'title' -%}
46+ < div class ="minimal_content_list ">
47+ {% for c in year_items %}
48+ < div class ="mb-3 inline_content ">
49+ {% case c.stars %}
50+ {% when 5 %}
51+ < i class ="fas fa-medal "> </ i >
52+ {% when 4 %}
53+ < i class ="fas fa-star "> </ i >
54+ {% endcase %}
55+ {%- include_cached content_icon.html category=c.category subcat=c.subcat -%}
56+ < a href ="{{c.url}} "> {{ c.title | markdownify | remove: '< p > ' | remove: '</ p > ' }}</ a >
57+ {%- if editcont contains c.url -%}(edited){%- endif -%}
58+ </ div >
59+ {% endfor %}
60+ </ div >
61+ {%- endfor -%}
62+ </ div >
63+ {%- endif -%}
64+ {% if transcont.size > 0 %}
65+ < h3 id ="translations "> Translations by {{ page.title }}:</ h3 >
66+ < div class ="minimal_content_list ">
67+ {% for c in transcont %}
68+ < div class ="mb-3 inline_content ">
69+ {% case c.stars %}
70+ {% when 5 %}
71+ < i class ="fas fa-medal "> </ i >
72+ {% when 4 %}
73+ < i class ="fas fa-star "> </ i >
74+ {% endcase %}
75+ {%- include_cached content_icon.html category=c.category subcat=c.subcat -%}
76+ < a href ="{{c.url}} "> {{ c.title | markdownify | remove: '< p > ' | remove: '</ p > ' }}</ a >
77+ </ div >
78+ {% endfor %}
79+ </ div >
80+ {% endif %}
81+ </ div >
8382 </ div >
8483
8584</ article >
0 commit comments