-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Change size of front page image to fit lower screen resolutions #73
Conversation
marcusstigelid
commented
Jun 12, 2023
•
edited
edited
- Adds new files site-header.html and index.html, which are duplicated from the theme in order to change some CSS classes
- Updates the image file with a different size and crop
- Moves and adds upon the "Welcome" text on the front page to above the title to make the posts more visible
- Adds a new file site-header.html, which is duplicated from the theme in order to change a CSS class - Updates the image file with a different size and crop - Removes the "Welcome" text on the front page to make the posts more visible
layouts/partials/site-header.html
Outdated
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');"> | ||
<div class="{{ .Site.Params.cover_dimming_class | default "bg-black-60" }}"> | ||
{{ partial "site-navigation.html" .}} | ||
<div class="tc-l pv4 pv5-l ph3 ph4-ns"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This is the line that has been changed from the default theme, specifically the "pv5-l" class which by default is "pv6-l"
…ins and paddings Also sets text-align of the welcome and title text to be centered to make it look better in mobile resolutions.
@@ -0,0 +1,55 @@ | |||
{{ define "main" }} | |||
<article class="cf ph3 ph5-l pv3 pv2-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file has been copied from the theme and the only thing that has been changed is the "pv2-l" class which previously was "pv4-l"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for keeping the article element there is in case we want to have something in that spot in the future, in which case someone only needs to modify the classes again to make the content fit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍🏼