added hyperlink in things-i-do and markdown support in description

This commit is contained in:
gurusabarish
2021-04-03 11:39:59 +05:30
parent 679ae1b1a0
commit 31ca80f694
4 changed files with 26 additions and 4 deletions
+3
View File
@@ -46,14 +46,17 @@ params:
- logo: fab fa-python - logo: fab fa-python
title: Python title: Python
description: I build something beautiful using Python. description: I build something beautiful using Python.
#url: https://example.com
- logo: fas fa-robot - logo: fas fa-robot
title: Machine learning title: Machine learning
description: I train robust models for various tasks. description: I train robust models for various tasks.
#url: https://example.com
- logo: fab fa-html5 - logo: fab fa-html5
title: Things for web title: Things for web
description: I love to build things for web description: I love to build things for web
#url: https://example.com
#Description for seo. If you want to show description in your listing or single page, let's make it true #Description for seo. If you want to show description in your listing or single page, let's make it true
showdescription: false showdescription: false
+4 -4
View File
@@ -121,18 +121,18 @@
<div class="col-md-8 text-center"> <div class="col-md-8 text-center">
<div class="about-content text-dark p-3"> <div class="about-content text-dark p-3">
{{ if .Site.Params.descripe_l1_person }} {{ if .Site.Params.descripe_l1_person }}
{{ .Site.Params.descripe_l1_person }} {{ .Site.Params.descripe_l1_person | markdownify }}
{{ end }} {{ end }}
{{ if .Site.Params.descripe_l2_person }} {{ if .Site.Params.descripe_l2_person }}
<br><br> <br><br>
{{ .Site.Params.descripe_l2_person }} {{ .Site.Params.descripe_l2_person | markdownify }}
{{ end }} {{ end }}
</div> </div>
<div class="social px-3 text-center pb-4"> <div class="social px-3 text-center pb-4">
{{ if .Site.Params.useresume }} {{ if .Site.Params.useresume }}
<a href="{{ .Site.Params.resumelink | default " #" }}" class="btn btn-outline-danger" <a href={{ .Site.Params.resumelink | default "#" }} class="btn btn-outline-danger" role="button"
role="button" aria-pressed="true"> aria-pressed="true">
{{ if .Site.Params.customname }} {{ if .Site.Params.customname }}
{{ .Site.Params.customname }} {{ .Site.Params.customname }}
{{ else }} {{ else }}
+16
View File
@@ -9,6 +9,21 @@
<div class="do-things-card"> <div class="do-things-card">
<div class="row pb-2 justify-content-center"> <div class="row pb-2 justify-content-center">
{{ range .Site.Params.Things }} {{ range .Site.Params.Things }}
{{ if .url }}
<div class="col-lg-3 col-md-4">
<a id="nothing" href={{ .url | default "#" }} class="">
<div class="things shadow rounded p-4 my-2 mb-4 card btn-outline-primary">
<i class="{{ .logo }} fa-3x" width="3em" height="3em"></i>
<div class="p-2 font-weight-bold">
{{ .title }}
</div>
<div class="py-4 things-text">
{{ .description }}
</div>
</div>
</a>
</div>
{{ else }}
<div class="col-lg-3 col-md-4"> <div class="col-lg-3 col-md-4">
<div class="things shadow rounded p-4 my-2 mb-4 card btn-outline-primary"> <div class="things shadow rounded p-4 my-2 mb-4 card btn-outline-primary">
<i class="{{ .logo }} fa-3x" width="3em" height="3em"></i> <i class="{{ .logo }} fa-3x" width="3em" height="3em"></i>
@@ -21,6 +36,7 @@
</div> </div>
</div> </div>
{{ end }} {{ end }}
{{ end }}
</div> </div>
</div> </div>
</div> </div>
+3
View File
@@ -46,14 +46,17 @@ params:
- logo: fab fa-python - logo: fab fa-python
title: Python title: Python
description: I build something beautiful using Python. description: I build something beautiful using Python.
#url: https://example.com
- logo: fas fa-robot - logo: fas fa-robot
title: Machine learning title: Machine learning
description: I train robust models for various tasks. description: I train robust models for various tasks.
#url: https://example.com
- logo: fab fa-html5 - logo: fab fa-html5
title: Things for web title: Things for web
description: I love to build things for web description: I love to build things for web
#url: https://example.com
#Description for seo. If you want to show description in your listing or single page, let's make it true #Description for seo. If you want to show description in your listing or single page, let's make it true
showdescription: false showdescription: false