summaryrefslogtreecommitdiff
path: root/bin/page
diff options
context:
space:
mode:
Diffstat (limited to 'bin/page')
-rwxr-xr-xbin/page2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/page b/bin/page
index ca8b5bd..1b631cf 100755
--- a/bin/page
+++ b/bin/page
@@ -1,9 +1,11 @@
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
load 'util.rb'
+require 'uri'
template = "bin/page.#{ARGV[0]}.erb"
@page = Page.new(ARGV[1])
+@url = URI::parse('https://www.andrewdm.me') + @page.absoutpath
erb = ERB.new(File.read(template));
erb.filename = template