<commit_before>.category-module {
    margin: 0;
    padding: 0;
    list-style: none;

    &::after {
        content: "";
        display: table;
        clear: both;
    }

    li {
        display: table;
        width: 100%;
        margin-bottom: 1em;

        @media (min-width: $breakpoint) {
            float: left;
            width: 49%;

            &:nth-child(2n + 1) {
                margin-right: 2%;
            }
        }
    }

    .mod-articles-category-title {
        text-decoration: none;

        padding: 1em;
        text-align: center;
        display: table-cell;
        vertical-align: middle;
        height: 8em;
        margin-bottom: 2em;
        font-weight: bold;
        font-size: 110%;

        background: $color-brand-light;
        color: contrast-color($color-brand-light);

        &:focus, &:hover {
            background: $color-brand;
            color: contrast-color($color-brand);
        }
    }
}<commit_msg>fix category-module bug<commit_after>.category-module {
    margin: 0;
    padding: 0;
    list-style: none;

    &::after {
        content: "";
        display: table;
        clear: both;
    }

    li {
        display: table;
        width: 100%;
        margin-bottom: 1em;

        @media (min-width: $breakpoint) {
            float: left;
            width: 49%;

            &:nth-child(2n + 1) {
                margin-right: 2%;
            }
        }
    }

    .mod-articles-category-title {
        text-decoration: none;

        padding: 1em;
        text-align: center;
        display: table-cell;
        vertical-align: middle;
        height: 8em;
        margin-bottom: 2em;
        font-weight: bold;
        font-size: 110%;

        background: $color-brand-light;
        color: contrast-color($color-brand-light);

        &:focus, &:hover {
            background: $color-brand;
            color: contrast-color($color-brand);
        }
    }
}

// There is a weird bug that the category module of an article will also show
// on the search page if you enter a searchterm on the article page
.search + .category-module {
    display: none;
}
{'fraction_non_alphanumeric': 0.12306972391202621, 'fraction_numerical': 0.015910154422087038, 'mean_word_length': 1.5005847953216374, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5603203', 'n_tokens_mistral': 684, 'n_tokens_neox': 628, 'n_words': 154}