Added robots.txt

This commit is contained in:
Shiny Nematoda 2023-03-21 15:17:12 +00:00
parent 1cacd02979
commit 9dd4534f83
3 changed files with 5 additions and 4 deletions

View file

@ -29,14 +29,12 @@ const data = reactive({
function get(id) {
if (props.id || typeof id == 'string') {
getJsonHyp('/genres/' + (props.id || id)).then(res => {
for (let i of todo) data[i] = res[i];
useRoute('/explore/' + (props.id || id));
});
} else {
getJsonHyp('/genres').then(res => {
for (let i of todo) data[i] = undefined;
for (let i of ['moods', 'genres']) btns[i] = res[i];
@ -57,7 +55,9 @@ onMounted(get);
<template
v-for="type in ['featured', 'spotlight', 'community']"
:key="type">
<h3 class="head" v-if="data[type].length > 0">{{ t('title.' + type) }}</h3>
<h3 class="head" v-if="data[type].length > 0">
{{ t('title.' + type) }}
</h3>
<div class="grid-3">
<AlbumItem
v-for="i in data[type]"