Improving my blog post publishing tool


The publishing process for my blog posts is as follows:

  1. I write a blog post in a tool called Typora;
  2. I paste the blog post into a web tool I made that has various utilities to help me format my page;
  3. The web tool creates a markdown file with my blog post, and;
  4. I publish the blog post through GitHub.

I designed my web tool for publishing blog posts, called Create, after noticing how much friction there was in publishing a blog post. I had to click through several pages on GitHub, find metadata values, copy-paste information, and more. Sometimes I made mistakes which were subtle in the publishing process, until I noticed a blog post was not published.

Create lets me prepare a blog post for publishing on the web. I started with a two-column layout. In column one, there is a list of required and optional web forms for supplying metadata about a post. This includes the title for a post, a slug, a category, and more. In designing this tool, I want to have to fill out as few fields as possible. Thus, the title is automatically filled out by extracting the markdown from a blog post. Fields that I use less often are hidden behind an accordion, too, to help mitigate information overload.

In the second column, there was a plain text area in which I could put the contents of a post.

Here is what the tool looked like until recently:

My old blog post publishing tool

This tool suited me well but, with use, I started to see some details that could be improved. I designed the page using my typical layout, which meant I didn’t have as much room on the page as I would like. Thus, there was no preview window, a feature I started to seek. Thus, I went to my white board with the question what is the ideal layout for this page? I disregarded my existing blog format and let myself start with a blank canvas. I ended up with three columns:

My whiteboard sketch of a new publishing tool, featuring three columns

In the first column, I could have the metadata for a post. I wanted this information on the left, as it feels more natural to have those fields on the left of the page. I then decided that I wanted two columns for content: one in which to edit, and the other to preview my changes.

After drawing out the sketch, I started to put together the pieces of how the page should work. I knew CSS grid would be ideal in creating the layout I wanted. I also started to think about how a preview feature would work. The TinyMDE markdown editor was recommended, which provides an interface with which you can author and preview markdown in the browser.

With some experimentation, I ended up with this tool:

My new blog post publishing tool

The full page is used for the tool, without a navigation bar, footer, etc. I wanted to have as much space as possible to author a blog post, since that is the intent of the page. I implemented the three column layout, using TinyMDE to add a rich preview feature. I also added my blog mascot in the bottom left corner of the page, to give the page more personality.

In experimenting with the tool, I found that there was friction in editing longer blog posts since I had to scroll. If I scrolled, different columns would be offset. For example, if a blog post was long, when I scrolled all of the metadata field would stay at the top of the page. To solve this problem, I set a maximum height for the content containers and an overflow-y: scroll CSS attribute. This let me scroll each column individually, and ensure that the page itself doesn’t scroll. There may be more elegant ways to implement this: if there are, let me know!

My new tool is visually simpler than the old one. There are fewer elements on the page. Everything that is on the page is something I need or that is handy. With that said, I still see opportunities for improvement. I would love a tool that automatically generates a slug, or that automatically picks a category from my list. I have been unable to come up with good heuristics for these challenges, but the topic is still on my mind. I would like to use a statistical approach for both problems.

Most important of all, the tool serves my needs. I can format content as necessary, then press the publish button to generate a markdown file that I can publish on my website. I can publish content without worrying about making small errors in markup that cause problems. I think there is great potential in the web form -> markdown pipeline.



Source link

Visited 4 times, 1 visit(s) today

Related Article

From left are Hong Kong Insurance Authority CEO Clement Cheung and chairman Stephen Yiu, and Hong Kong Federation of Insurers CEO Selina Lau. Photo: Enoch Yiu

Hong Kong insurers mobilise to help fire victims claim payouts on 12,000 policies

The Hong Kong Insurance Authority has directed insurers to move quickly to assist victims of the Tai Po fire by directly contacting policyholders to help them claim compensation for about 12,000 insurance policies, according to CEO Clement Cheung Wan-ching. Cheung on Monday updated the figures on insurance policies affected by the 43-hour blaze that started

The brokerage industry has seen a slew of prominent mergers and acquisitions over the past year. Photo: Reuters

China’s CSRC pushes brokerages to build global banks and back tech self-reliance

China’s securities regulator has urged the nation’s brokerage industry to rev up the pace of cultivating top investment banks capable of competing on the global stage and better facilitate Beijing’s technological self-reliance drive as outlined in a critical five-year plan by the Communist Party. Securities companies should redouble efforts to fulfil the goal set by

3 No-Brainer Growth Stocks to Buy for 2026 With $100 Right Now

After a historic bull market run, growth stock opportunities are getting harder to find. After producing strong returns in 2023 and 2024, the S&P 500 has continued its historic run in 2025. The benchmark index is up another 16.5% through the first 11 months of the year, on track for another great year for investors.

Russian President Vladimir Putin, in red tie, at an AI forum in Moscow with Sberbank CEO Herman Gref. The state-owned lender leads Russia’s AI efforts.

Putin Wanted AI Supremacy. Now Russia Is Struggling to Stay in the Race.

