Skip to content

Commit

Permalink
post-cover: enable mardownify
Browse files Browse the repository at this point in the history
 * allows users to add links and stuff #17
  • Loading branch information
adityatelange committed Oct 5, 2020
1 parent a9e00a3 commit d0c7635
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions assets/css/post-entry.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,8 @@
pointer-events: none;
width: 100%;
}

.entry-cover a {
color: var(--secondary);
box-shadow: 0 1px 0 var(--primary);
}
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1 class="post-title">
{{- else}}
<img src="{{ .Permalink -}} {{- .Params.cover.image }}" alt="{{ .Params.cover.alt | plainify }}">
{{- end}}
<p>{{.Params.cover.caption}}</p>
<p>{{.Params.cover.caption | markdownify }}</p>
</figure>
{{- end }}
{{- if .Params.ShowToc }}
Expand Down

1 comment on commit d0c7635

@adityatelange
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: markdownify

only for post-cover caption

Please sign in to comment.