mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-16 21:28:31 -04:00
re-organize about_excerpt partial and index
This commit is contained in:
parent
c51225fc22
commit
9024d547e2
|
@ -1,8 +1,11 @@
|
|||
{{ define "main" }}
|
||||
<article>
|
||||
<header id="post-header">
|
||||
{{- partial "about_excerpt.html" . -}}
|
||||
{{ if eq .RelPermalink "/" }}
|
||||
<h1 style="visibility:hidden;"> </h1>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{- partial "about_excerpt.html" . -}}
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
|
@ -1,7 +1,3 @@
|
|||
{{ if eq .RelPermalink "/" }}
|
||||
<h1 style="visibility:hidden;"> </h1>
|
||||
<div></div>
|
||||
{{ end }}
|
||||
{{ $about := .Site.GetPage "about" }}
|
||||
{{ $firstParagraph := (findRE "<p>.*?</p>" ($about.Content) 1) }}
|
||||
{{ safeHTML (index $firstParagraph 0) }}
|
||||
|
|
Loading…
Reference in a new issue