1
Fork 0

Add shortcode to get file from GitHub

This commit is contained in:
Jake Howard 2019-09-21 19:39:21 +01:00
parent 27b661c90b
commit 64d0aaa8b4
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 19 additions and 3 deletions

View file

@ -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" >}}

View file

@ -1,3 +0,0 @@
---
title: Netlify
---

View file

@ -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 "" }}
<p><a href="{{ $data.html_url }}">View {{ $data.name }}</a></p>