home-info, profile-mode: enable markdownify for text elements

This commit is contained in:
Aditya Telange 2020-10-17 15:02:40 +05:30
parent 3826200b7c
commit 353146891e
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{{- with $.Site.Params.homeInfoParams }}
<article class="first-entry home-info">
<header class="entry-header">
<h2>{{- .Title }}</h2>
<h2>{{- .Title | markdownify }}</h2>
</header>
<section class="entry-content">
<p>{{- .Content | markdownify }}</p>

View File

@ -2,8 +2,8 @@
{{- with .Site.Params.profileMode }}
<div class="profile_inner">
{{- if .imageUrl}}<img src="{{ .imageUrl}}" alt="{{ .imageTitle | default "profile image" }}" />{{- end}}
<h1>{{- .title | default $.Site.Title -}}</h1>
<span>{{- .subtitle -}}</span>
<h1>{{- .title | default $.Site.Title | markdownify -}}</h1>
<span>{{- .subtitle | markdownify -}}</span>
{{- partial "social_icons.html" $.Site.Params.socialIcons -}}
{{- with .buttons }}