m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.rb20
-rwxr-xr-xscripts/build.rb12
-rw-r--r--src/index.html.erb4
-rw-r--r--src/projects.html.erb14
4 files changed, 33 insertions, 17 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
diff --git a/scripts/build.rb b/scripts/build.rb
index 7c064dc..df9fa2f 100755
--- a/scripts/build.rb
+++ b/scripts/build.rb
@@ -7,17 +7,7 @@ require './lib/blog'
require './lib/statics'
require './lib/pather'
require './lib/templated'
-
-SourceDir = 'src'
-BuildDir = 'public'
-
-def src filename
- File.join SourceDir, filename
-end
-
-def build filename
- File.join BuildDir, filename
-end
+require './lib/util'
def path_to asset_id
P.path_to asset_id
diff --git a/src/index.html.erb b/src/index.html.erb
index a5fbefb..5517b36 100644
--- a/src/index.html.erb
+++ b/src/index.html.erb
@@ -20,9 +20,7 @@
<li><a href='mailto:marcin.j.chrzanowski@gmail.com'>Email</a></li>
<li><a href=<%= path_to 'key'%>>PGP</a></li>
<li>
- <a href='https://gitlab.com/m-chrzan'>GitLab</a>
- /
- <a href='https://github.com/m-chrzan'>GitHub</a>
+ <a href='https://git.m-chrzan.xyz'>Code</a>
</li>
<li><a href='https://linkedin.com/in/marcin-chrzanowski'>LinkedIn</a></li>
</ul>
diff --git a/src/projects.html.erb b/src/projects.html.erb
index 39e698d..f5cdad2 100644
--- a/src/projects.html.erb
+++ b/src/projects.html.erb
@@ -1,8 +1,16 @@
+<p>
+You can find my most useful and interesting projects
+<a href='https://git.m-chrzan.xyz'>here</a>. Mirrors of these and some
+additional code can be found on my <a href='https://github.com/m-chrzan'>GitHub
+</a> and <a href='https://gitlab.com/m-chrzan'>GitLab</a> profiles (the extra
+stuff is mostly a lot of university assignments).
+</p>
+
<ul>
- <li><a href='https://gitlab.com/m-chrzan/dicebag'>Dicebag</a>: a dice
+ <li><a href='<%= git 'dicebag' %>'>Dicebag</a>: a dice
expression parser and roller.
</li>
- <li><a href='https://gitlab.com/m-chrzan/m-chrzan.gitlab.io'>This website</a>: a small
+ <li><a href='<%= git 'website' %>'>This website</a>: a small
mess of simple scripts for static site generation. I probably should've
used Jekyll, but I wanted to play around and build something minimal for
personal use. I'm not a webdev.
@@ -10,6 +18,6 @@
<li><a href='http://hex.m-chrzan.xyz'>Hex Curler</a>: a minimal webgame to be
played with <code>curl</code>.
<a href='<%= path_to 'blog_hex-curler' %>' >[blog]</a>
- <a href='https://gitlab.com/m-chrzan/hex-curler'>[source]</a>
+ <a href='<%= git 'hex-curler' %>'>[source]</a>
</li>
</ul>