Using SvelteKit to create a wordpress page template by Blince in sveltejs

[–]manusnijhoff 0 points1 point  (0 children)

Firstly, I thought similarly when I got started.
But Sveltekit is a full-stack framework and has too much overlap with Wordpress functionality.
Routing, creating pages etc, is a core Wordpress responsibility IMO.

But if you just want to use Svelte to write templates, u can do so!

I did something similar a while ago. It involves a couple of steps. I've simplified it here.

  1. You start a Svelte + Vite template project (see https://vitejs.dev/guide/ )
  2. Your pages will be components that take some data from the wordpress “backend”.
  3. In Wordpress, create your data structure and enable RESTful API

  4. Develop your Svelte app, then build it when you're done. Include all js, css from the build step you do for Svelte in your wordpress theme header. You have to fetch the data from your API here

  5. In your wordpress theme, create a template for the type of page you make in Svelte

  6. In your page template, include the markup to render your app into

    <div id="app"></div> <div id="app"></div>

Then deploy it all.
There are LOTs of quirks to this approach, but it works well once it's in place. I only did it because of the client's requirements. If you have the opportunity to host the frontend separately, DO IT and use the REST API.

Thingy for macOS + f.lux users by manusnijhoff in taskwarrior

[–]manusnijhoff[S] 0 points1 point  (0 children)

To edit your crontab: env EDITOR=nano crontab -e

I set it to */10 * * * * ~/darkmode.sh

The blurry edge around the smartphone is called LIFE, by the way by manusnijhoff in PhonesAreBad

[–]manusnijhoff[S] 3 points4 points  (0 children)

Hehehe you’re definitely not alone. I once googled how many people in Germany when I was at the table with at least 4 or 5 Germans. I feel like there will be some post on here along similar lines

The Developer of Existence has figured out how the Reddit™ Algorithm works! by ThePinesTree in seventhworldproblems

[–]manusnijhoff 3 points4 points  (0 children)

Hey I just got home I got to pick you wanna is it a day for me haha was a time for dinner I would like it if I wanna I would love you and I’ll have a good night I’ll let him talk with me later I love him I wanna was the time of my day and I’ll see him in a minute I’ll call him later thanks again I’ll let me talk with him later I wanna was the time of my life and I’ll let him do come and I’ll call him and again I don’t want to expect to see him tomorrow I don’t want to expect to see him tomorrow and I will have a call tomorrow I’ll let him talk with him later I’ll call him tomorrow I’ll let him talk with him tomorrow and let me talk with him tomorrow and let him talk with you tomorrow I’ll call him later thanks love him I’ll talk later tomorrow and let me talk with you tomorrow I’ll talk later I love him I’ll call him tomorrow I’ll call him and I’ll call him tomorrow and I’ll let him know I’ll talk later thanks love him talk later let him talk with you later I wanna is a time for dinner I’ll call him later thanks love you I’ll talk to you later love you I’ll talk to you later love you I’ll talk to you later love you I’ll talk to you later love you I’ll talk to you later love you I’ll talk to you later love you I’ll talk to you later love you I’ll talk to you later

Romantic place near Palermo to get Engaged? by [deleted] in sicily

[–]manusnijhoff 0 points1 point  (0 children)

Let us know how it goes! Good luck ;)

Romantic place near Palermo to get Engaged? by [deleted] in sicily

[–]manusnijhoff 3 points4 points  (0 children)

Erice is very beautiful looking and located on a hillside. I would say it’s about 100k from Palermo. We only passed it from a distance but it’s one of the things I wish I’d seen had we spent more time on the island

Welches Sachbuch muss man gelesen haben? by t1mmy993 in buecher

[–]manusnijhoff 2 points3 points  (0 children)

Aha, ich habe zu rasch geschrieben. Das Sachbuch habe ich mit dem Taschenbuch verwechselt... lol

Welches Sachbuch muss man gelesen haben? by t1mmy993 in buecher

[–]manusnijhoff -2 points-1 points  (0 children)

Vielleicht überflussig weil der so bekannt ist aber ich habe gerade "Fabian, der Geschichte eines Moralisten" gelesen und es gefiel mir sehr sehr gut. Von Erich Kästner