Sfoglia il codice sorgente

Markdownify titles and other single-line content

master
Adrian Short 2 anni fa
parent
commit
710a65265b
Firmato da: adrian ID Chiave GPG: 780AE3785F805F51
3 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  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 Vedi 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 Vedi 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 Vedi 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" }}


Caricamento…
Annulla
Salva