mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-13 09:57:30 -05:00
Remove partialCached for now because I'm worried of it causing issues
It didn't last very long. Speed isn't really a concern currently since my sites all generate in ~50ms (on my computer, at least).
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
{{ .Text | safeHTML }}
|
||||
<a href="#{{ .Anchor | safeURL }}">
|
||||
<span class="section-header-link">
|
||||
{{ partialCached "icon.html" "link" "link" }}
|
||||
{{ partial "icon.html" "link" }}
|
||||
</span>
|
||||
</a>
|
||||
</h{{ .Level }}>
|
||||
|
@ -1,11 +1,11 @@
|
||||
{{ partialCached "credit.html" . }}
|
||||
{{ partial "credit.html" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Language.Lang }}">
|
||||
{{- partial "head.html" . -}}
|
||||
|
||||
<body>
|
||||
<div class="top">
|
||||
{{ partialCached "top.html" . }}
|
||||
{{ partial "top.html" . }}
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
|
@ -1,23 +1,23 @@
|
||||
{{ define "main" }}
|
||||
{{ if or (eq .Kind "term") (eq .Kind "taxonomy") }}
|
||||
<h1>
|
||||
{{ partialCached "icon.html" "filter" "filter" }}
|
||||
{{ partial "icon.html" "filter" }}
|
||||
{{ i18n "filtering_for" .Title }}
|
||||
{{ if eq .Kind "term" }}
|
||||
<span class="rss-link">
|
||||
{{ with .OutputFormats.Get "rss" }}
|
||||
<a href="{{ .Permalink }}">{{ partialCached "icon.html" "rss" "rss" }}</a>
|
||||
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</h1>
|
||||
{{ else }}
|
||||
<h1>
|
||||
{{ with .Params.icon }}{{ partialCached "icon.html" . . }}{{ end }}
|
||||
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
{{ .Title | markdownify }}
|
||||
<span class="rss-link">
|
||||
{{ with .OutputFormats.Get "rss" }}
|
||||
<a href="{{ .Permalink }}">{{ partialCached "icon.html" "rss" "rss" }}</a>
|
||||
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
</h1>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="post-title">
|
||||
<h1>
|
||||
{{ .Title | markdownify }}
|
||||
{{ if .Draft }}{{ partialCached "icon.html" "edit" "edit" }}{{ end }}
|
||||
{{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
<div class="post">
|
||||
<h2 class="post-title">
|
||||
{{ with .Parent.Params.icon }}{{ partialCached "icon.html" . . }}{{ end }}
|
||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||
{{ if .Draft }}{{ partialCached "icon.html" "edit" "edit" }}{{ end }}
|
||||
{{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}
|
||||
</h2>
|
||||
|
||||
{{ partial "post-metadata.html" . }}
|
||||
|
Reference in New Issue
Block a user