mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 14:05:33 +08:00
theme: remove Hugo build warning if page is not file based
This commit is contained in:
parent
fee394cd64
commit
df232b84fa
@ -59,12 +59,14 @@
|
||||
{{- if .Site.Params.editURL }}
|
||||
{{- $File := .File }}
|
||||
{{- $Site := .Site }}
|
||||
{{- with $File.Path }}
|
||||
{{- if $File }}
|
||||
{{- with $File.Path }}
|
||||
<div id="top-github-link">
|
||||
<a class="github-link" title='{{ T "Edit-this-page" }}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
|
||||
<i class="fas fa-pen fa-fw"></i>
|
||||
</a>
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- $defaultDisableToc := .Site.Params.disableToc | default false }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user