ige-geophysics / website

This is the source code for the Geophysics Lab website
https://www.ige.unicamp.br/geophysics/
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Template: utils.html #44

Open hbueno opened 4 years ago

hbueno commented 4 years ago

Create a dedicatede template file utils.html. A place to define well-named reusable variables.

Quoting from Urubu's manual:

Suppose these variables are defined in the file '_layouts/util.html'. We can import them in any content page as follows:

{% from 'util.html' import open, done %}

Note that Urubu knows to look up util.html in the '_layouts/ directory,' because that is where templates should be located.

hbueno commented 4 years ago

According the Basic Use struction from Font Awesome, using a <span> tag instead of <i> tag is more semantically correct. See also CSS Pseudo-elements.