~ritho/rweb

d5f1170031c95346858c45369a72f78b85a9d06d — Ritho 3 days ago 478496a main v1.0.5
Set the right order for the blog categories.

Signed-off-by: Ritho <palvarez@ritho.net>
3 files changed, 9 insertions(+), 2 deletions(-)

M debian/changelog
M internal/engine/storage/blog/blog.go
M internal/server/server.go
M debian/changelog => debian/changelog +6 -0
@@ 1,3 1,9 @@
web (1.0.5) unstable; urgency=low

  * Set the right order for the blog categories.

 -- Pablo Alvarez de Sotomayor Posadillo <palvarez@ritho.net>  Thu, 22 Sep 2022 22:36:12 +0200

web (1.0.4) unstable; urgency=low

  * Improve the build and install targets on the Makefile.

M internal/engine/storage/blog/blog.go => internal/engine/storage/blog/blog.go +1 -1
@@ 220,7 220,7 @@ func (s *storage) sortedCategories() []string {
		res = append(res, cat)
	}
	sort.Slice(res, func(i, j int) bool {
		return res[i] > res[j]
		return strings.ToLower(res[i]) < strings.ToLower(res[j])
	})

	return res

M internal/server/server.go => internal/server/server.go +2 -1
@@ 87,7 87,8 @@ func (s *server) Start() error {
		s.cfg.Server.Port)
	if s.cfg.Server.TLS {
		go func() {
			if err := s.srv.Start(fmt.Sprintf("%s:80", s.cfg.Server.Domain)); err != nil {
			err := s.srv.Start(fmt.Sprintf("%s:80", s.cfg.Server.Domain))
			if err != nil {
				log.Fatalf("Error starting the server: %s", err)
			}
		}()