Fix warning about .BaseFileName on zero object
This commit is contained in:
parent
8013038a72
commit
7967eb3b49
|
@ -1,5 +1,6 @@
|
|||
<script type="text/javascript" src="/js/navbar.js"></script>
|
||||
|
||||
{{ if .File }}
|
||||
{{ $page_id := .File.BaseFileName }}
|
||||
{{ if .Site.Params.comments.webmention }}
|
||||
{{ $webmention_js := resources.Get "js/webmention.js" | minify }}
|
||||
|
@ -15,3 +16,4 @@
|
|||
data-node="#cactus-comments"
|
||||
data-comment-section-id="{{ $page_id }}"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue