diff --git a/content/linux/x-pretty-qt.md b/content/linux/x-pretty-qt.md new file mode 100644 index 0000000..7e2e93f --- /dev/null +++ b/content/linux/x-pretty-qt.md @@ -0,0 +1,9 @@ +--- +title: Patch `xsession` so QT looks nice +--- + +After writing [Make QT less ugly](https://theorangeone.net/posts/make-qt-less-ugly/), I switched to LightDM, which completely broke it. + +This is the patch for `/etc/lightdm/Xsession` to stop it overriding my tweaks. + +{{< github_file repo="realorangeone/dotfiles" path="files/xsession.patch" >}} diff --git a/content/netlify/_index.md b/content/netlify/_index.md deleted file mode 100644 index 0683e9a..0000000 --- a/content/netlify/_index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -title: Netlify ---- diff --git a/layouts/shortcodes/github_file.html b/layouts/shortcodes/github_file.html new file mode 100644 index 0000000..3ee6adc --- /dev/null +++ b/layouts/shortcodes/github_file.html @@ -0,0 +1,10 @@ +{{ $repo := .Get "repo" }} +{{ $path := .Get "path" }} +{{ $extension := index (last 1 (split $path ".")) 0 }} + +{{ $data := getJSON "https://api.github.com/repos/" $repo "/contents/" $path }} + +{{ $content := $data.content | base64Decode }} + +{{ highlight $content $extension "" }} +

View {{ $data.name }}