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

How to add a customised button? #28

Closed
xlwang233 opened this issue Nov 15, 2024 · 3 comments
Closed

How to add a customised button? #28

xlwang233 opened this issue Nov 15, 2024 · 3 comments

Comments

@xlwang233
Copy link

Hi Yaoyao,

Thank you very much for making and maintaining this template. I would like to add customised button similar to the existing ones (pdf, code, etc.) but with a different name, e.g., abstract, link, etc. I would appreciate it if you can provide some guidance. Thanks!

@yaoyao-liu
Copy link
Owner

Thanks for your interest in our project. And I am sorry for the late reply. You may add new buttons by editing the following code:

<div class="links">
{% if link.pdf %}
<a href="{{ link.pdf }}" class="btn btn-sm z-depth-0" role="button" target="_blank" style="font-size:12px;">PDF</a>
{% endif %}
{% if link.code %}
<a href="{{ link.code }}" class="btn btn-sm z-depth-0" role="button" target="_blank" style="font-size:12px;">Code</a>
{% endif %}
{% if link.page %}
<a href="{{ link.page }}" class="btn btn-sm z-depth-0" role="button" target="_blank" style="font-size:12px;">Project Page</a>
{% endif %}
{% if link.bibtex %}
<a href="{{ link.bibtex }}" class="btn btn-sm z-depth-0" role="button" target="_blank" style="font-size:12px;">BibTex</a>
{% endif %}
{% if link.notes %}
<strong> <i style="color:#e74d3c">{{ link.notes }}</i></strong>
{% endif %}
{% if link.others %}
{{ link.others }}
{% endif %}
</div>

If there is anything else that I can help with, please feel free to let me know.

@xlwang233
Copy link
Author

Hi Yaoyao,

Sorry for the late response. I've managed to add my customised buttons. Thanks a lot! Wishing you all the best!

@xlwang233
Copy link
Author

Issue resolved.

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

No branches or pull requests

2 participants