<commit_before>extends layout

block vars

block content

    .container-fluid

        .row
            section.event-banner.carousel.slide(id='front-carousel' data-ride='carousel')
                .carousel-inner(role='listbox')
                    - var photoActive = 0
                    each photo in op.get(echo, ['photos'], [{ix: 0, big: {file: '/images/placeholder.jpg'}}])
                        .item(class=(photoActive++ === 0 ? 'active' : ''))
                            figure(id = 'slide-' + photo.ix, style='background-image: url(' + op.get(photo, ['big', 'file'], op.get(photo, ['medium', 'file'], '/images/placeholder.jpg')) + ');')
                            header.col-md-8
                                p= moment(op.get(echo, ['date'])).locale(lang).format('L')

                                h1.artist= op.get(echo, lang + '-title', '')

                                    if op.get(echo, lang + '-subtitle', '')
                                        span= ' / ' + op.get(echo, lang + '-subtitle', '')
                                
                                if op.get(echo, 'author', false)
                                    p.subtitle= op.get(echo, 'author', []).map(function(a){return a.value}).join(', ')

                            ul.event-categories
                                each echoCategory in echoCategories
                                    li.text-uppercase.h3(class=(echoCategory.checked ? "" : "unactive"))
                                        span= op.get(echoCategory, [lang+'-name'], t('<NAME>'))

                if op.get(echo, ['photos'], []).length > 1
                    a.left.carousel-control(href='#front-carousel' role='button' data-slide='prev')
                        span.icon-prev.arrow-left(aria-hidden='true')
                        span.sr-only Previous
                    a.right.carousel-control(href='#front-carousel' role='button' data-slide='next')
                        span.icon-next.arrow-right(aria-hidden='true')
                        span.sr-only Next

                //- Gradient Map for images
                each photo in op.get(echo, ['photos'], [{ix: 0, big: {file: '/images/placeholder.jpg'}}])
                    script.
                        var slide#{photo.ix} = document.getElementById('slide-#{photo.ix}');
                        GradientMaps.applyGradientMap(slide#{photo.ix}, '#{SAAL.secondary_color}, #{SAAL.main_color}'); 

        .row.front-page-margin

            .col-md-12
                .row

                    .article.main-text.h3.col-sm-12.col-md-8.col-lg-8!= op.get(echo, [lang + '-contents'])

                        p.signature= op.get(echo, 'author', []).map(function(a){return a.value}).join(', ') + ' @ ' + moment(op.get(echo, ['date'])).locale(lang).format('L')

                        //- GALLERY
                        if op.get(echo, ['photos'])
                            .gallery
                                
                                //- If is single image
                                if op.get(echo, ['photos']).length === 1
                                    .row
                                        .col-xs-12
                                            img(src=op.get(echo, ['photos', 0, 'big', 'file'], '/images/placeholder.jpg'), class='img-responsive')
                                
                                //- If more than one, make gallery
                                if op.get(echo, ['photos']).length > 1
                                    h2= t('title.gallery')
                                    .row
                                        each photo in op.get(echo, ['photos'], [])
                                            .single-image.col-xs-6.col-sm-3.col-md-4
                                                  a.fancybox(rel='gallery', href=op.get(photo, ['big', 'file'], op.get(photo, ['medium', 'file'], '/images/placeholder.jpg')) )
                                                    img(src=op.get(photo, ['medium', 'file'], '/images/placeholder.jpg'), class='img-responsive')                
                        
                        //- VIDEO/SOUND
                        if op.get(echo, ['audio']) || op.get(echo, ['video'])
                            .video-sound
                                if op.get(echo, ['audio']).length
                                    h2= t('title.sound')
                                    each item in op.get(echo, ['audio'])
                                        div!= item
                                if op.get(echo, ['video']).length
                                    h2= t('title.video')
                                    each item in op.get(echo, 'video')
                                        div!= item
                        
                        .comments
                            .fb-comments(data-href='', data-width="100%", data-numposts="10")
                    
                            script.
                                document.getElementsByClassName('fb-comments')[0].setAttribute('data-href', window.location.href)

                    - var postCount = 0
                    .col-sm-12.col-md-4.col-lg-4<commit_msg>magazine no-gallery option<commit_after>extends layout

block vars

block content

    .container-fluid

        .row
            section.event-banner.carousel.slide(id='front-carousel' data-ride='carousel')
                .carousel-inner(role='listbox')
                    - var photoActive = 0
                    each photo in op.get(echo, ['photos'], [{ix: 0, big: {file: '/images/placeholder.jpg'}}])
                        .item(class=(photoActive++ === 0 ? 'active' : ''))
                            figure(id = 'slide-' + photo.ix, style='background-image: url(' + op.get(photo, ['big', 'file'], op.get(photo, ['medium', 'file'], '/images/placeholder.jpg')) + ');')
                            header.col-md-8
                                p= moment(op.get(echo, ['date'])).locale(lang).format('L')

                                h1.artist= op.get(echo, lang + '-title', '')

                                    if op.get(echo, lang + '-subtitle', '')
                                        span= ' / ' + op.get(echo, lang + '-subtitle', '')
                                
                                if op.get(echo, 'author', false)
                                    p.subtitle= op.get(echo, 'author', []).map(function(a){return a.value}).join(', ')

                            ul.event-categories
                                each echoCategory in echoCategories
                                    li.text-uppercase.h3(class=(echoCategory.checked ? "" : "unactive"))
                                        span= op.get(echoCategory, [lang+'-name'], t('<NAME>'))

                if op.get(echo, ['photos'], []).length > 1
                    a.left.carousel-control(href='#front-carousel' role='button' data-slide='prev')
                        span.icon-prev.arrow-left(aria-hidden='true')
                        span.sr-only Previous
                    a.right.carousel-control(href='#front-carousel' role='button' data-slide='next')
                        span.icon-next.arrow-right(aria-hidden='true')
                        span.sr-only Next

                //- Gradient Map for images
                each photo in op.get(echo, ['photos'], [{ix: 0, big: {file: '/images/placeholder.jpg'}}])
                    script.
                        var slide#{photo.ix} = document.getElementById('slide-#{photo.ix}');
                        GradientMaps.applyGradientMap(slide#{photo.ix}, '#{SAAL.secondary_color}, #{SAAL.main_color}'); 

        .row.front-page-margin

            .col-md-12
                .row

                    .article.main-text.h3.col-sm-12.col-md-8.col-lg-8!= op.get(echo, [lang + '-contents'])

                        p.signature= op.get(echo, 'author', []).map(function(a){return a.value}).join(', ') + ' @ ' + moment(op.get(echo, ['date'])).locale(lang).format('L')

                        //- GALLERY
                        if op.get(echo, ['photos'])
                            .gallery
                                
                                //- If is single image
                                if op.get(echo, ['photos']).length === 1
                                    .row
                                        .col-xs-12
                                            if op.get(echo, ['photos', 0, 'big', 'file'], false)
                                                img(src=op.get(echo, ['photos', 0, 'big', 'file'], '/images/placeholder.jpg'), class='img-responsive, foo')
                                
                                //- If more than one, make gallery
                                if op.get(echo, ['photos']).length > 1
                                    h2= t('title.gallery')
                                    .row
                                        each photo in op.get(echo, ['photos'], [])
                                            .single-image.col-xs-6.col-sm-3.col-md-4
                                                  a.fancybox(rel='gallery', href=op.get(photo, ['big', 'file'], op.get(photo, ['medium', 'file'], '/images/placeholder.jpg')) )
                                                    img(src=op.get(photo, ['medium', 'file'], '/images/placeholder.jpg'), class='img-responsive, baz')
                        
                        //- VIDEO/SOUND
                        if op.get(echo, ['audio']) || op.get(echo, ['video'])
                            .video-sound
                                if op.get(echo, ['audio']).length
                                    h2= t('title.sound')
                                    each item in op.get(echo, ['audio'])
                                        div!= item
                                if op.get(echo, ['video']).length
                                    h2= t('title.video')
                                    each item in op.get(echo, 'video')
                                        div!= item
                        
                        .comments
                            .fb-comments(data-href='', data-width="100%", data-numposts="10")
                    
                            script.
                                document.getElementsByClassName('fb-comments')[0].setAttribute('data-href', window.location.href)

                    - var postCount = 0
                    .col-sm-12.col-md-4.col-lg-4
{'fraction_non_alphanumeric': 0.14387060158910328, 'fraction_numerical': 0.007094211123723042, 'mean_word_length': 1.0017039000378645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 72, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2105836', 'n_tokens_mistral': 2718, 'n_tokens_neox': 2522, 'n_words': 456}