Commit 1e7e25a7408fa98dfbcdb6186f1687bc459b1bbf

Authored by Antoine Goutenoir
1 parent 77d3f656
Exists in master

Fix the internal link to RFI.

content.yml
... ... @@ -391,8 +391,9 @@ home:
391 391 for a large range of flights.
392 392 The KLM data have also been fitted with linear functions.
393 393  
394   - - content: |
395   - ### What about radiative forcing? {#rfi}
  394 + - title: What about radiative forcing?
  395 + slug: rfi
  396 + content: |
396 397 Radiative forcing accounts for the fact that aviation contributes
397 398 to climate change more than just with the emission of carbon dioxide
398 399 from burning fuels, by releasing gases and particles directly
... ...
flaskr/static/css/common/main.css
... ... @@ -95,6 +95,17 @@ span.required-asterisk {
95 95 }
96 96  
97 97  
  98 +/** TWEAKS ******************************************************************/
  99 +
  100 +h3[id]::before {
  101 + content: '';
  102 + display: block;
  103 + height: 75px;
  104 + margin-top: -75px;
  105 + visibility: hidden;
  106 +}
  107 +
  108 +
98 109 /** SPINNER ******************************************************************/
99 110  
100 111 .lds-ripple {
... ...
flaskr/templates/home.html
... ... @@ -50,7 +50,7 @@
50 50 {% for block in column.blocks -%}
51 51 <article>
52 52 {% if block.title -%}
53   - <h3>{{ block.title }}</h3>
  53 + <h3{% if block.slug %} id="{{ block.slug }}"{% endif %}>{{ block.title }}</h3>
54 54 {%- endif %}
55 55 {{ block.content | markdown | safe }}
56 56 </article>
... ...