initial commit
This commit is contained in:
13
src/pages/index.astro
Normal file
13
src/pages/index.astro
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
import Base from "../layouts/Base.astro";
|
||||
import Root from "../components/AppLayout.jsx";
|
||||
import LyricSearch from '../components/LyricSearch.jsx';
|
||||
---
|
||||
|
||||
<Base>
|
||||
<section>
|
||||
<div class="prose prose-neutral dark:prose-invert">
|
||||
<Root child="LyricSearch" client:only="react" />
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
16
src/pages/radio.astro
Normal file
16
src/pages/radio.astro
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
import Base from "../layouts/Base.astro";
|
||||
import Root from "../components/AppLayout.jsx";
|
||||
import "@styles/player.css";
|
||||
---
|
||||
|
||||
<Base>
|
||||
<section>
|
||||
<div class="prose prose-neutral dark:prose-invert">
|
||||
<Root child="Player" client:only="react">
|
||||
</Root>
|
||||
<script is:inline src="/scripts/jquery/dist/jquery.js" />
|
||||
<script is:inline src="/scripts/howler/dist/howler.js" />
|
||||
<script is:inline src="/scripts/player.js" />
|
||||
</section>
|
||||
</Base>
|
11
src/pages/robots.txt.js
Normal file
11
src/pages/robots.txt.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const getRobotsTxt = (sitemapURL) => `
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: ${sitemapURL.href}
|
||||
`;
|
||||
|
||||
export const GET = ({ site }) => {
|
||||
const sitemapURL = new URL("sitemap-index.xml", site);
|
||||
return new Response(getRobotsTxt(sitemapURL));
|
||||
};
|
Reference in New Issue
Block a user