diff options
author | zzzmisa <zzzmisa.office@gmail.com> | 2022-02-03 18:21:49 +0300 |
---|---|---|
committer | zzzmisa <zzzmisa.office@gmail.com> | 2022-02-03 18:21:49 +0300 |
commit | e132daf64984064ebd841ecd18cf6b4da0f3879c (patch) | |
tree | 8939711fe8ee50b78c9bd7ba8ad37ed864c3946e | |
parent | ddb9886af07f39e8e926e231d7163cf53acd663d (diff) |
Make it possible to use HTML tags in descriptions
-rw-r--r-- | layouts/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 26147e8..f1fca3d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -76,7 +76,7 @@ </amp-analytics> <main id="content" role="main"> <h2 class="m3 center h4 italic">{{ .Site.Title }}</h2> - <p class="h3 bold">{{ .Site.Params.description }}</p> + <p class="h3 m4">{{ .Site.Params.description | safeHTML }}</p> {{ range .Site.Params.projects.list }} <p class="m3"> @@ -120,7 +120,7 @@ {{ with .Site.Params.contact }} {{ with .avatar }}<img class="circle mb2" src="{{ . }}" width="96" height="96" class="block mx-auto" />{{ end }} {{ with .name }}<h3 class="center h3 bold mb2">{{ . }}</h3>{{ end }} - {{ with .description }}<p class="max-width-1 mb2">{{ . }}</p>{{ end }} + {{ with .description }}<p class="max-width-1 mb2">{{ . | safeHTML }}</p>{{ end }} {{ `<!-- Icons are from Simple Icons v5.13.0 except email icon (The email icon is from The Scenic). |