themes: allow url field for PublicationEntry (#105)

This commit is contained in:
Sina Atalay 2024-06-05 00:58:24 +03:00
parent 7525462e43
commit f3acaed95b
5 changed files with 15 additions and 9 deletions

View File

@ -21,12 +21,14 @@
((* endif *))
((* if entry.doi -*))
\href{<<entry.doi_url>>}{<<entry.doi>>}
((* elif entry.url -*))
\href{<<entry.url>>}{<<entry.clean_url>>}
((*- endif -*))
((*- if entry.doi and entry.journal *)) (((* endif -*))
((*- if (entry.doi or entry.url) and entry.journal *)) (((* endif -*))
((*- if entry.journal -*))
<<entry.journal>>
((*- endif -*))
((*- if entry.doi and entry.journal *)))((* endif *))
((*- if (entry.doi or entry.url) and entry.journal *)))((* endif *))
((* if entry.date_string *))
\end{twocolentry}
((* else *))

View File

@ -26,11 +26,13 @@
((* if entry.doi -*))
\href{<<entry.doi_url>>}{<<entry.doi>>}
((* elif entry.url -*))
\href{<<entry.url>>}{<<entry.clean_url>>}
((*- endif -*))
((*- if entry.doi and entry.journal *)) (((* endif -*))
((*- if (entry.doi or entry.url) and entry.journal *)) (((* endif -*))
((*- if entry.journal -*))
<<entry.journal>>
((*- endif -*))
((*- if entry.doi and entry.journal *)))((* endif -*))
((*- if (entry.doi or entry.url) and entry.journal *)))((* endif -*))
\end{onecolentry}
\end{samepage}

View File

@ -1,9 +1,9 @@
## <<entry.title>> ((* if entry.doi != "" *))([<<entry.doi>>](<<entry.doi_url>>))((* endif *))
## <<entry.title>> ((* if entry.doi *))([<<entry.doi>>](<<entry.doi_url>>))((* elif entry.url *))([<<entry.url>>](<<entry.clean_url>>))((* endif *))
((* if entry.date_string *))
- <<entry.date_string>>
((* endif *))
- <<entry.authors|join(", ")>>
((* if entry.journal != "" *))
((* if entry.journal *))
- <<entry.journal>>
((* endif *))

View File

@ -3,6 +3,6 @@
}{\textbf{<<entry.title>>}}{
<<-entry.journal->>
}{
((*- if entry.doi -*))\href{<<entry.doi_url>>}{<<entry.doi>>}((*- endif -*))
((*- if entry.doi -*))\href{<<entry.doi_url>>}{<<entry.doi>>}((* elif entry.url *))\href{<<entry.url>>}{<<entry.clean_url>>}((*- endif -*))
}{}{}
\cvline{}{\small <<entry.authors|map("make_it_nolinebreak")|join(", ")>>}

View File

@ -29,12 +29,14 @@
((* endif *))
((* if entry.doi -*))
\href{<<entry.doi_url>>}{<<entry.doi>>}
((* elif entry.url -*))
\href{<<entry.url>>}{<<entry.clean_url>>}
((*- endif -*))
((*- if entry.doi and entry.journal *)) (((* endif -*))
((*- if (entry.doi or entry.url) and entry.journal *)) (((* endif -*))
((*- if entry.journal -*))
<<entry.journal>>
((*- endif -*))
((*- if entry.doi and entry.journal *)))((* endif -*))
((*- if (entry.doi or entry.url) and entry.journal *)))((* endif -*))
((* if entry.doi or entry.journal *))
\end{onecolentry}
((* endif *))