{ "cells": [ { "cell_type": "markdown", "id": "66248a3c-f1f7-4376-8f7b-956d82071fa7", "metadata": {}, "source": [ "# The simplest blog post\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "a0d56a7d-1d0c-491a-8f62-b1e0059163e0", "metadata": {}, "outputs": [], "source": [ "#blog\n", "date=\"2026-10-01\"\n", "tags=\"blog\"\n", "abstract=\"Almost\"\n" ] }, { "cell_type": "markdown", "id": "363265b5-9969-44ff-9feb-391e4c36def8", "metadata": {}, "source": [ "This is the simplest blog post I can create with a jupyter notebook. It has no code or pictures. It only has the title, the blog meta-data, and some text. I don't need to execute this notebook before posting it. Below is a description of what I need to do to create and publish this blog post.\n", "\n", "I start by creating a folder in my notes folder and the yearly sub-folder. The name of the folder will be the URL.\n", "\n", "```\n", "~/Desktop/Tauganet/notes/2026/the-simplest-blog-post/\n", "```\n", "\n", "Will become:\n", "\n", "```\n", "https://tauganet.is/2026/the-simplest-blog-post/\n", "```\n", "\n", "Then I run `jupyter-notebook` in that folder and create a notebook with the name `index.ipynb`. In this notebook, I create three cells: \n", "\n", "1. The first cell is the title in a markdown cell. It doesn't have to match the folder name but probably should be similar.\n", "2. The second cell is a code cell with a `#blog` comment at the top. It has meta-data for this blog post: the date, description, and tags. \n", "3. The last cell is this text in a markdown cell.\n", "\n", "When the blog post is ready to be published, I create a symlink to my Sphinx source folder.\n", "\n", "```\n", "~/Desktop/Tauganet/source/2026/the-simplest-blog-post/\n", "```\n", "\n", "Posts are published and unpublished by creating and removing the symlinks. That lets me work on several drafts at a time or prepare for [Blogtober](/2026/blogtober/) with a few ready posts 😊.\n", "\n", "Then I run a `sphinx-build` command to create the html in the build folder. The ipynb file is also copied there. There is a link to the ipynb file of this post at the top of the page.\n", "\n", "```\n", "~/Desktop/Tauganet/build/html/2026/the-simplest-blog-post/index.html\n", "~/Desktop/Tauganet/build/html/2026/the-simplest-blog-post.ipynb.txt\n", "```\n", "\n", "Finally, I run an `lftp` command to upload the changes to the server.\n", "\n", "I think that's simple enough for now.\n", "\n", "There is not really a reason to use a jupyter notebook for this specific blog post. I can also use a markdown file. Either works fine but my blogging system is built around jupyter notebooks and sphinx. I wanted an easy way to blog about simple programs." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.13.5" } }, "nbformat": 4, "nbformat_minor": 5 }