43c9c419c0
Per https://docs.getpelican.com/en/stable/settings.html#feed-settings: FEED_DOMAIN = None, i.e. base URL is "/" The domain prepended to feed URLs. Since feed URLs should always be absolute, it is highly recommended to define this (e.g., “https://feeds.example.com”). If you have already explicitly defined SITEURL (see above) and want to use the same domain for your feeds, you can just set: FEED_DOMAIN = SITEURL. Using `href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}"` in the template seems to be the right way to do things, by looking at other themes, eg the default theme in Pelican itself: https://github.com/getpelican/pelican/blob/master/pelican/themes/simple/templates/base.html Obviously, this change might break things for some users of the theme. If someone used to have this definition in `publishconf.py`: FEED_ALL_ATOM = SITEURL + '/feeds/all.atom.xml' Then they should update to: FEED_DOMAIN = SITEURL FEED_ALL_ATOM = 'feeds/all.atom.xml'
44 lines
1.3 KiB
HTML
44 lines
1.3 KiB
HTML
<div class="sidebar">
|
|
<div class="container sidebar-sticky">
|
|
<div class="sidebar-about">
|
|
|
|
<h1>
|
|
<a href="/">
|
|
<img class="profile-picture" src="{{ SITEURL }}/images/{{ PROFILE_IMAGE }}">
|
|
{{ SITENAME }}
|
|
</a>
|
|
</h1>
|
|
<p class="lead"></p>
|
|
<p class="lead">{{ BIO }} </p>
|
|
<p></p>
|
|
</div>
|
|
<nav class="sidebar-nav">
|
|
{% for name, link in SOCIAL %}
|
|
{% if name == 'email' %}
|
|
<a class="sidebar-nav-item" href="mailto:{{ link }}">
|
|
<i class="fas fa-envelope"></i>
|
|
</a>
|
|
{% elif name in ['academia', 'acclaim', 'acm', 'acmdl', 'ads', 'arxiv',
|
|
'biorxiv', 'ceur', 'coursera', 'cv', 'dataverse',
|
|
'dblp', 'depsy', 'doi', 'dryad', 'figshare',
|
|
'google-scholar', 'ideas-repec', 'ieee', 'impactstory',
|
|
'inspire', 'lattes', 'mathoverflow', 'open-access',
|
|
'osf', 'overleaf', 'philpapers', 'piazza', 'publons',
|
|
'pubmed', 'researcherid', 'scirate', 'semantic-scholar',
|
|
'springer', 'zotero'] %}
|
|
<a class="sidebar-nav-item" href="{{ link }}">
|
|
<i class="ai ai-{{ name }}"></i>
|
|
</a>
|
|
{% else %}
|
|
<a class="sidebar-nav-item" href="{{ link }}">
|
|
<i class="fab fa-{{ name }}"></i>
|
|
</a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<a class="sidebar-nav-item" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">
|
|
<i class="fas fa-rss"></i>
|
|
</a>
|
|
</nav>
|
|
</div>
|
|
</div>
|