Barberry Garden

A wine corner in a crazy world

More

Site Updates

·

EN

·

Boris Buliga


This site is still in development. It's not as active as during the first month of its existence, but I still have plenty of ideas I explore whenever I have time and inspiration. A lot of stuff has been implemented since the last report, so I figured it calls for a new post.

Text and fonts

The default font has changed because the previous one doesn't contain all the charsets I need. Alegreya Sans is used for headers, Source Code Pro is used for verbatim and code blocks, and M PLUS Rounded 1c is used as the default font. Aside from supporting more codepoints, M PLUS renders better on various screens (at least to my experience).

In addition, the text is no longer justified and instead is left-aligned. The Internet overflows with articles explaining why text justification is not a good idea for the Web.

Home page

The posts section now contains only 8 of the latest articles. There is a link to the full list, but now it occupies less space, which is nice.

The latest reviews section now contains a minimum of 8 reviews (vs 12 before). While not a big deal for most days, in some cases, it drastically reduces the number of linked reviews. I don't list the exact number of reviews because I want to avoid cutting any of the days. For example, on the 2nd of September, I tasted 15 wines. I want all of them to be present.

The subscription flow was moved to a separate page to avoid loading mostly unused assets.

Wine page

Related wines

Related wines are now displayed on the wine page. Related wines are wines by the same producers or those tasted on the same days. At this moment, there is no limit on related wines number, so some pages are uncomfortably big.

some random image you can find on barberry garden

One of the ideas is to provide the ability to switch between different views - plates and a table.

Missing image

some random image you can find on barberry garden

Unfortunately, I have no photos of some wines. For such cases, I added a dummy photo to use instead. If you want to make a better photo, I would be happy.

Producer page

A new page type is added! Every producer has their own page now. This page contains any public notes I have on this producer and links to all wines of this producer.

Unfortunately, very few producers have meaningful content, so I am going to double-post them as articles to make them more visible.

You can find links to producers all over the place. And now you can see them as well - one of the perks of my publishing flow.

SEO

Open Graph metadata is provided by most of the pages now (with few notable exceptions). And that means some good-looking links when you share them on social media.

article wine

Other goodies

The update date is now calculated automatically whenever the content changes. Nothing sophisticated. The system compares hashes to determine if there was a change. Meaning that even whitespace changes lead to update date changes. In addition, the update date can't be before the post date (sharing because some readers reported this funny artefact).

The sorting capabilities of wine tables are improved. Accents, letter cases, and links are all properly handed.

Searching in the tables got some improvements as well. Accents are neutralised, meaning that 'Cote' matches 'Côte'. You can type a space in the search query! I know it's crazy, but the underlying library doesn't allow spaces by default. Fixed that annoyance. In addition, matching strings are highlighted.

Development

The core library that I use is available as a separate package. It's called publicatorg (because it publishes Org mode files). I am already using it for a few other projects. In short, publicatorg provides a way to match Vulpea notes into any targets and output them using user-defined compilers. Publicatorg supports incremental builds (including dependency-triggered changes). It's an extremely simple library but supports the flows required for this site's existence.

Take a look at the example project defined in the library's tests.

With the appearance of publicatorg, several things were improved. I did a pretty dumb thing to include some 'content' information in the cache. And you know, it's dumb because you can't nuke your cache anymore. I did it because I needed one feature ASAP, but happy that the cache contains only… cache now!

Another major improvement is related to change detection related to dependencies. Basically, dependency change triggers a rebuild. It also supports chained changes (or N-level dependency triggers). The only downside - it takes more time (~1min) to calculate the hash of every output (at the moment of writing, 3315 output files, not counting metadata files). But at least the system is more precise.

Acknowledgements

Many thanks to Dmytro Kostiuchenko, who reported many issues over the last months.