Remove func-content.html
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
{{ if not ($subpage.Param "paige.exclude_feeds") }}
|
||||
<entry>
|
||||
{{ $authors := partial "paige/func-authors.html" $subpage }}
|
||||
{{ $content := partial "paige/func-content.html" $subpage }}
|
||||
{{ $content := $subpage.Content }}
|
||||
{{ $description := markdownify $subpage.Description }}
|
||||
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
|
||||
{{ $id := cond ($subpage.Params.id | not) $subpage.RelPermalink $subpage.Params.id }}
|
||||
|
@@ -97,7 +97,7 @@
|
||||
<item>
|
||||
{{ $author := "" }}
|
||||
{{ $authors := partial "paige/func-authors.html" $subpage }}
|
||||
{{ $content := partial "paige/func-content.html" $subpage }}
|
||||
{{ $content := $subpage.Content }}
|
||||
{{ $external := and $subpage.Params.link (not ($subpage.Param "paige.feeds.disable_link")) | not | not }}
|
||||
{{ $id := cond ($subpage.Params.id | not) $subpage.RelPermalink $subpage.Params.id }}
|
||||
{{ $published := $subpage.PublishDate.Format $date }}
|
||||
|
@@ -1,31 +0,0 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $result := $page.Content }}
|
||||
|
||||
{{ $matches := findRESubmatch "<h([1-6])[ >]" $result }}
|
||||
|
||||
{{ with $matches }}
|
||||
{{ $max := 0 }}
|
||||
|
||||
{{ range . }}
|
||||
{{ $level := index . 1 | int }}
|
||||
|
||||
{{ if gt $level $max }}
|
||||
{{ $max = $level }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and $max (lt $max 6) }}
|
||||
{{ $shift := sub 6 $max }}
|
||||
|
||||
{{ range seq $max | collections.Reverse }}
|
||||
{{ $old := . }}
|
||||
{{ $new := add $old $shift }}
|
||||
|
||||
{{ $result = replaceRE (printf "<h%d([ >])" $old) (printf "<h%d$1" $new) $result }}
|
||||
{{ $result = replaceRE (printf "</h%d>" $old) (printf "</h%d>" $new) $result }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $result }}
|
@@ -1,7 +1,7 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $class := slice }}
|
||||
{{ $content := partial "paige/func-content.html" $page }}
|
||||
{{ $content := $page.Content }}
|
||||
{{ $draft := $page.Draft }}
|
||||
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
|
||||
{{ $future := and $page.PublishDate (gt $page.PublishDate now) }}
|
||||
|
Reference in New Issue
Block a user