Onion Information
Changed landing page, create_article.sh
I have changed the site so that what used to be the "about" page is now the landing page. The only tricky thing with this is that some URL metadata had to be set so that clicking on "Home" brings the user to the root of ...
Onion Details
Page Clicks: 0
First Seen: 05/06/2024
Last Indexed: 10/25/2024
Onion Content
I have changed the site so that what used to be the "about" page is now the landing page. The only tricky thing with this is that some URL metadata had to be set so that clicking on "Home" brings the user to the root of the site. Like so: Title: Home URL: save_as: index.html Welcome! I also added a line to pelicanconf.py to prevent it from generating index2.html, index3.html and so on: INDEX_SAVE_AS = None In order to make writing future articles easier I also wrote myself a short script which asks for title and optional category (default: Blog) and generates date, slug, author etc.: set -e read -p "Title? " TITLE [[ -z $TITLE ]] && echo aborted && exit 1 SLUG = $( tr A-Z a-z content/ $SLUG .md ./develop_server.sh start 8080 || echo already up firefox http://localhost:8080/category/blog.html nano content/ $SLUG .md ./develop_server.sh stop I also made develop_server.sh not spam the terminal: $PELICAN --debug --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS & + $PELICAN --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS > /dev/null 2> /dev/null & pelican_pid=$! echo $pelican_pid > $PELICAN_PID mkdir -p $OUTPUTDIR && cd $OUTPUTDIR - $PY -m pelican.server $port & + $PY -m pelican.server $port > /dev/null 2> /dev/null &