Skip to content

Commit

Permalink
Merge branch 'main' into deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
carylwyatt committed Jul 29, 2024
2 parents cf2044e + 23d3caf commit 7830fac
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ node_modules/
dist/css/style.min.css
dist/js/scripts.min.js
dist/js/cookies.min.js
dist/css/home.min.css
1 change: 0 additions & 1 deletion dist/css/home.min.css

This file was deleted.

4 changes: 2 additions & 2 deletions front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<article class="fatl-card fatl-card<?= $i; ?>">
<a href="<?= esc_url( get_sub_field( 'url' ) ); ?>" aria-hidden="true" tabindex="-1"><?= wp_get_attachment_image( get_sub_field( 'image' ), 'full', FALSE, array( 'loading' => $i === 1 ? 'eager' : 'lazy' ) ); ?></a>
<div class="fatl-card-content">
<a class="fatlc-title" href="<?= esc_url( get_sub_field( 'url' ) ); ?>"><?= wp_kses_post( get_sub_field( 'title' ) ); ?></a>
<a class="fatlc-title d-inline-block" href="<?= esc_url( get_sub_field( 'url' ) ); ?>"><?= wp_kses_post( get_sub_field( 'title' ) ); ?></a>
<div class="fatlc-excerpt"><?= wp_kses_post( get_sub_field( 'excerpt' ) ); ?></div>
<?php

Expand Down Expand Up @@ -77,7 +77,7 @@

?>
<div class="nae-card-content">
<a class="nae-title" href="<?= esc_url( get_permalink( $postID ) ); ?>"><?= esc_html( get_the_title( $postID ) ); ?></a>
<a class="nae-title d-inline-block" href="<?= esc_url( get_permalink( $postID ) ); ?>"><?= esc_html( get_the_title( $postID ) ); ?></a>
<div class="nae-excerpt"><?= $excerpt; ?></div>
</div>
</article>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"watch": "node watch_build.js",
"build": "esbuild src/js/scripts.js --minify --outfile=dist/js/scripts.min.js && esbuild src/js/cookies.js --minify --outfile=dist/js/cookies.min.js && esbuild src/css/style.css --minify --outfile=dist/css/style.min.css"
"build": "esbuild src/js/scripts.js --minify --outfile=dist/js/scripts.min.js && esbuild src/js/cookies.js --minify --outfile=dist/js/cookies.min.js && esbuild src/css/style.css --minify --outfile=dist/css/style.min.css && esbuild src/css/home.css --minify --outfile=dist/css/home.min.css"
},
"repository": {
"type": "git",
Expand Down
7 changes: 6 additions & 1 deletion src/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@
grid-column: 1 / -1;
}
.nae-card a {
aspect-ratio: 1;
font-weight: 700;
}
.nae-card a:has(img) {
aspect-ratio: 1;
}
.nae-card a:not(:hover) {
text-decoration: none;
}
Expand Down Expand Up @@ -180,6 +182,9 @@
margin-top: 1rem;
font-weight: 700;
}
.home-pres h2 a {
display: inline-block;
}
.home-pres a:not(:hover) {
text-decoration: none;
}
Expand Down
3 changes: 3 additions & 0 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,9 @@ hathi-website-footer {
color: var(--white);
background-color: var(--primary);
}
.post-title a {
display: inline-block;
}
.post-title:not(:first-child) {
margin-top: 1rem;
}
Expand Down

0 comments on commit 7830fac

Please sign in to comment.