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:
BBaoVanC 2021-10-11 21:35:16 -05:00
parent 93ce39fdac
commit e62ccfd085
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
6 changed files with 17 additions and 17 deletions

View File

@ -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 }}>

View File

@ -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">

View File

@ -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>

View File

@ -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>

View File

@ -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" . }}

View File

@ -2,7 +2,7 @@
<div class="post-metadata">
{{ if .Date }}
<span class="post-meta-item">
{{ partialCached "icon.html" "calendar" "calendar" }}
{{ partial "icon.html" "calendar" }}
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
{{ i18n "long_date" (dict "Date" .Date "Data" .Site.Data) }}
</time>
@ -11,7 +11,7 @@
{{ if not .Site.Params.repoURL }}
{{ if ne .Lastmod .Date }}
<span class="post-meta-item">
{{ partialCached "icon.html" "edit-2" "edit-2" }}
{{ partial "icon.html" "edit-2" }}
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
{{ i18n "long_date" (dict "Date" .Lastmod "Data" .Site.Data) }}
</time>
@ -22,7 +22,7 @@
{{ if .IsTranslated }}
<span class="post-meta-item">
{{ partialCached "icon.html" "globe" "globe" }}
{{ partial "icon.html" "globe" }}
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Language }}</a>
{{ end }}
@ -31,14 +31,14 @@
{{ if .Site.Params.wordcount }}
<span class="post-meta-item">
{{ partialCached "icon.html" "type" "type" }}
{{ partial "icon.html" "type" }}
{{ i18n "wordcount" .WordCount }}
</span>
{{ end }}
{{ if .Site.Params.readingtime }}
<span class="post-meta-item">
{{ partialCached "icon.html" "clock" "clock" }}
{{ partial "icon.html" "clock" }}
{{ i18n "readingtime" .ReadingTime }}
</span>
{{ end }}
@ -46,7 +46,7 @@
{{ if .Site.Params.repoURL }}
{{ with .GitInfo }}
<span class="post-meta-item">
{{ partialCached "icon.html" "git-commit" "git-commit" }}
{{ partial "icon.html" "git-commit" }}
<a href="{{ (printf "%s/commit/%s" $.Site.Params.repoURL .Hash) | absLangURL }}">
<code>{{ .AbbreviatedHash }}</code>
</a>
@ -57,7 +57,7 @@
<div class="tags">
{{ range (.GetTerms "tags") }}
<span class="post-meta-item">
{{ partialCached "icon.html" "tag" "tag" }}
{{ partial "icon.html" "tag" }}
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</span>
{{ end }}