From f49446993a09a417566b0ca33fdf498048edf9e5 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Tue, 16 Feb 2021 22:09:12 -0500 Subject: Move links to self hosted git --- lib/util.rb | 20 ++++++++++++++++++++ scripts/build.rb | 12 +----------- src/index.html.erb | 4 +--- src/projects.html.erb | 14 +++++++++++--- 4 files changed, 33 insertions(+), 17 deletions(-) create mode 100644 lib/util.rb 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 @@
  • Email
  • >PGP
  • - GitLab - / - GitHub + Code
  • LinkedIn
  • 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 @@ +

    +You can find my most useful and interesting projects +here. Mirrors of these and some +additional code can be found on my GitHub + and GitLab profiles (the extra +stuff is mostly a lot of university assignments). +

    + -- cgit v1.2.3