m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/lib/util.rb
blob: 34e3686e4dbd36686c4e39d630c2e4507fee8ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require './lib/pather'

SourceDir = 'src'
BuildDir = 'public'
Email = 'm@m-chrzan.xyz'

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, path = 'about'
  "https://git.m-chrzan.xyz/#{repo}/#{path}"
end