Merge pull request #91 from ReflectsLight/one_tab

Open surah stream in the same tab
This commit is contained in:
Robert 2023-03-10 08:57:27 -03:00 committed by GitHub
commit 4ed48dce75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -6,6 +6,9 @@ on:
pull_request: pull_request:
branches: [ main ] branches: [ main ]
env:
SASS_PATH: ./src/css/
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -26,6 +29,4 @@ jobs:
- name: Prepare environment - name: Prepare environment
uses: './.github/actions/prepare-env' uses: './.github/actions/prepare-env'
- name: nanoc - name: nanoc
run: run: ruby -S rake build
- source .env.sample
- ruby -S rake build

View file

@ -37,7 +37,7 @@ function SurahIndex({ locale, surahs }: Props) {
<ul className="body index scroll-y"> <ul className="body index scroll-y">
{surahs.map((surah, key) => ( {surahs.map((surah, key) => (
<li className="surah" key={key}> <li className="surah" key={key}>
<a href={`/${locale}/${surah.slug}`} target="_blank" rel="noreferrer"> <a href={`/${locale}/${surah.slug}`}>
<div className="surah id">{surah.id.toLocaleString(locale)}</div> <div className="surah id">{surah.id.toLocaleString(locale)}</div>
<div className="surah name">{surah.localizedName}</div> <div className="surah name">{surah.localizedName}</div>
<div className="surah name transliterated" lang="en">{surah.transliteratedName}</div> <div className="surah name transliterated" lang="en">{surah.transliteratedName}</div>