Co-authored-by: terraputix <terraputix@mailbox.org> Reviewed-on: useweb/ombrella#6
14 lines
354 B
TypeScript
14 lines
354 B
TypeScript
import { get } from 'svelte/store';
|
|
|
|
import { storedLocation } from '$lib/stores/settings';
|
|
|
|
import type { LayoutLoad } from './$types';
|
|
|
|
export const load: LayoutLoad = async () => {
|
|
const location = get(storedLocation);
|
|
return {
|
|
heroTitle: `14 Day Weather ${location.name}`,
|
|
heroDescription: location.admin1 ?? '' + ' ' + location.country
|
|
};
|
|
};
|