From b5838c946ff21e30bdc0e297641acb620c614127 Mon Sep 17 00:00:00 2001 From: DanInSpace Date: Sat, 6 Mar 2021 14:44:20 +0500 Subject: [PATCH] Fix more typos --- assets/assets.qtpl.go | 4 ++-- hyphae/files.go | 2 +- link/link.go | 2 +- shroom/can.go | 4 ++-- views/history.qtpl | 2 +- views/stuff.qtpl.go | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/assets/assets.qtpl.go b/assets/assets.qtpl.go index 160549b..94343bd 100644 --- a/assets/assets.qtpl.go +++ b/assets/assets.qtpl.go @@ -61,7 +61,7 @@ header { width: 100%; margin-bottom: 1rem; } @media screen and (max-width: 800px) { .amnt-grid { grid-template-columns: 1fr; } - .layout { grid-template-column: auto; grid-template-row: auto auto auto; } + .layout { grid-template-columns: auto; grid-template-rows: auto auto auto; } .main-width { width: 100%; } main { padding: 1rem; margin: 0; } } @@ -178,7 +178,7 @@ figcaption { padding-bottom: .5rem; } .rc-entry__links, .rc-entry__msg { grid-column: 1 / span 2; } .rc-entry__author { font-style: italic; } -.prevnext__el { display: block-inline; min-width: 40%; padding: .5rem; margin-bottom: .25rem; text-decoration: none; border-radius: .25rem; } +.prevnext__el { display: inline-block; min-width: 40%; padding: .5rem; margin-bottom: .25rem; text-decoration: none; border-radius: .25rem; } .prevnext__prev { float: left; } .prevnext__next { float: right; text-align: right; } diff --git a/hyphae/files.go b/hyphae/files.go index 56ccda5..05b856d 100644 --- a/hyphae/files.go +++ b/hyphae/files.go @@ -40,7 +40,7 @@ func indexHelper(path string, nestLevel uint, ch chan *Hypha) { } for _, node := range nodes { - // If this hypha looks like it can be a hypha path, go deeper. Do not touch the .git and static folders for they have an admnistrative importance! + // If this hypha looks like it can be a hypha path, go deeper. Do not touch the .git and static folders for they have an administrative importance! if node.IsDir() && util.IsCanonicalName(node.Name()) && node.Name() != ".git" && diff --git a/link/link.go b/link/link.go index 6fe3323..cde5c4b 100644 --- a/link/link.go +++ b/link/link.go @@ -12,7 +12,7 @@ import ( type LinkType int const ( - LinkInavild LinkType = iota + LinkInvalid LinkType = iota // LinkLocalRoot is a link like "/list", "/user-list", etc. LinkLocalRoot // LinkLocalHypha is a link like "test", "../test", etc. diff --git a/shroom/can.go b/shroom/can.go index 152d896..3e0c67f 100644 --- a/shroom/can.go +++ b/shroom/can.go @@ -13,7 +13,7 @@ func canFactory( dispatcher func(*hyphae.Hypha, *user.User) (string, string), noRightsMsg string, notExistsMsg string, - careAboutExistince bool, + careAboutExistence bool, ) func(*user.User, *hyphae.Hypha) (error, string) { return func(u *user.User, h *hyphae.Hypha) (error, string) { if !u.CanProceed(action) { @@ -21,7 +21,7 @@ func canFactory( return errors.New(noRightsMsg), "Not enough rights" } - if careAboutExistince && !h.Exists { + if careAboutExistence && !h.Exists { rejectLogger(h, u, "does not exist") return errors.New(notExistsMsg), "Does not exist" } diff --git a/views/history.qtpl b/views/history.qtpl index 7b5b0ef..e76565f 100644 --- a/views/history.qtpl +++ b/views/history.qtpl @@ -27,7 +27,7 @@

Subscribe via RSS, Atom or JSON feed.

{% comment %} - Here I am, willing to add some accesibility using ARIA. Turns out, + Here I am, willing to add some accessibility using ARIA. Turns out, role="feed" is not supported in any screen reader as of September 2020. At least web search says so. Even JAWS doesn't support it! How come? I'll add the role anyway. -- bouncepaw diff --git a/views/stuff.qtpl.go b/views/stuff.qtpl.go index 7780726..e5c2dda 100644 --- a/views/stuff.qtpl.go +++ b/views/stuff.qtpl.go @@ -352,7 +352,7 @@ func StreamAboutHTML(qw422016 *qt422016.Writer) { //line views/stuff.qtpl:98 qw422016.N().S(`