Skip to content

Commit

Permalink
html: put target=_blank on concert links
Browse files Browse the repository at this point in the history
everything should have them bc this page can be shown in an iframe, and
we want the link to open in a new tab and not within the iframe
  • Loading branch information
alxndr committed Jan 31, 2024
1 parent 4602975 commit 408038e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/month-day.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function MonthDay({data, pageContext: {month, day}}) {
year: show_year,
className: 'concert',
content: <>
<a href={`https://kglw.net/setlists/${permalink}?src=kglw.today&campaign=${month < 10 ? `0${month}` : month}-${day < 10 ? `0${day}` : day}`}>{show_year} {theDayShort} @ {venuename}, {city}, {country}</a>
<a href={`https://kglw.net/setlists/${permalink}?src=kglw.today&campaign=${month < 10 ? `0${month}` : month}-${day < 10 ? `0${day}` : day}`} target="_blank" rel="noopener">{show_year} {theDayShort} @ {venuename}, {city}, {country}</a>
{notes && <span className="layout-monthday--entry--note" title={notes}>📝</span>}
</>
}})
Expand All @@ -67,7 +67,7 @@ export default function MonthDay({data, pageContext: {month, day}}) {
{year} {theDayShort}:
&nbsp;
{url
? <a href={url} target="_blank" rel="noreferrer">{entry}</a>
? <a href={url} target="_blank" rel="noopener">{entry}</a>
: entry
} released {note && <span className="layout-monthday--entry--note" title={note}>📝</span>}
</>
Expand Down

0 comments on commit 408038e

Please sign in to comment.