DEV Community

Thiago Massari Guedes
Thiago Massari Guedes

Posted on

2 1

Creating a new blog with Texted

Overview

Creating a new self-hosted blog with texted is super simple. This is a tutorial explaining how to do it.

Pre-requisites

Install Rust if you've now already done

Rust - Getting started

Installing Texted

cargo install texted
Enter fullscreen mode Exit fullscreen mode

Bootstrapping a new blog

# Let's create a new directory for our new blog
mkdir ~/my-awesome-blog && cd ~/my-awesome-blog
# And now create the skeleton of a fully functional blog
texted-tool bootstrap --out-dir .
Enter fullscreen mode Exit fullscreen mode

Now, let's run and test it.

# Inside the same ~/my-awesome-blog directory, run
texted
Enter fullscreen mode Exit fullscreen mode

And open in your browser http://127.0.0.1:8001/

Adding a new post

Texted by default caches all urls and posts for best performance. Please quit texted and run again to see new posts in the listing.
If you want to disable rendering cache to see changes in the post content without restarting, change
rendering_cache_enabled = false in the texted.toml configuration file

# Still inside the same ~/my-awesome-blog directory, run
pushd posts/

# This will create one directory such as 20240428_how_to_write_a_new_blog_post
# with a file index.md inside.
texted-tool post --title "How to write a new blog post" -o dir

# And let's run texted again
popd
texted
Enter fullscreen mode Exit fullscreen mode

You now have a new post available in the post list


This post was adapted from Texted project

👋 While you are here

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay