1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

fix: correct the twitter:creator of Twitter summary card

This commit is contained in:
Cotes Chung
2022-03-17 00:29:00 +08:00
parent 67d51d5df2
commit 96a16c868e
2 changed files with 20 additions and 3 deletions

View File

@@ -37,11 +37,11 @@ tail_includes:
<!-- author -->
<div>
{% capture author_name %}{{ page.author.name | default: site.social.name }}{% endcapture %}
{% capture author_name %}{{ site.data.authors[page.author].name | default: site.social.name }}{% endcapture %}
{% assign author_link = nil %}
{% if page.author.link %}
{% assign author_link = page.author.link %}
{% if page.author %}
{% assign author_link = site.data.authors[page.author].url %}
{% elsif author_name == site.social.name %}
{% assign author_link = site.social.links[0] %}
{% endif %}