A very minimal and fast personal blog (Second brain system)
1.1K
Think about it in the following terms:
/edit to edit a postshortcodes{scriptName}script input here{/scriptName}examples/shortcodes directory for an example of short code scriptstext/markdown the text will be rendered as markdown, if text/html it will be printed as istext/htmlYou can run xlog on port 7000 serving current directory using the following docker command
docker run -it --rm -p 7000:7000 -v $PWD:/srv/ emadelsaid/xlog
go get github.com/emad-elsaid/xlog/...
Usage of xlog:
-bind string
IP and port to bind the web server to (default "0.0.0.0:7000")
-source string
Directory that will act as a storage (default ".")
Now you can access notes with localhost:7000
If you want you can access it with a name like notes:7000 by adding this line to /etc/hosts
127.0.0.1 notes
Also you can use notes instead of notes:7000 by redirecting traffic from port 80 to port 7000
sudo iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 7000
so that means you can create a new note in your browser by visiting notes/note title here
Content type
Image
Digest
Size
11.4 MB
Last updated
over 5 years ago
docker pull emadelsaid/xlog