diff --git a/content/posts/vpn-gateway/index.md b/content/posts/vpn-gateway/index.md
index 442d70b..e9b8746 100644
--- a/content/posts/vpn-gateway/index.md
+++ b/content/posts/vpn-gateway/index.md
@@ -6,7 +6,7 @@ image: resource:user-settings.png
VPNs are a way of accessing application which sit on a separate network using an encrypted tunnel. Contrary to popular belief, they are not designed to be used for anonymising your internet habits. Whilst VPNs are designed to enable a client to access the servers network, it's possible to use them to provide a server to access to its client's network. With this, and a simple HTTP server, it's possible to open up applications on your home network to the internet, without the need for a static IP, or a port forward!
-{{< mermaid caption="Network layout" >}}
+{{}}
graph LR
A[End Users]
@@ -20,7 +20,7 @@ end
A-->B
C---B
C-->D
-{{< /mermaid >}}
+{{}}
## Requirements
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 16da53c..a355827 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -13,6 +13,10 @@
{{ partial "style.html" "css/font-awesome.min.css" }}
{{ partial "style.html" "css/highlight.css" }}
+ {{ if eq .Params.layout "flickr" }}
+ {{ partial "style.html" "css/lightgallery.min.css" }}
+ {{ end }}
+
{{ partial "title-item.html" . }}{{ .Site.Title }}
{{ partial "metadata.html" . }}
@@ -28,10 +32,24 @@
{{ partial "footer.html" . }}
+ {{ $raw_content := "" }}
+
+ {{ if .Content }}
+ {{ $raw_content = .RawContent }}
+ {{ end }}
+
{{ partial "script.html" "js/jquery.js" }}
- {{ partial "script_async.html" "js/lightgallery.js" }}
+
+ {{ if eq .Params.layout "flickr" }}
+ {{ partial "script_async.html" "js/lightgallery.js" }}
+ {{ end }}
+
{{ partial "script_async.html" "js/bootstrap.js" }}
- {{ partial "script_async.html" "js/mermaid.js" }}
+
+ {{ if in $raw_content "{{