Browse Source

remove extra p tags from teaser

master
Lars Hoogestraat 4 months ago
parent
commit
48ca0d6cf6
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      templates/front/article.html
  2. +1
    -1
      templates/front/articles.html

+ 1
- 1
templates/front/article.html View File

@ -19,7 +19,7 @@
<h2 class="article_link">{{.Headline}}</h2>
<p class="article_info">written by {{.Author.DisplayName}} on {{.PublishedOn.Time | FormatDate}}</p>
<p>{{.Teaser | ParseMarkdown}}</p>
{{.Teaser | ParseMarkdown}}
{{.Content | ParseMarkdown}}


+ 1
- 1
templates/front/articles.html View File

@ -27,7 +27,7 @@
<h2 class="article_link"><a href="/article/{{.SlugEscape}}">{{.Headline}}</a></h2>
<p class="article_info">written by {{.Author.DisplayName}} on {{.PublishedOn.Time | FormatDate}}</p>
<p>{{.Teaser | ParseMarkdown}}</p>
{{.Teaser | ParseMarkdown}}
</article>
{{end}}


Loading…
Cancel
Save