realeinherjar / old-site

Old personal website built with Dioxus as a proof of concept

Home Page:https://realeinherjar.github.io/old-site/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Personal Website using Dioxus

I am using the Dioxus which is a full stack library in Rust.

The RSS feed is generated using the rss crate.

For the Rustacean out there, this personal site and blog is ready for you to fork and use. You can add API endpoints with axum and sqlx. The license for the code is MIT, and for the content is CC-BY-NC-SA.

Development

  1. Install Dioxus: cargo install dioxus-cli

  2. Install npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

  3. Install tailwindcss: https://tailwindcss.com/docs/installation

  4. Run the following command in the root of the project to start the tailwind CSS compiler:

    npx tailwindcss -i ./input.css -o ./public/tailwind.css --watch

Run the following command in the root of the project to start the Dioxus dev server:

dx serve --hot-reload

Open the browser to http://localhost:8080

Converting Markdown to HTML

Once you have a blog post in Markdown, you can convert to HTML using Pandoc:

pandoc sample_readme.md -t html -o sample_readme.html

Generating the RSS feed

To generate the RSS feed for the blog, you'll need to run with cargo run. This will crate a file at public/feed.xml.

About

Old personal website built with Dioxus as a proof of concept

https://realeinherjar.github.io/old-site/

License:MIT License


Languages

Language:CSS 48.2%Language:Rust 47.6%Language:HTML 3.3%Language:JavaScript 0.9%