Category: Web

Gatsby.js: links, external and internal

03/03/2019 0

Today I’m digging into links and how Gatsby and React work with them. It turns out, that there’s React own Link component in react-router module — and there’s Gatsby wrapper around that, its own Link component. Gatsby’s Link: internal only! Remember: Gatsby wrapper is for internal links only. Documentation. They recommend to use if statement to…

By walsk

Jekyll remote themes on Github Pages

19/02/2019 0

Github Pages supports only limited number of Jekyll plugins. And I’d like to tell you today about one of them called jekyll-remote-theme (thanks for creating it, Ben Balter!). In your _config.yml you use the line: remote_theme: github_username/theme_repo to use the theme with your Jekyll blog or website. The thing is: you can pretty much fork…

By walsk

gatsby-universal shows raw markdown

13/02/2019 0

If you’re like me and tried to figure out, what’s the matter with markdown not converted to HTML properly: for gatsby-universal starter it’s a known thing. They’ve even had an issue (closed with explanation from the author, how to deal with that). By default in index.js we have rawMarkdownBody used instead of html, but even…

By walsk

How to use childMarkdownRemark

12/02/2019 0

Disclaimer (for you, if your reaction to the title is facepalm): I’ve tried to google exactly that, before I understood, how markdown processing works in Gatsby. So this post is an attempt to give a hand to my fellow learn-by-doers. 😀 If you’re like me and learn by doing, you’ve probably cloned some Gatsby starter…

By walsk

Jekyll site on GitHub pages with custom plugins

05/02/2019 0

How to set up a site with plugins, that are not included in github-pages gem? Problem: my site is not building remotely on github Why? It might happen, because you’re using custom plugins. GitHub has a list of whitelisted plugins. The other plugins are not supported for security reasons. What can you do, if your…

By walsk

jekyll does not generate collection

03/02/2019 0

Shortcut. 🙂 I wonder, how many hours I will save for humanity here. (For the part of humanity that thinks using the same words I use. Hey! Hope you’ll have a nice day after reading this.) Moving parts Collections for Jekyll < 3.7 should be located in your site root directory and start with underscore.…

By walsk

Easy autocomplete for Flask WTForms (with jQuery UI)

30/09/2018 0

What it takes to make it work — checklist. I’m using the following stack: Flask (with WTForms plugin)SQLAlchemyjQuery UI Autocomplete plugin I’m going to make autocompleting country field — kind of a classic example. Step by step guide to create a simple form with autocompletion Add code for new table, that will store countries data: class…

By walsk