diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-17 15:02:40 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-17 15:02:40 +0530 |
| commit | 353146891e2e3c38600b406efd904d35b5debc86 (patch) | |
| tree | 540503721017f52e63744cdd74c9056c2d5f2c74 | |
| parent | 3826200b7c92dc17c6a45288ea989babfdafecd9 (diff) | |
home-info, profile-mode: enable markdownify for text elements
| -rw-r--r-- | layouts/partials/home_info.html | 4 | ||||
| -rw-r--r-- | layouts/partials/index_profile.html | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/home_info.html b/layouts/partials/home_info.html index 6be2113..ef08615 100644 --- a/layouts/partials/home_info.html +++ b/layouts/partials/home_info.html @@ -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> @@ -10,4 +10,4 @@ {{- partial "social_icons.html" $.Site.Params.socialIcons -}} </footer> </article> -{{- end}}
\ No newline at end of file +{{- end}} diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 279a3a4..5de8057 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -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 }} @@ -17,4 +17,4 @@ {{- end }} </div> {{- end}} -</div>
\ No newline at end of file +</div> |
