File tree Expand file tree Collapse file tree
src/App/templates/partial Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {% set page_title = article .title | default (title ) %}
2- {% set author_github = article .author .github | default (author_github ) | default (false ) %}
1+ {% set page_title = article .title | default (title | default ( ' ' ) ) %}
2+ {% set author_github = article .author .github | default (author_github |default (false ) ) %}
33<div class =" wrap" >
44 <div class =" post-hero-v2" >
55 {% if back_href is defined %}
1818 </div >
1919 {% endif %}
2020
21- <h1 >{{ article . title }}</h1 >
21+ <h1 >{{ page_title }}</h1 >
2222
2323 {% if article .author is defined and article .author %}
2424 <div class =" post-meta-v2 mt-3" >
3939 <span class =" meta-item" >
4040 Also on
4141 </span >
42- {% if article . author . github is defined and article . author . github %}
42+ {% if author_github %}
4343 <span class =" meta-item" >
4444 <svg viewBox =" 0 0 24 24" width =" 16" height =" 16" fill =" currentColor" aria-hidden =" true" >
4545 <path d =" M12 .5C5.73.5.5 5.73.5 12c0 5.09 3.29 9.4 7.86 10.93.57.1.79-.25.79-.55 0-.27-.01-1.17-.02-2.12-3.2.7-3.88-1.36-3.88-1.36-.52-1.34-1.28-1.7-1.28-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.8 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.24 2.76.12 3.05.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.42.36.78 1.07.78 2.16 0 1.56-.01 2.82-.01 3.2 0 .31.21.66.8.55A11.5 11.5 0 0 0 23.5 12c0-6.27-5.23-11.5-11.5-11.5z" />
4646 </svg >
47- <a href =" https://github.com/{{ article . author . github }}" target =" _blank" rel =" noopener noreferrer" >{{ article . author . github }}</a >
47+ <a href =" https://github.com/{{ author_github }}" target =" _blank" rel =" noopener noreferrer" >{{ author_github }}</a >
4848 </span >
4949 {% endif %}
5050 </div >
You can’t perform that action at this time.
0 commit comments