xstevenyung / fresh-seo Goto Github PK
View Code? Open in Web Editor NEWThe fastest way โก๏ธ to create sitemap and robots.txt in your Deno Fresh project ๐
License: MIT License
The fastest way โก๏ธ to create sitemap and robots.txt in your Deno Fresh project ๐
License: MIT License
Like the add
function, we should also allow user to exclude specific routes they don't want to index.
Look into Fresh.
It prepares a fixture(a stub Fresh server) to run the plugin and runs a test on that fixture.
I'm not sure if this way is the best practice, but I think it's cool to do some copy.
It's possible to split sitemaps into different file (https://developers.google.com/search/docs/advanced/sitemaps/large-sitemaps) we should have a way to support that using a new class SitemapIndex
At the moment, we rely on each and every routes add
ed or remove
d to include a leading slash which can be confusing in some cases.
We should just allow for either cases.
โ
Created via Raycast
As a developer, I'm well versed with code; less with grammar. Happy to take any feedback on the README.
After running the setup I get errors with the DayJS Import. If I add this to the import map, the issues continue with "fresh/server.ts".
Console:
Task start deno run -A --watch=static/,routes/ dev.ts
Watcher Process started.
The manifest has been generated for 16 routes and 0 islands.
error: Uncaught (in promise) TypeError: Relative import path "dayjs" not prefixed with / or ./ or ../ and not in import map from "https://deno.land/x/[email protected]/src/sitemap.ts"
at https://deno.land/x/[email protected]/src/sitemap.ts:7:17
await import(entrypoint);
^
at async dev (https://deno.land/x/[email protected]/src/dev/mod.ts:187:3)
at async file:///Users/collectedview/Documents/GitHub/collectedview2023/collectedview/dev.ts:5:1
Watcher Process finished. Restarting on file change...
When running the init.ts
script, we assume robots.txt
and pages/sitemap.xml.ts
are not present in the project and override them.
We should ask confirmation to override to the user if there already exists.
Add meta tags to all pages to improve link querying and social links.
Is there a way to remove full paths, like I would like to remove all routes from /api , they don't need to be in the sitemap. So something like sitemap.remove("/api/*");
and the * should include subfolders also. Is there something else I can do to remove them because yea the * part is not working :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.