|
94 | 94 | {% endif %} |
95 | 95 | "datePublished": "{{ date | dateToRfc3339 }}", |
96 | 96 | "dateModified": "{{ (lastUpdated or date) | dateToRfc3339 }}", |
| 97 | + {% if author %} |
97 | 98 | "author": { |
98 | 99 | "@type": "Person", |
99 | | - "name": "{{ authors }}", |
100 | | - "url": "https://flowfuse.com/about/#{{ authors }}" |
| 100 | + "@id": "https://flowfuse.com/about/#{{ authorSlug }}", |
| 101 | + "name": "{{ author.name }}", |
| 102 | + {% if author.title %}"jobTitle": "{{ author.title }}",{% endif %} |
| 103 | + "url": "https://flowfuse.com/about/#{{ authorSlug }}", |
| 104 | + {% if author.headshot %}"image": "https://flowfuse.com/images/team/headshot-{{ author.headshot | replace('.png','') | replace('.jpg','') | replace('.jpeg','') }}.png",{% endif %} |
| 105 | + {% if author.bio %}"description": {{ author.bio | dump | safe }},{% endif %} |
| 106 | + {% if author.knowsAbout %}"knowsAbout": {{ author.knowsAbout | dump | safe }},{% endif %} |
| 107 | + "worksFor": { "@id": "https://flowfuse.com/#organization" }, |
| 108 | + "sameAs": [ |
| 109 | + {% set socials = [] %} |
| 110 | + {% if author.linkedin %}{% set socials = (socials.push("https://www.linkedin.com/in/" + author.linkedin), socials) %}{% endif %} |
| 111 | + {% if author.github %}{% set socials = (socials.push("https://github.com/" + author.github), socials) %}{% endif %} |
| 112 | + {% if author.twitter %}{% set socials = (socials.push("https://twitter.com/" + author.twitter), socials) %}{% endif %} |
| 113 | + {% for url in socials %}"{{ url }}"{% if not loop.last %},{% endif %}{% endfor %} |
| 114 | + ] |
101 | 115 | }, |
| 116 | + {% else %} |
| 117 | + "author": { "@id": "https://flowfuse.com/#organization" }, |
| 118 | + {% endif %} |
102 | 119 | "publisher": { |
103 | 120 | "@id": "https://flowfuse.com/#organization" |
104 | 121 | } |
|
0 commit comments