Browse Source

Markdownify titles and other single-line content

master
Adrian Short 1 year ago
parent
commit
710a65265b
Signed by: adrian GPG Key ID: 780AE3785F805F51
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      layouts/_default/li.html
  2. +3
    -3
      layouts/_default/single.html
  3. +1
    -1
      layouts/index.html

+ 2
- 2
layouts/_default/li.html View File

@@ -1,5 +1,5 @@
<div>
<h2><a href="{{ .Permalink | relURL }}">{{ .Title }}</a></h2>
<p>{{ .Description }}</p>
<h2><a href="{{ .Permalink | relURL }}">{{ .Title | markdownify }}</a></h2>
<p>{{ .Description | markdownify }}</p>
<p class=list-date>{{ .Date.Format "January 2006" }}</p>
</div>

+ 3
- 3
layouts/_default/single.html View File

@@ -1,11 +1,11 @@
{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
<h1>{{ .Title | markdownify }}</h1>
<div id=description>
{{ .Description }}
{{ .Description | markdownify }}
</div>
<div class=postmeta>
<a href="/">{{ .Site.Params.AuthorName }}</a>
<a href="/">{{ .Site.Params.AuthorName | markdownify }}</a>
&middot;
{{ .Date.Format "2 January 2006" }}
</div>


+ 1
- 1
layouts/index.html View File

@@ -1,5 +1,5 @@
{{ define "main" }}
<h1 id=site-title>{{ .Site.Title }}</h1>
<h1 id=site-title>{{ .Site.Title | markdownify }}</h1>
<div id=articles>
{{ range .Paginator.Pages }}
{{ .Render "li" }}


Loading…
Cancel
Save