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:
parent
21bc463b77
commit
a3a02d92b8
|
|
@ -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},
|
||||||
|
|
|
||||||
|
|
@ -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 %}
|
||||||
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button">HTML</a>
|
{% if entry.html contains '://' %}
|
||||||
|
<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 '://' %}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
Loading…
Reference in New Issue