President Vladimir Putin has often proclaimed that Russia must lead the world in artificial intelligence. In reality, the country is stuck on the sidelines as others pull ahead. PREMIUM Russian President Vladimir Putin, in red tie, at an AI forum in Moscow with Sberbank CEO Herman Gref. The state-owned lender leads Russia’s AI efforts. As

A chart showing China’s trade with other countries

China’s trade surplus hits $1tn for first time despite Trump’s tariffs – business live | Business

Introduction: China’s trade surplus hits $1tn Good morning, and welcome to our rolling coverage of business, the financial markets and the world economy. China’s annual trade surplus has exceeded $1tn for the first time, as the manufacturing powerhouse shrugged off the impact of Donald Trump’s trade war. New trade data today shows that Chinese factories

Angie Siu to lead Latitude Brokers' Hong Kong teams after WTW switch

Angie Siu to lead Latitude Brokers’ Hong Kong teams after WTW switch

Angie Siu to lead Latitude Brokers’ Hong Kong teams after WTW switch December 8 2025 by Andrew Mullen Hong Kong-based marine specialists Latitude Brokers has appointed Angie Siu as its new divisional director of broking, operations and claims, according to a LinkedIn update by the company. Siu (pictu… To continue reading the full article and get

The Global Ripple Effect: Why Lifting Sanctions on Russia Would Invite a Wider War

Russia Forced to Deepen Oil Discounts to China Amid Falling Demand — UNITED24 Media

Russia has sharply increased its oil discounts to China as state-owned and private refineries pull back from purchasing its barrels, Reuters reported, citing traders on December 5. Shipments of Russia’s ESPO Blend, loaded for December and delivered to Chinese ports, are now selling at record discounts of $5–6 per barrel below Brent. As recently as late September, Chinese refiners were paying a premium of $0.50–$1 above Brent

Wolves: Worse than Derby? Can Wolves avoid the unwanted Premier League record?

It’s important to distinguish this is a completely different Premier League era to Derby’s, so the comparisons may feel unfair. It is not a problem purely based on this season either. Since successive seventh placed finishes in 2018-19 and 2019-20 Wolves have slowly slipped down the table. In the past five seasons they have finished

General Hospital Fans Debate Who Was Carly’s Best Love Interest

Carly Corinthos has always been one of General Hospital’s scene-stealers, juggling love, heartbreak, and family drama in Port Charles. Over the years, she’s been at the center of some major on-screen romances that have fans endlessly debating her true soulmate. Fans have weighed in, too, sharing their opinions on who they think was Carly’s best

AUD/USD outlook

AUD/USD Outlook Firm Amid China’s Trade Surplus, Hawkish RBA

The AUD/USD outlook remains constructive as the US dollar weakens ahead of the Fed rate cut. Hawkish RBA and China’s trade surplus keep Aussies supported. Technical correction could be seen before the bullish continuation. The AUD/USD price starts the fresh week with a tight bullish consolidation, holding near Friday’s highs around mid-0.6600. The traders are

China Chip IPOs Covered Almost 3000 Times for Retail After Moore

(Bloomberg) — Two Chinese chipmakers are attracting strong retail investor demand, buoyed by industry peer Moore Threads Technology Co.’s stellar debut. The retail portion of MetaX Integrated Circuits Shanghai Co.’s upcoming initial public offering was 2,986 times oversubscribed on Friday, according to a filing. Meanwhile, Beijing Onmicro Electronics Co., which makes radio frequency chips, was

Nurse found guilty of Australian beach murder

Nurse found guilty of Australian beach murder

Queensland Police Service The murder of Toyah Cordingley prompted an outpouring of grief across the state of Queensland. A former nurse has been found guilty of the high-profile murder of Toyah Cordingley, whose body was found on a popular tropical beach in Australia seven years ago. Toyah Cordingley was stabbed at least 26 times while

Hong Kong Legco poll: 8 things to know, from the youngest to the toughest lawmakers

Hong Kong Legco poll: 8 things to know, from the youngest to the toughest lawmakers

The numbers were tallied overnight and 90 newly minted lawmakers will begin their term in January after winning in Sunday’s Legislative Council election. The citywide poll which drew a turnout of 31.9 per cent – slightly higher than four years ago, at 30.2 per cent – delivered a few surprises as several new faces defeated

Investor looking at their computing screen in awe.

This Cash-Machine Stock Is Set to Triple Over the Next 5 Years

Taiwan Semiconductor is my favorite investment pick right now. One area where there is a ton of cash being spent is the artificial intelligence sector. AI hyperscalers seem to be tripping over themselves to spend as much money as possible to build out their computing capacity. Several companies are benefiting from this massive spending spree.

LG Energy Solution breaks deeper into Mercedes mass-market EV lineup

German carmaker expands partnership with Korean firm amid tightening carbon rules, rising China risk LG Energy Solution’s battery cell manufacturing plant in Wroclaw, Poland (LG Energy Solution) LG Energy Solution has secured an additional 2 trillion won ($1.4 billion) battery supply contract with Mercedes-Benz — likely targeting midpriced electric vehicles, according to industry sources —

0
Would love your thoughts, please comment.x
()
x