gndx / ev0-astro-theme Goto Github PK
View Code? Open in Web Editor NEWEV0 Astro Theme is a free and open-source serverless blog template, built with Astro, Tailwind CSS, and TypeScript.
Home Page: https://ev0.gndx.dev
License: MIT License
EV0 Astro Theme is a free and open-source serverless blog template, built with Astro, Tailwind CSS, and TypeScript.
Home Page: https://ev0.gndx.dev
License: MIT License
Hello, I found the blog framework you wrote is very nice, so I used it to learn and change it to my favorite style, and then I found a situation that there would be a lot of repeats in the tag page, and then I asked the ai , ai gave a solution. Now replacing the function with this will solve the duplication problem
I don't know how to apply submit code without using github I am not a professional programmer and only know a little html and css so here is the question
export const getTaxonomy = async (collection: string, name: string) => {
const singlePages = await getCollection(collection);
const taxonomyPages = singlePages.map((page) => page.data[name]);
let taxonomies = [];
for (let i = 0; i < taxonomyPages.length; i++) {
const categoryArray = taxonomyPages[i];
for (let j = 0; j < categoryArray.length; j++) {
const newTaxonomy = {
name: categoryArray[j],
slug: slugify(categoryArray[j]),
};
if (!taxonomies.find(taxonomy => taxonomy.name === newTaxonomy.name && taxonomy.slug === newTaxonomy.slug)) {
taxonomies.push(newTaxonomy);
}
}
}
return taxonomies;
};
I have a suggestion on Static Page Search
Hello, I have an issue on the code blocks and so does the theme preview at this URL: https://ev0.gndx.dev/blog/markdown-style-guide/
Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
The error comes from the Code.astro
file, the variable button
and check
are null
:
codeBlock.forEach((code) => {
const button = code.querySelector(".copy-button");
const check = code.querySelector(".check-span");
It looks like the component expect the button to be there, but for some reason in the HTML the code block actually looks like
<pre class="astro-code material-theme-palenight" style="background-color:#292D3E;color:#babed8; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word;" tabindex="0">
<!-- ... contents ... -->
</pre>
I have no idea where this HTML comes from as I cannot find any reference to the class astro-code
in the codebase.
Currently the URLs of tags and categories contain spaces, this may not be SEO friendly.
I created 2 posts with same category. When i open category page, i see duplicate categories. I was fix this code and running successfuly without duplicate data. Can i pull this bugs? Thanks
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.