Ronalds Vilcins·Jun 3, 2022Scrape data from websites into Google SheetsWant to grab data from the internet? Google Sheets has a built-in function called ImportXML which can be used to scrape publicly available…
Ronalds Vilcins·Apr 20, 2022Embedding audio with Hugo shortcodesHugo provides the ability to easily create custom shortcodes to meet your website’s needs. All you need to do is add an html file in the…
Ronalds Vilcins·Mar 20, 2022CSS :empty SelectorThe CSS :empty pseudo-class selects any element that has no children or text.
Ronalds Vilcins·Mar 20, 2022Count all pages from section in HugoIf you want to display the total number of content pages that Hugo generated from a particular section use where to filter section pages:
Ronalds Vilcins·Mar 20, 2022Centerig flexbox itemsYou can center a flexbox item vertically and horizontally by applying margin: auto; to it.
Ronalds Vilcins·Mar 20, 2022Capture screenshot with Chrome DevToolsWindows: Press Ctrl + Shift + I then Ctrl + Shift P.
Ronalds Vilcins·Feb 15, 2022Hugo shortcode for raw HTMLSometimes we need to add raw HTML content in markdown files. We can do it before or after, the content. And in the middle of content using…
Ronalds Vilcins·Feb 13, 2022Show related content in HugoHugo has a built-in related content feature. To list up to 3 related pages include this partial in your single page template. It will match…
Ronalds Vilcins·Dec 22, 2021The CSS :has() selectorThe :has() CSS pseudo-class represents an element if any of the selectors passed as parameters match at least one element.
Ronalds Vilcins·Dec 16, 2021Add anchor links to headings in HugoAn anchor link is a link, which allows the users to flow through a website page. When readers land on a page, they want to know instantly…