Giter Site home page Giter Site logo

Comments (6)

rhuddlestone avatar rhuddlestone commented on May 10, 2024 1

Hi @prototypa

That fixed it. Everything working perfectly now.

I tried sending you some money but the buy me a coffee page won't accept my card. Do you have Paypal?

Great work

from astrowind.

rhuddlestone avatar rhuddlestone commented on May 10, 2024 1

Hi @prototypa

Thanks for the kind words.

Everything is working great now. I am using astrowind for an info blog on WordPress, and I moved it due to the cost os hosting on WordPress and all the bloat.

My load times have gone from >3secs (with expensive hosting) to <400msecs (with free hosting on CloudFlare pages).

I have found these issues via Google Search Console and Ahrefs crawl reports.

As for new features, the two main things are already on your roadmap.

Create component or utilities for latest posts
Create component or utilities for related posts

I also see a merge for social share buttons that will be very nice.

Keep up the great work.

from astrowind.

rhuddlestone avatar rhuddlestone commented on May 10, 2024

Hi

I took a look in the permalinks.js file and made a change.

const createPath = (...params) => '/' + params.filter((el) => !!el).join('/') + '/'; (Added the + '/') at the end of the function.

This works fine in DEV mode, but when I try to build I get

generating static routes
▶ src/pages/index.astro
error Invalid URL

Thanks

Rob

from astrowind.

prototypa avatar prototypa commented on May 10, 2024

Hi @rhuddlestone

Thanks again for the valuable feedback. That of the trailing slash is something that I had in mind at some point to develop and had not had the opportunity.

I have made a commit (fa973ce) with some changes and I have added a new configuration that allows you to decide whether or not you want to add the slash at the end of the urls.

https://github.com/onwidget/astrowind/blob/main/src/config.mjs#L6

export const SITE = {
  // (...)

  trailingSlash: false,

  // (...)
};

Please try it with the value true and tell me how it works. Thanks.

from astrowind.

prototypa avatar prototypa commented on May 10, 2024

Hi @rhuddlestone

Again, thank you very much. You look at very interesting details.

I've already made a fix (e50a566) for pagination to work properly with trailing slash. In case you change the configuration and it doesn't work for you, try to refresh the server (because an astro configuration is referenced from that of the theme)

And don't worry about the rest, the most help is all the feedback you give, that's priceless.

By the way, if you can think of several sections or components or functionalities that you think the theme should have to allow easier the development of a website, please, do not hesitate to open a discussion topic. It would be very helpful, thank you.

from astrowind.

prototypa avatar prototypa commented on May 10, 2024

Hi @rhuddlestone

In 2d0687d we add a new LatestPosts.astro widget

https://github.com/onwidget/astrowind/blob/main/src/components/blog/LatestPosts.astro

from astrowind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.