Its an Internet World
I am using Byword to write this post now. I create the post with hugo new <post_name>.md then edit it with Byword.
I am fond of markdown and static site generator such as hugo. I have been resarching my workflow in the last couple of days and my goal is:
- share picture from my iphone
- jot down the points in the draft in my iphone
- sync the draft and continue working on the post
I have tried quite a few solutions and the bottleneck is at sharing the pictures. Most of the workflows are dealing with the path names of the picture in the local store. Once I decided to upload the picture to my imgur account and embed the generated links in my post, all problems suddenly goes away.
With Typora
This is my first hugo post written with Typoa. My environment is setup up according to this post.
The layouts/_default/_markup/render-image.html mentioned in the post is like below:
{{ if in .Destination "/static/" }}
<!-- 12 is count of ../../static carachers -->
{{ $new_file_path := substr .Destination 12 }}
<!-- just for testing, you can delete this pre tag -->
<pre>{{ $new_file_path }}</pre>
<!-- render the image with new path -->
<img class="img-fluid" src="{{ $new_file_path }}" alt='{{ .Text }}' />
{{ else }}
<img class="img-fluid" src="{{ .Destination }}" alt='{{ .Text }}' />
{{ end }}Migration Completed
OK, I have migrated this blog from Jekyll to hugo. It was a very smooth and simple process.
The main reason for migrating away from Jekyll is I am fed up with it. It needs to establish an entire Ruby environment in order to use it. Like you want to drive a car but you need to build a factory to manufacture the car you want to drive.
Another thing is, I can never figure out how to run the site locally. It just splits out errors. Hugo and even mdbook works flawlessly.
some Rust links
Here are some Rust links that I found useful:
The Embedded Working Group Newletter
Chris Biscardi’s walkthrough of Rustlings
a quick update
OK, this is a quick update. I have somehow got a new M1 mac, which is quite good, and I am writing it with it now.
But it seems that my new neovim setup needs further polishing. I will work on it.
Until next time.
my reading list
The good news is I have finished Richard Hass’s The World. The bad news is that I have started his previous book A World in Disarray. This one is more or less focused on foreign affairs.
After I have completed the World, I was at an unease. I have finished the book, but the carving for reading, for more, remains. I briefly read Peril. But quickly realized that it is more or less a vent of the Trump administration. At the end of “where to go for more” section of the book, I found “immodestly” A World in Disarray. So why not give it a go?