Downgrade page_summary headings from <h2> to <h3>
When page_summaries are rendered in sections by year, the year heading is an <h2> so these need to be <h3> for correct heading hierarchy.
This commit is contained in:
		
							parent
							
								
									59ff58e159
								
							
						
					
					
						commit
						9995c8d10d
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -20,14 +20,15 @@
 | 
			
		|||
 | 
			
		||||
  .page-summary__heading {
 | 
			
		||||
    margin-block: 0 var(--space-xs);
 | 
			
		||||
    font-size: var(--text-l);
 | 
			
		||||
 | 
			
		||||
    h2 {
 | 
			
		||||
    h2, h3 {
 | 
			
		||||
      line-height: 1;
 | 
			
		||||
      font-size: var(--text-l);
 | 
			
		||||
      margin-block: 0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    p {
 | 
			
		||||
      font-size: var(--text-m);
 | 
			
		||||
      margin-block-start: var(--space-xs);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,13 +1,13 @@
 | 
			
		|||
<article class="page-summary">
 | 
			
		||||
  {{ if and (.Params.rendersSummary | default true) (gt (len .Description) 0) -}}
 | 
			
		||||
    <hgroup class="page-summary__heading">
 | 
			
		||||
      <h2><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h2>
 | 
			
		||||
      <h3><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h3>
 | 
			
		||||
      {{ with .Description }}
 | 
			
		||||
        <p>{{ . | markdownify }}</p>
 | 
			
		||||
      {{ end }}
 | 
			
		||||
    </hgroup>
 | 
			
		||||
  {{ else }}
 | 
			
		||||
    <h2 class="page-summary__heading"><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h2>
 | 
			
		||||
    <h3 class="page-summary__heading"><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h3>
 | 
			
		||||
  {{ end }}
 | 
			
		||||
 | 
			
		||||
  {{- if .Date -}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue