<commit_before>{% set isPastHangout = entry ? isPastHangout(entry) : false %}
{% set isOngoingHangout = entry ? isOngoingHangout(entry) : false %}
{% set isUpcomingHangout = entry ? isUpcomingHangout(entry) : false %}

{% set lead = entry.title ?? 'CraftX Hangouts' %}
{% set text %}
    {{ 'An online gathering of friends and colleagues discussing [Craft CMS](https://craftcms.com), Design, Development, Freelancing, and everything in between.
    Hosted by [<NAME>](https://selvinortiz.com) and supported by talented members of the Craft community.'|doxter }}
{% endset %}

{% set ctaUrl = isOngoingHangout ? entry.hangoutLink : (isPastHangout or isUpcomingHangout) ? '/hangouts' : '/hangouts/next' %}
{% set ctaText = isOngoingHangout ? 'Join Live Hangout' : (isPastHangout or isUpcomingHangout) ? 'All Hangouts' : 'Next Hangout' %}
{% set ctaIconClasses = isOngoingHangout ? 'fa-comments-o is-blinking' : (isPastHangout or isUpcomingHangout) ? 'fa-comments-o' : 'fa-clock-o' %}

{% if isUpcomingHangout or isOngoingHangout %}
    {% set text = 'Join us on ' ~ entry.hangoutDateTime.format('l, F j, Y @ g:i A (T)') %}
{% endif %}

{% if isPastHangout %}
    {% set text = 'Held on ' ~ entry.hangoutDateTime.format('l, F j, Y @ g:i A (T)') %}
{% endif %}

<section class="section section--hero has-text-centered"><commit_msg>Fixes button states on hangout hero<commit_after>{% set isPastHangout = entry ? isPastHangout(entry) : false %}
{% set isOngoingHangout = entry ? isOngoingHangout(entry) : false %}
{% set isUpcomingHangout = entry ? isUpcomingHangout(entry) : false %}
{% set weAreOnEntryPage = craft.app.request.segments|length > 1 %}

{% set text %}
    {{ 'An online gathering of friends and colleagues discussing [Craft CMS](https://craftcms.com), Design, Development, Freelancing, and everything in between.
    Hosted by [<NAME>](https://selvinortiz.com) and supported by talented members of the Craft community.'|doxter }}
{% endset %}
{% set lead = entry.title ?? 'CraftX Hangouts' %}
{% set ctaUrl = '/hangouts/next' %}
{% set ctaText = 'Next Hangout' %}
{% set ctaIconClasses = 'fa-clock-o' %}

{% if isOngoingHangout %}
    {% set ctaUrl = entry.hangoutLink %}
    {% set ctaText = 'Join Live Hangout' %}
    {% set ctaIconClasses = 'fa-comments-o is-blinking' %}
{% endif %}

{% if isPastHangout %}
    {% set text = 'Held on ' ~ entry.hangoutDateTime.format('l, F j, Y @ g:i A (T)') %}
    {% set ctaUrl = '/hangouts' %}
    {% set ctaText = 'All Hangouts' %}
    {% set ctaIconClasses = 'fa-comments-o' %}
{% endif %}

{% if isUpcomingHangout and weAreOnEntryPage %}
    {% set ctaUrl = entry.hangoutLink %}
    {% set ctaText = 'Meeting Link' %}
    {% set ctaIconClasses = 'fa-link' %}
{% endif %}

{% if isUpcomingHangout or isOngoingHangout %}
    {% set text = 'Join us on ' ~ entry.hangoutDateTime.format('l, F j, Y @ g:i A (T)') %}
{% endif %}

<section class="section section--hero has-text-centered">
{'fraction_non_alphanumeric': 0.15922263893624275, 'fraction_numerical': 0.00034094783498124785, 'mean_word_length': 4.211367673179396, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '353062', 'n_tokens_mistral': 1135, 'n_tokens_neox': 987, 'n_words': 266}