diff --git a/content/projects/astrill-extractor.md b/content/projects/astrill-extractor.md index c2a45c4..3e78aa4 100644 --- a/content/projects/astrill-extractor.md +++ b/content/projects/astrill-extractor.md @@ -1,6 +1,6 @@ --- title: Astrill Extractor -gist: https://gist.github.com/RealOrangeOne/050da86871fb952ba7bfe97eece8555c +gist: 050da86871fb952ba7bfe97eece8555c --- Astrill, my VPN of choice, allows you to export OpenVPN config files for all it's VPNs, allowing you to connect on platforms it doesn't provide clients for, which albeit isn't many. The AUR package `astrill` has started becoming really unstable on my machine recently, so I decided to switch it out for `ovpn` files, as gnome has excellent support for OpenVPN. diff --git a/content/projects/morse-code-decoder.md b/content/projects/morse-code-decoder.md index a93030a..f09289e 100644 --- a/content/projects/morse-code-decoder.md +++ b/content/projects/morse-code-decoder.md @@ -1,6 +1,6 @@ --- title: Morse code decoder -gist: https://gist.github.com/RealOrangeOne/6dc94875c93b787e5834 +gist: 6dc94875c93b787e5834 subtitle: A JSON file to help decode morse-code --- diff --git a/content/projects/wiki-game-solver.md b/content/projects/wiki-game-solver.md index 0de1779..0208fa1 100644 --- a/content/projects/wiki-game-solver.md +++ b/content/projects/wiki-game-solver.md @@ -1,6 +1,6 @@ --- title: Wiki Game solver -gist: https://gist.github.com/RealOrangeOne/7da9a3dd1bf90ecdf7be +gist: 7da9a3dd1bf90ecdf7be subtitle: Simple script to win the Wiki Game --- diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 248615e..cc31bf2 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -2,6 +2,12 @@

{{ title .Title }}

{{ if .Params.subtitle }}

{{ markdownify .Params.subtitle }}

+ {{ else if .Params.repo }} + {{ $data := getJSON "https://api.github.com/repos/" .Params.repo }} +

{{ $data.description }}

+ {{ else if .Params.gist }} + {{ $data := getJSON "https://api.github.com/gists/" .Params.gist }} +

{{ $data.description }}

{{ end }} {{ if .Content }} diff --git a/layouts/projects/single.html b/layouts/projects/single.html index 57f33ef..193bc44 100644 --- a/layouts/projects/single.html +++ b/layouts/projects/single.html @@ -1,23 +1,7 @@ {{ partial "page_start.html" . }}
-
-

{{ title .Title }}

- {{ if .Params.subtitle }} -

{{ markdownify .Params.subtitle }}

- {{ else if .Params.repo }} - {{ $data := getJSON "https://api.github.com/repos/" .Params.repo }} -

{{ $data.description }}

- {{ end }} -
- {{ if .Content }} -
- {{ if .Params.image }} - - {{ end }} - {{ .Content }} -
- {{ end }} + {{ partial "content.html" . }}
    {{ if .Params.download_url }} @@ -28,7 +12,7 @@
  • View Source
  • {{ end }} {{ if .Params.gist }} - {{ $data := getJSON "https://api.github.com/repos/" .Params.repo }} + {{ $data := getJSON "https://api.github.com/gists/" .Params.gist }}
  • View Source
  • {{ end }}