Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dccf2e8

Browse files
committed
Renamed Mastodon API feed URL
1 parent 7d7ca56 commit dccf2e8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ venueFeatures: ["3 huge cinema screens", "Doulby Digital Surround EX audio syste
100100
tootsFeedImage: "mastodon-feed.jpg"
101101
tootsFeedTitle: "What's Up?"
102102
mastodonHashTag: "MenderCon2025"
103-
mastodonFeedUrl: "https://toot.legacycode.rocks/api/v1/timelines/tag/MenderCon2025"
103+
mastodonFeedApiUrl: "https://toot.legacycode.rocks/api/v1/timelines/tag/MenderCon2025"
104104

105105
# Partners Block
106106
organizersTitle: "Organizers"

_includes/mastodon-feed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<use xlink:href="{{ site.baseurl }}/img/sprites/sprites.svg#icon-mastodon"></use>
99
</svg>
1010
</a>
11-
<h3>{{ site.tootsFeedTitle }} <a href="{{ site.mastodonFeedUrl }}" target="_blank">#{{ site.mastodonHashTag }}</a>
11+
<h3>{{ site.tootsFeedTitle }} <a href="{{ site.mastodonFeedApiUrl }}" target="_blank">#{{ site.mastodonHashTag }}</a>
1212
</h3>
1313
<div id="toots" class="toots"></div>
1414
</div>

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<script>
4949
Waves.displayEffect();
5050
{% if page.permalink == '/' %}
51-
var mastodonFeedUrl = '{{ site.mastodonFeedUrl }}';
51+
var mastodonFeedApiUrl = '{{ site.mastodonFeedApiUrl }}';
5252
$(document).ready(function () {
5353
$(function () {
5454
if ($(window).width() > 767) {

js/scripts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@
228228
location.hash = $(this).attr('id');
229229
});
230230

231-
if (typeof mastodonFeedUrl !== 'undefined') {
232-
$.getJSON(mastodonFeedUrl, function(data) {
231+
if (typeof mastodonFeedApiUrl !== 'undefined') {
232+
$.getJSON(mastodonFeedApiUrl, function(data) {
233233
$.each(data, function(i, gist) {
234234
var tootDate = new Date(gist.created_at);
235235
var formattedTootDate = new Intl.DateTimeFormat('en-US', { dateStyle: 'full', timeStyle: 'long', timeZone: 'America/New_York' }).format(tootDate);

0 commit comments

Comments
 (0)