Skip to content

Commit

Permalink
Links now open in new tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-marques committed Sep 8, 2024
1 parent efd4720 commit d4d1cb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ smart_punctuation = true
[extra]
favicon = false
large_card = true
footer_text = "This website is built using [Zola](https://www.getzola.org) and the [Academic Paper](http://github.com/aterenin/academic-paper/) theme, which is [designed to last](https://jeffhuang.com/designed_to_last/)."
footer_text = "This website is built using <a href='https://www.getzola.org' target='_blank'>Zola</a> and the <a href='http://github.com/aterenin/academic-paper/' target='_blank'>Academic Paper</a> theme, which is <a href='https://jeffhuang.com/designed_to_last/' target='_blank'>designed to last</a>."
server_side_katex = true
6 changes: 3 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 itemprop="name headline">{{ this.title }}</h1>
<h2>
<span itemprop="author">
{% for author in this.extra.authors %}
<a href="{{ author.url | default(value = this.path ~ '#') | safe }}">
<a href="{{ author.url | default(value = this.path ~ '#') | safe }}" target="_blank">
{{- author.name -}}
</a>
{%- if not loop.last -%}
Expand All @@ -34,7 +34,7 @@ <h2>
{% endif %}
<div>
{% for button in this.extra.buttons %}
<a class="btn" href="{{ button.url | safe }}">
<a class="btn" href="{{ button.url | safe }}" target="_blank">
{% if not button.no_icon %}
{{- icons::icon(name = button.name | lower) -}}
&nbsp;
Expand All @@ -45,7 +45,7 @@ <h2>
</div>
<h2>
{% set paper_button = this.extra.buttons | filter(attribute = 'name', value = 'Paper') | first %}
<a href="{{ this.extra.venue.url | default(value = paper_button.url | default(value = this.path ~ '#')) | safe }}">
<a href="{{ this.extra.venue.url | default(value = paper_button.url | default(value = this.path ~ '#')) | safe }}" target="_blank">
<span itemprop="isPartOf" itemscope itemtype="http://schema.org/Periodical"><span itemprop="name" style="white-space: normal;">
{{- this.extra.venue.name -}}
</span></span>{% if this.extra.venue.date or this.date %}&nbsp;<time datetime="{{ this.extra.venue.date | default(value = this.date) | date(format='%+') }}" itemprop="datePublished">
Expand Down

0 comments on commit d4d1cb0

Please sign in to comment.