FIX theme toggler CHANGE image optimization ADD custom markdown image rendering
This commit is contained in:
parent
a841050e84
commit
07f46720f8
11 changed files with 81 additions and 59 deletions
|
@ -15,7 +15,7 @@ shopt -s globstar
|
|||
|
||||
# Resize
|
||||
sizes=(320 640 960 1280)
|
||||
for FILE in static/**/*.@(jpg|jpeg|tif|tiff|png|gif); do
|
||||
for FILE in public/**/*.@(jpg|jpeg|tif|tiff|png|gif); do
|
||||
DIR=$(dirname "$FILE")
|
||||
NAME=$(basename "$FILE" | cut -d. -f1)
|
||||
EXTENSION=$(basename "$FILE" | cut -d. -f2)
|
||||
|
@ -25,7 +25,7 @@ for FILE in static/**/*.@(jpg|jpeg|tif|tiff|png|gif); do
|
|||
done
|
||||
|
||||
# Web Optimized Formats
|
||||
for FILE in static/**/*.@(jpg|jpeg|tif|tiff|png|gif); do
|
||||
for FILE in public/**/*.@(jpg|jpeg|tif|tiff|png|gif); do
|
||||
convert $PARAMS "$FILE" "${FILE}".webp;
|
||||
convert $PARAMS "$FILE" "${FILE}".avif;
|
||||
done
|
|
@ -161,6 +161,13 @@ a {
|
|||
z-index: 10;
|
||||
}
|
||||
|
||||
#theme-toggler {
|
||||
border: none;
|
||||
background: inherit;
|
||||
color: {{ .Site.Params.color.secondary }};
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
|
||||
.footer {
|
||||
|
@ -365,7 +372,7 @@ main > .content {
|
|||
}
|
||||
|
||||
.hero > .content > .image {
|
||||
max-width: 200px;
|
||||
max-width: 150px;
|
||||
}
|
||||
|
||||
.hero > .description {
|
||||
|
@ -397,7 +404,7 @@ main > .content {
|
|||
border-bottom: 3px solid {{ .Site.Params.color.primary }};
|
||||
}
|
||||
|
||||
.hero > .content > div {
|
||||
.hero > .content > .heading {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
@ -473,10 +480,18 @@ img {
|
|||
height: auto;
|
||||
margin: auto;
|
||||
object-fit: contain;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
border-radius: 50%;
|
||||
border: 3px solid {{ .Site.Params.color.primary }};
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.caption {
|
||||
text-align: center;
|
||||
color: gray;
|
||||
font-size: small;
|
||||
margin: 0px;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue