diff --git a/app/wrapper.go b/app/wrapper.go index 006a02a..0a3d0a7 100644 --- a/app/wrapper.go +++ b/app/wrapper.go @@ -131,13 +131,13 @@ func (s skunkyart) GRUser() { case "group_admins": var htm strings.Builder for _, z := range x.ModuleData.GroupAdmins.Results { - htm.WriteString(`

`) htm.WriteString(z.User.Username) - htm.WriteString(`

`) + htm.WriteString(``) } group.Admins += htm.String() } @@ -158,8 +158,18 @@ func (s skunkyart) GRUser() { for _, x := range gallery.Content.Gruser.Page.Modules { if l := len(x.ModuleData.Folders.Results); l != 0 { var folders strings.Builder - folders.WriteString(`

Folders: `) - for n, x := range x.ModuleData.Folders.Results { + folders.WriteString(`

# Folders


`) + for _, x := range x.ModuleData.Folders.Results { + folders.WriteString(`
`) + + folders.WriteString(`
`) + folders.WriteString(``) folders.WriteString(x.Name) folders.WriteString(``) - if n+1 < l { - folders.WriteString(" | ") - } + + folders.WriteString("
") } - folders.WriteString("") + folders.WriteString(`

# Content

`) group.Gallery.Folders = folders.String() } @@ -225,6 +234,10 @@ func (s skunkyart) Deviation(author, postname string) { post.Tags += tag.String() } + if post.Post.Comments.Total <= 50 { + post.Post.Comments.Cursor = "" + } + post.Comments = s.ParseComments(devianter.CommentsFunc(id, post.Post.Comments.Cursor, s.Page, 1)) s.ExecuteTemplate("html/deviantion.htm", &s) diff --git a/config.example.json b/config.example.json index 2c3205d..4dad077 100644 --- a/config.example.json +++ b/config.example.json @@ -11,5 +11,5 @@ "templates-dir": "html", "wixmp-proxy": "http://127.0.0.1:8080", "proxy": true, - "nsfw": false + "nsfw": true } \ No newline at end of file diff --git a/css/skunky.css b/css/skunky.css index b440f5b..c299dab 100644 --- a/css/skunky.css +++ b/css/skunky.css @@ -81,7 +81,7 @@ form input, button, select { border: 3px solid #4d27d6; transition: 400ms; } -.block img { +.block img, .admins .admin img{ width: 100%; } .block p { @@ -95,3 +95,21 @@ form input, button, select { .ubg img { width: 20%; } +.folders { + display: flex +} +.folder-item { + background-color: #060820; + border: 3px solid #060820; +} +.admins { + display: flex +} +.admins .admin { + margin-left: 1%; + background-color: #011522; + padding: 3px; + word-break: break-all; + text-align: center; + width: 5%; +} \ No newline at end of file diff --git a/html/gruser.htm b/html/gruser.htm index 4280628..a1f6e37 100644 --- a/html/gruser.htm +++ b/html/gruser.htm @@ -57,7 +57,9 @@ {{if ne .Templates.GroupUser.Admins ""}}

# Group admins

+
{{.Templates.GroupUser.Admins}} +
{{end}} {{if ne .Templates.GroupUser.About.Interests ""}}