diff options
author | Hadi Sinaee <sinaee@cs.ubc.ca> | 2021-06-13 22:15:11 +0300 |
---|---|---|
committer | Hadi Sinaee <sinaee@cs.ubc.ca> | 2021-06-13 22:15:11 +0300 |
commit | dc954ed0e5ad6566e1759bbf013b4602abf17875 (patch) | |
tree | 158c916a47a00dc68d73ce52361ba3f3f41e92a8 | |
parent | 892034b6629c22f34c00f90711889df3e5480842 (diff) |
chore: add alias for projects website name
-rw-r--r-- | exampleSite/content/projects/proj1.md | 2 | ||||
-rw-r--r-- | layouts/partials/projects/projects.html | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/exampleSite/content/projects/proj1.md b/exampleSite/content/projects/proj1.md index f0b8759..1ce3d59 100644 --- a/exampleSite/content/projects/proj1.md +++ b/exampleSite/content/projects/proj1.md @@ -5,6 +5,8 @@ date: "2018-05-18" links: website: 'https://github.com/hadisinaee/avicenna' + alias: link_name_here + --- [See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki)
\ No newline at end of file diff --git a/layouts/partials/projects/projects.html b/layouts/partials/projects/projects.html index 7cc04a5..5711eeb 100644 --- a/layouts/partials/projects/projects.html +++ b/layouts/partials/projects/projects.html @@ -18,7 +18,10 @@ {{ if $links }} <div class="section-2 w-100"> {{ if $links.website }} - <a class="main_color text-decoration-none rounded " href="{{$links.git}}" target="_blank">website</a> + <a class="main_color text-decoration-none rounded " href="{{$links.website}}" target="_blank"> + {{if $links.alias}} {{$links.alias}} {{else}} website {{end}} + + </a> {{end}} </div> {{end}} |