Website Appearance Enhancements
Changes were made in the website layout (layout.html), artist page (artist.html), list of artists page (artists.html), and home page (home.html) to improve the visual content. These changes include new sections for displaying artist information & artwork and improved site navigation (nav.html). Moreover, file paths were also adjusted to ensure better performance.
New Website Routes
In handlers, two new website routes were established: One for handling requests to individual artist pages (artist.go), and another for handling requests to the page displaying a list of all artists (artists.go). This will allow visitors to navigate to pages that present detailed information about each artist and their works.
Website Rendering and Utility Functions
A new function, renderBlock, was introduced in main.go to help display specific blocks of HTML content from a template. In addition, utility functions were added to main.go and a new file, utils.go, for file URL generation and data normalization, enhancing the overall functionality and flexibility of the site.
Database Structure Upgrade
The database schema for the artists table was updated in migrations/1695699036_artists_table.go and migrations/1696479339_add_complementary_artists.go to enable storing more detailed information about artists, which will improve the website's content richness.
Additional Logic Function
A new function SetBoolWithFallback was added in utils/main.go, which should help improve the site's efficiency in handling and displaying data.
Style Tweaks
In the stylesheet (style.scss), whitespace was removed for (selector) #dual-right to streamline the layout, and a new class .line-clamp-3 was added for better text presentation.
PR Summary
Website Appearance Enhancements Changes were made in the website layout (
layout.html
), artist page (artist.html
), list of artists page (artists.html
), and home page (home.html
) to improve the visual content. These changes include new sections for displaying artist information & artwork and improved site navigation (nav.html
). Moreover, file paths were also adjusted to ensure better performance.New Website Routes In
handlers
, two new website routes were established: One for handling requests to individual artist pages (artist.go
), and another for handling requests to the page displaying a list of all artists (artists.go
). This will allow visitors to navigate to pages that present detailed information about each artist and their works.Website Rendering and Utility Functions A new function,
renderBlock
, was introduced inmain.go
to help display specific blocks of HTML content from a template. In addition, utility functions were added tomain.go
and a new file,utils.go
, for file URL generation and data normalization, enhancing the overall functionality and flexibility of the site.Database Structure Upgrade The database schema for the
artists
table was updated inmigrations/1695699036_artists_table.go
andmigrations/1696479339_add_complementary_artists.go
to enable storing more detailed information about artists, which will improve the website's content richness.Additional Logic Function A new function
SetBoolWithFallback
was added inutils/main.go
, which should help improve the site's efficiency in handling and displaying data.Style Tweaks In the stylesheet (
style.scss
), whitespace was removed for(selector) #dual-right
to streamline the layout, and a new class.line-clamp-3
was added for better text presentation.