Skip to content

Commit d0c7635

Browse files
committed
post-cover: enable mardownify
* allows users to add links and stuff #17
1 parent a9e00a3 commit d0c7635

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

assets/css/post-entry.css

+5
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,8 @@
100100
pointer-events: none;
101101
width: 100%;
102102
}
103+
104+
.entry-cover a {
105+
color: var(--secondary);
106+
box-shadow: 0 1px 0 var(--primary);
107+
}

layouts/_default/single.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1 class="post-title">
3333
{{- else}}
3434
<img src="{{ .Permalink -}} {{- .Params.cover.image }}" alt="{{ .Params.cover.alt | plainify }}">
3535
{{- end}}
36-
<p>{{.Params.cover.caption}}</p>
36+
<p>{{.Params.cover.caption | markdownify }}</p>
3737
</figure>
3838
{{- end }}
3939
{{- if .Params.ShowToc }}

0 commit comments

Comments
 (0)