File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ from django .conf import settings
2
+
3
+
4
+ def mastodon_link (request ):
5
+ return {'MASTODON_LINK' : getattr (settings , "MASTODON_LINK" , "" )}
Original file line number Diff line number Diff line change 225
225
TIER0_MIRROR_DOMAIN = 'repos.archlinux.org'
226
226
# TIER0_MIRROR_SECRET = ''
227
227
228
+ # Mastodon link to profile
229
+ MASTODON_LINK = ''
230
+
228
231
# Import local settings
229
232
try :
230
233
from local_settings import * # noqa
246
249
'django.template.context_processors.debug' ,
247
250
'django.contrib.messages.context_processors.messages' ,
248
251
'csp.context_processors.nonce' ,
252
+ 'main.context_processors.mastodon_link' ,
249
253
],
250
254
}
251
255
}
Original file line number Diff line number Diff line change 6
6
< link rel ="alternate " type ="application/rss+xml " title ="Arch Linux News Updates " href ="/feeds/news/ " />
7
7
< link rel ="alternate " type ="application/rss+xml " title ="Arch Linux Package Updates " href ="/feeds/packages/ " />
8
8
< script type ="text/javascript " src ="{% static "homepage.js " %}" defer> </ script >
9
+ {% if MASTODON_LINK %}< link rel ="me " href ="{{MASTODON_LINK}} " title ="Arch Linux Mastodon " /> {% endif %}
9
10
{% endblock %}
10
11
11
12
{% block content_left %}
You can’t perform that action at this time.
0 commit comments