Skip to content

Commit b2761a1

Browse files
committed
Pass kata_description to meta tags when visiting '/kata'
1 parent 2821d1d commit b2761a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def full_url(page_url)
1919
end
2020

2121
def meta_description(description)
22-
description ||= kata_description if @obj && @obj.permalink == "kata"
22+
description = kata_description if @obj && @obj.permalink == "kata"
2323
if description.empty?
2424
"CoderDojo は子どものためのプログラミング道場です。2011年にアイルランドで始まり、全国では#{Dojo::NUM_OF_JAPAN_DOJOS}ヶ所以上、世界では#{Dojo::NUM_OF_COUNTRIES}ヶ国・#{Dojo::NUM_OF_WHOLE_DOJOS}ヶ所で開催されています。" # Default description
2525
else

0 commit comments

Comments
 (0)