Skip to content

Commit 57b9363

Browse files
Copilotdmalan
andcommitted
Refine code structure in DescriptionGenerator
Co-authored-by: dmalan <[email protected]>
1 parent 396829d commit 57b9363

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/jekyll-theme-cs50.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ module DescriptionGenerator
104104
def describe(input, max_length = 160)
105105
return "" if input.nil? || input.to_s.strip.empty?
106106

107-
# Render Liquid tags first if $site is defined
108107
markdown = input.to_s
108+
109+
# Render Liquid tags first if $site is defined
109110
if defined?($site) && $site
110111
begin
111112
markdown = $site.liquid_renderer.file("(cs50-describe)").parse(markdown).render!($site.site_payload, { :registers => { :site => $site } })

0 commit comments

Comments
 (0)