bahnzumberg / zuugle-suchseite

Public repository for www.zuugle.at
https://www.zuugle.at
GNU General Public License v3.0
6 stars 11 forks source link

Migrate from React to Next.js #471

Open martinheppner opened 2 months ago

martinheppner commented 2 months ago

First goal: Migrate https://github.com/bahnzumberg/zuugle-suchseite/tree/uat from React to Next.js.

Second goal:

DetailReworked.js

(!!tour && validTour && !!tour.canonical && tour.canonical.length > 0)  && tour.canonical.map((entry)=>{
    if (entry.canonical_yn === 'y'){
      return <link rel="canonical" href={`https://${entry.zuugle_url}`} hreflang={`${entry.href_lang}`}/>
    }else{
      return <link rel="alternate" href={`https://${entry.zuugle_url}`} hreflang={`${entry.href_lang}`}/>
    }

  })