Skip to content

Commit

Permalink
Content: Fix heading structure, punctuation in headings
Browse files Browse the repository at this point in the history
Fixes #162
  • Loading branch information
ryelle committed Sep 22, 2023
1 parent 2e945dc commit 4e1711e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<!-- /wp:heading -->

<!-- wp:paragraph {"fontSize":"small",style":{"spacing":{"margin":{"top":"var:preset|spacing|10"}}}} -->
<p class="has-small-font-size" style="margin-top:var(--wp--preset--spacing--10)"><?php esc_html_e( 'Star-studded sites built with WordPress', 'wporg' ); ?></p>
<p class="has-small-font-size" style="margin-top:var(--wp--preset--spacing--10)"><?php esc_html_e( 'Star-studded sites built with WordPress.', 'wporg' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:wporg/site-meta-list {"meta":["post_title","domain","category"],"showLabel":false,"fontSize":"small","style":{"elements":{"link":{"color":{"text":"var:preset|color|blueberry-2"}}},"border":{"radius":"2px","style":"solid","width":"1px"},"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"borderColor":"charcoal-3","textColor":"light-grey-2"} /-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|50"}},"layout":{"type":"default"}} -->
<div class="wp-block-group alignwide">
<!-- wp:heading {"level":1,"fontSize":"heading-3"} -->
<h1 class="wp-block-heading has-heading-3-font-size"><?php esc_html_e( 'Browse the showcase by category, flavor, or tag', 'wporg' ); ?></h1>
<h1 class="wp-block-heading has-heading-3-font-size"><?php esc_html_e( 'Browse by category, flavor, or tag', 'wporg' ); ?></h1>
<!-- /wp:heading -->

<!-- wp:group {"layout":{"type":"default"}} -->
<div class="wp-block-group">
<!-- wp:paragraph -->
<p><?php _e( 'Wonderful WordPress websites by category.', 'wporg' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level":2,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"normal","fontFamily":"inter"} -->
<h2 class="wp-block-heading has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400"><?php _e( 'Wonderful WordPress websites by category', 'wporg' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:wporg/term-grid {"showPostCounts":true} /-->
</div>
<!-- /wp:group -->

<!-- wp:group {"layout":{"type":"default"}} -->
<div class="wp-block-group">
<!-- wp:paragraph -->
<p><?php _e( 'Wonderful WordPress websites by flavor.', 'wporg' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level":2,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"normal","fontFamily":"inter"} -->
<h2 class="wp-block-heading has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400"><?php _e( 'Wonderful WordPress websites by flavor', 'wporg' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:wporg/term-grid {"showPostCounts":true,"term":"flavor"} /-->
</div>
Expand All @@ -42,10 +42,10 @@

<!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|50"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--50)">
<!-- wp:paragraph -->
<p><?php _e( 'Wonderful WordPress websites by tag.', 'wporg' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level":2,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"normal","fontFamily":"inter"} -->
<h2 class="wp-block-heading has-inter-font-family has-normal-font-size" style="font-style:normal;font-weight:400"><?php _e( 'Wonderful WordPress websites by tag', 'wporg' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:wporg/tags-archive /-->
</div>
<!-- /wp:group -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
>
<?php foreach ( $alphabet as $letter ) : ?>
<div class="wporg-tags-archive__row">
<h2><?php echo esc_html( $letter ); ?></h2>
<ul>
<h3 class="wporg-tags-archive__letter"><?php echo esc_html( $letter ); ?></h3>
<ul class="wporg-tags-archive__list">
<?php foreach ( $by_alphabet[ $letter ] as $_term ) : ?>
<li>
<a href="<?php echo esc_url( get_term_link( $_term ) ); ?>">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
gap: 0;
}

h2 {
.wporg-tags-archive__letter {
margin: 0 !important;
align-self: flex-start;
font-size: var(--wp--preset--font-size--extra-large);
Expand All @@ -20,7 +20,7 @@
text-transform: uppercase;
}

ul {
.wporg-tags-archive__list {
list-style: none;
margin: 0;
padding: 0;
Expand Down

0 comments on commit 4e1711e

Please sign in to comment.