Add option for local HTML files (#2245)

Add option to link HTML local files from publications page.

---------

Co-authored-by: Jake Nabasny <jake@nabasny.com>
This commit is contained in:
Jake Nabasny, PhD 2024-03-04 12:04:52 -05:00 committed by GitHub
parent 21bc463b77
commit a3a02d92b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 23 additions and 1 deletions

View File

@ -3,6 +3,14 @@
@string{aps = {American Physical Society,}} @string{aps = {American Physical Society,}}
@book{einstein1920relativity,
title={Relativity: the Special and General Theory},
author={Einstein, Albert},
year={1920},
publisher={Methuen & Co Ltd},
html={relativity.html}
}
@book{einstein1956investigations, @book{einstein1956investigations,
bibtex_show={true}, bibtex_show={true},
title={Investigations on the Theory of the Brownian Movement}, title={Investigations on the Theory of the Brownian Movement},

View File

@ -166,7 +166,11 @@
<a class="bibtex btn btn-sm z-depth-0" role="button">Bib</a> <a class="bibtex btn btn-sm z-depth-0" role="button">Bib</a>
{% endif %} {% endif %}
{% if entry.html %} {% if entry.html %}
{% if entry.html contains '://' %}
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button">HTML</a> <a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button">HTML</a>
{% else %}
<a href="{{ entry.html | prepend: '/assets/html/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">HTML</a>
{% endif %}
{% endif %} {% endif %}
{% if entry.pdf %} {% if entry.pdf %}
{% if entry.pdf contains '://' %} {% if entry.pdf contains '://' %}

View File

@ -0,0 +1,10 @@
<html>
<body>
<center>
<h2>Relativity: the Special and General Theory</h2>
<h5>Albert Einstein</h5>
<br />
Insert HTML document here.
</center>
</body>
</html>