Skip to content

Instantly share code, notes, and snippets.

@RyanKor
Created October 24, 2020 18:50
Show Gist options
  • Save RyanKor/8a585337d2a6c773d42f4ac0820fe82c to your computer and use it in GitHub Desktop.
Save RyanKor/8a585337d2a6c773d42f4ac0820fe82c to your computer and use it in GitHub Desktop.
Main page for hash tag
extends layout
block content
if user
.twits
form#hashtag-form(action='/post/hashtag')
input(type='text' name='hashtag' placeholder='Tag Search')
button.btn Search
form#sns-form(action='/post' method='POST' enctype='multipart/form-data')
.sns-discription post content
textarea#sns(name='content' maxlength=140)
if user
.timeline
for content in contents
.post
.twit-author Author : #{content.user.nick}
.twit-content= content.content
input.twit-user-id(type='hidden' value=content.user.id)
input.twit-id(type='hidden' value=content.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment