% my $css_version = config 'css_version';
<%= title %>
% my $ogimage = stash 'ogimage'; % my $user_agent = stash 'useragent'; % if (defined $ogimage && $user_agent !~ /TelegramBot/) {
% } else {
% }
<% for my $category_key (sort { $categories->{$a}{priority} <=> $categories->{$b}{priority} } keys %$categories) { my $category = $categories->{$category_key}; my $selected = defined($current_slug) && $category->{slug} eq $current_slug; %>
" href="<%= '/'.$category->{slug} %>"><%==$category->{menu_text}%>
<% } %>
<%== $categories->{index}{menu_text} %>
<% my $first = 1; for my $category_key (sort { $categories->{$a}{priority} <=> $categories->{$b}{priority} } keys %$categories) { my $category = $categories->{$category_key}; %>
<%==$category->{menu_text}%>
<% } %>
<%= content %>