 -->
            {{ if in .Params.categories $currentCategory}}
                <!-- check if the title of the tag matches the category's name -->
                {{ if in .Params.title $currentCategory }}
                    <!-- content can be assigned directly to the general category
                    this check is how we detect if content has been assigned to the general category -->
                    {{ $categoryPermalink = .Permalink }}
                {{ else }}
                    <!-- current t