Skip to content

Commit

Permalink
Støtte for lenker til forsidebilde i ulike filformat (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornreppen authored Mar 26, 2019
1 parent 3baeae8 commit 80dbfae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions steg/15/metabase_bilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ Object.keys(full).forEach(kode => {
const fil = filindeks[node.url]
node.foto = node.foto || {}
if (!fil) return
if (!fil["forside_408.png"]) return
if (kode == "NN-NA") debugger
const forside = fil.find(x => x.filename.indexOf("forside_408") === 0)
if (!forside) return
node.foto.forside = {
url: baseUrl + node.url + "/forside_408.jpg",
url: baseUrl + node.url + "/" + forside.filename,
lisens: "",
opphav: "",
utgiver: ""
Expand Down

0 comments on commit 80dbfae

Please sign in to comment.