m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-02-16 22:09:12 -0500
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-02-16 23:13:49 -0500
commitf49446993a09a417566b0ca33fdf498048edf9e5 (patch)
treed7ac678c9e17deb8c7455abf2ac25fba4bae7396 /lib
parent12773849f1004935490fe63b873834af0278fcab (diff)
Move links to self hosted git
Diffstat (limited to 'lib')
-rw-r--r--lib/util.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/util.rb b/lib/util.rb
new file mode 100644
index 0000000..f5321a0
--- /dev/null
+++ b/lib/util.rb
@@ -0,0 +1,20 @@
+require './lib/pather'
+
+SourceDir = 'src'
+BuildDir = 'public'
+
+def src filename
+ File.join SourceDir, filename
+end
+
+def build filename
+ File.join BuildDir, filename
+end
+
+def path_to asset_id
+ P.path_to asset_id
+end
+
+def git repo
+ "https://git.m-chrzan.xyz/#{repo}/about"
+end