1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-13 08:43:07 +00:00

this is the initial commit for my AWESOME website

Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2024-11-13 22:51:08 -05:00
commit e3c09d7f0d
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
42 changed files with 5710 additions and 0 deletions

30
views/user.pug Normal file
View file

@ -0,0 +1,30 @@
extends site.pug
//- Display mood here but keep yourself dry (i.e. dont request user mood if the profile being viewed is the profile of the currently logged-in user)
block content
h1= user.name
if !isSelf
form(action=`/users/${user.name}/follow`, method="post")
button(type="submit")= isFollowing ? "unfollow" : "follow"
br
span= user.bio || "[no bio]"
if user.website
br
a(href=user.website)= user.website
br
br
h2 Current mood
if userMood
span
| Feeling
|
strong
if isSelf
| #{currentMood}
else
| #{userMood.mood}
br
div(style="margin-left:2ch;word-wrap:break-word;")= userMood.desc || "[no mood description]"
else
span User has not yet set a mood!