Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footer with references disappearing in distill blog posts when removing author and afiiliation bar #164

Closed
3 tasks done
LoryPack opened this issue Jan 2, 2021 · 4 comments · Fixed by #1804
Closed
3 tasks done

Comments

@LoryPack
Copy link

LoryPack commented Jan 2, 2021

Acknowledge the following

  • I carefully read and followed the Getting Started guide.
  • I read through FAQ and searched through the past issues, none of which addressed my issue.
  • The issue I am raising is a potential bug in al-folio and not just a usage question.
    [For usage questions, please use gitter chat instead of raising an issue.]

Describe the bug
Hi, thanks so much for providing such a beautiful theme. I am having some troubles with the distill post format. I want to write a blog post with that (rather than with the "post" layout) in order to exploit the bibliographic capabilities. However, I would like to remove the authors bar on the top, which appears immediately below the title (see the example https://alshedivat.github.io/al-folio/blog/2018/distill/). I am able to remove that in two ways:

  1. by removing the line

    <d-byline></d-byline>

  2. by removing

    "title": "{{ page.title }}",
    "description": "{{ page.description }}",
    "published": "{{ page.date }}",
    "authors": [
    {% for author in page.authors %}
    {
    "author": "{{ author.name }}",
    "authorURL": "{{ author.url }}",
    "affiliations": [
    {
    "name": "{{ author.affiliations.name }}",
    "url": "{{ author.affiliations.url }}"
    }
    ]
    }{% if forloop.last == false %},{% endif %}
    {% endfor %}
    ],

Both of them however have the side effect of removing also the footer were references and footnotes are supposed to appear.

To Reproduce
Update the distill.html file as described above. I have done it in my fork here and here for the two above options, which yield the webpages which you can see here and here.

Expected behavior
I expected the author and affiliation bar to disappear, but the footer with references to remain there.

System (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Firefox 84.0, Chrome 81.0.4044.122
  • Jekyll version: 3.9.0
  • Ruby version: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
@stale
Copy link

stale bot commented Mar 14, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 14, 2021
@stale stale bot closed this as completed Mar 21, 2021
@YifanJiang233
Copy link
Contributor

I also came across the same problem. A quick solution is to comment out the following two lines:

  1. byline = dom.createElement('d-byline');
  2. <d-byline></d-byline>

@LoryPack
Copy link
Author

LoryPack commented Oct 3, 2023

That does not work for me

@YifanJiang233
Copy link
Contributor

It does work for me and for the original template as well, see #1804. Could you check your .bib file or template.v2.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants