Madplan: opdater Mealie-links til https://mealie.anneclaus.dk

This commit is contained in:
2026-05-18 18:22:03 +02:00
parent ff8324af1f
commit 27224a4115
+3 -3
View File
@@ -18,9 +18,9 @@ cards:
[[[
var slug = states['sensor.dagens_aftensmad_slug'].state;
if (slug && slug !== '' && slug !== 'unknown') {
return 'http://anneclaus.dk:9925/g/home/r/' + slug;
return 'https://mealie.anneclaus.dk/g/home/r/' + slug;
}
return 'http://anneclaus.dk:9925';
return 'https://mealie.anneclaus.dk';
]]]
styles:
card:
@@ -86,7 +86,7 @@ cards:
{%- set slug = recipe.slug if recipe else '' -%}
{%- set label = 'I dag' if offset == 0 else days[day.weekday()] -%}
{%- if slug -%}
{%- set ns.rows = ns.rows + "| **" + label + "** | [" + name + "](http://anneclaus.dk:9925/g/home/r/" + slug + ") |\n" -%}
{%- set ns.rows = ns.rows + "| **" + label + "** | [" + name + "](https://mealie.anneclaus.dk/g/home/r/" + slug + ") |\n" -%}
{%- elif name -%}
{%- set ns.rows = ns.rows + "| **" + label + "** | " + name + " |\n" -%}
{%- else -%}