diff --git a/views/posts.pug b/views/posts.pug deleted file mode 100644 index ff4dfa3..0000000 --- a/views/posts.pug +++ /dev/null @@ -1,67 +0,0 @@ -html - head - include includes/head.pug - body - include includes/header.pug - .App - .Profile - if tag - .App-cover.NewCover.TagsCover(style='background-image: linear-gradient(rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 20%), url("/' + tag.background_hash + '.jpg");') - .Cover-metadata - h1.Cover-name= tag.display_name - p.description= tag.description - .Cover-stats - .Cover-item-count #{tag.total_items} posts - else if user - .App-cover.NewCover.ProfilesCover(style='background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("' + util.proxyURL(user.cover_url) + '");') - .ProfileCover-header - .ProfileMeta - span.UserAvatar.ProfileMeta-avatar(style='background-image: url("' + util.proxyURL(user.avatar_url) + '");' title=user.username) - .ProfileMeta-data - .ProfileMeta-user= user.username - .ProfileMeta-stats - | #{user.reputation_count} pts - span.ProfileMeta-divider • - | #{user.reputation_name} - .ProfilePosts-posts - .ProfilePosts-top - each post in posts - div.ProfilePost - a.Post-item.novote(href="/gallery/"+post.id) - .Post-item-container - .Post-item-media - if post.images && post.images[0].animated - .PostVideo - .PostVideo-video-wrapper - video(playsinline autoplay loop mute) - source(type="video/mp4" src=util.proxyURL(post.images[0].mp4)) - else - .imageContainer - img(src=util.proxyURL(post.images ? post.images[0].link : post.link) loading="lazy") - .Post-item-meta - .Post-item-title-wrap - .Post-item-title - span= post.title - .Post-item-info - .Media - div(class='Post-item-stat Post-item-vote' title='Upvotes') - div(class='Vote Vote-up') - svg(width='16', height='16', viewBox='0 0 16 16', fill='none', xmlns='http://www.w3.org/2000/svg') - title Upvotes - | - .points= post.points - div(class='Post-item-stat Post-item-vote' title='Downvotes') - div(class='Vote Vote-down') - svg(width='16', height='16', viewBox='0 0 16 16', fill='none', xmlns='http://www.w3.org/2000/svg') - title Downvotes - | - .Media.Post-item-stat - svg(width="16" height="16" viewBox="0 0 16 16" class="PostCommentsIcon" fill="none" xmlns="http://www.w3.org/2000/svg") - title Comments - | - .MediaBody= post.comment_count - .Media.Post-item-stat - svg(width="16" height="16" viewBox="0 0 16 16" class="PostViewsIcon" fill="none" xmlns="http://www.w3.org/2000/svg") - title Post views - | - .MediaBody= post.views