Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hadisinaee/avicenna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadi Sinaee <sinaee@cs.ubc.ca>2021-06-13 22:15:11 +0300
committerHadi Sinaee <sinaee@cs.ubc.ca>2021-06-13 22:15:11 +0300
commitdc954ed0e5ad6566e1759bbf013b4602abf17875 (patch)
tree158c916a47a00dc68d73ce52361ba3f3f41e92a8
parent892034b6629c22f34c00f90711889df3e5480842 (diff)
chore: add alias for projects website name
-rw-r--r--exampleSite/content/projects/proj1.md2
-rw-r--r--layouts/partials/projects/projects.html5
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}}