diff --git a/_includes/mastodon_feed.html b/_includes/mastodon_feed.html new file mode 100644 index 0000000000..7caad34136 --- /dev/null +++ b/_includes/mastodon_feed.html @@ -0,0 +1,9 @@ +{% assign mastodon_account = include.account %} +{% assign mastodon_label = include.label | default: page.conference %} +{% assign mastodon_post_limit = include.post_limit | default: 2 %} + +
+ +See all Mastodon posts for {{ mastodon_label }} diff --git a/_includes/mastodon_head.html b/_includes/mastodon_head.html new file mode 100644 index 0000000000..05430a824d --- /dev/null +++ b/_includes/mastodon_head.html @@ -0,0 +1,2 @@ + + diff --git a/_layouts/conference.html b/_layouts/conference.html index b57c72b001..1865c52fd4 100644 --- a/_layouts/conference.html +++ b/_layouts/conference.html @@ -39,57 +39,7 @@ } {% if page.mastodon %} - - - {% elsif page.twitter %} - + {% include mastodon_head.html %} {% endif %} @@ -135,138 +85,132 @@