44< article class ="author ">
55
66 < header class ="post-header ">
7- < div class ="back "> < a href ="/authors/ "> Authors</ a > /</ div >
7+ < div class ="back ">
8+ < a href ="/authors/ "> Authors</ a >
9+ /</ div >
810 < h1 class ="post-title "> {{ page.title | escape }}</ h1 >
911 </ header >
1012
1113 < div class ="post-content ">
12- < div class ="description "> {{ content }}</ div > {% unless site.partial_build %}
13- < div class ="content ">
14- {% capture filter %}c.authors contains '{{ page.slug }}'{% endcapture %}
15- {% assign contents = site.content | where_exp: "c", filter %}
16- {% capture filter %}c.translator contains " and {{page.slug}}" or c.translator contains "{{page.slug}} and " or c.translator == "{{page.slug}}"{% endcapture %}
17- {% assign transcont = site.content | where_exp: "c", filter | where_exp: "c", "c.status != 'rejected'" | sort: "slug" %}
18- {% capture filter %}c.editor contains " and {{page.slug}}" or c.editor contains "{{page.slug}} and " or c.editor == "{{page.slug}}"{% endcapture %}
19- {% assign editcont = site.content | where_exp: "c", filter %}
20- {% assign readcont = site.content | where: "reader", page.slug %}
21-
22- {%- assign contents = contents | concat: editcont | concat: readcont | where_exp: "c", "c.status != 'rejected'" -%}
23- {%- assign editcont = editcont | map: "url" -%}
24- {%- assign c_by_year = contents | group_by: "year" | sort: "name" -%}
25- < h2 > Selected Works by year</ h2 >
26- < div >
27- < p > {%- for year in c_by_year -%}< a href ="#{{year.name}} "> {{year.name}}</ a > {% unless forloop.last %} • {% endunless %}{%- endfor -%}</ p >
28- {%- if transcont.size > 0 -%}
29- < p > < a href ="#translations "> Click here</ a > to see {{ page.title }}'s translations.</ p >
30- {%- endif -%}
31- {%- for year in c_by_year -%}
32- < h3 id ="{{year.name}} "> {{year.name}}</ h3 >
33- {%- assign year_items = year.items | sort: 'title' -%}
34- < div class ="minimal_content_list ">
35- {% for c in year_items %}< div class ="mb-3 inline_content ">
36- {% case c.stars %}{% when 5 %}< i class ="fas fa-medal "> </ i > {% when 4 %}< i class ="fas fa-star "> </ i > {% endcase %}{%- include_cached content_icon.html category=c.category subcat=c.subcat -%}
37- < a href ="{{c.url}} "> {{ c.title | markdownify | remove: '< p > ' | remove: '</ p > ' }}</ a >
38- {%- if editcont contains c.url -%}(edited){%- endif -%}
39- </ div > {% endfor %}
40- </ div >
41- {%- endfor -%}
42- </ div >
43- {% if transcont.size > 0 %}
44- < h3 id ="translations "> Translations by {{ page.title }}:</ h3 >
45- < div class ="minimal_content_list ">
46- {% for c in transcont %}< div class ="mb-3 inline_content ">
47- {% case c.stars %}{% when 5 %}< i class ="fas fa-medal "> </ i > {% when 4 %}< i class ="fas fa-star "> </ i > {% endcase %}{%- include_cached content_icon.html category=c.category subcat=c.subcat -%}
48- < a href ="{{c.url}} "> {{ c.title | markdownify | remove: '< p > ' | remove: '</ p > ' }}</ a >
49- </ div > {% endfor %}
50- </ div >
51- {% endif %}
52- </ div > {% endunless %}
14+ < 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 %}
24+
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 >
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 >
82+ {% endunless %}
5383 </ div >
5484
55- </ article >
85+ </ article >
0 commit comments