Skip to content

Commit 93e91fa

Browse files
committed
Added warning when <noscript> tag could not be generated
1 parent 4a24dcd commit 93e91fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/jekyll-gist/gist_tag.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def gist_noscript_tag(gist_id, filename = nil)
5151
code = fetch_raw_code(gist_id, filename)
5252
if !code.nil?
5353
"<noscript><pre>#{CGI.escapeHTML(code)}</pre></noscript>"
54+
else
55+
Jekyll.logger.warn "Warning:", "The <noscript> tag for your gist #{gist_id} could not be generated. This will affect users who do not have JavaScript available or enabled in their browsers."
5456
end
5557
end
5658

0 commit comments

Comments
 (0)