-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathannouncement.html
32 lines (32 loc) · 1.58 KB
/
announcement.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{#
You can choose which icon the announcement is garnished
with by uncommenting (i.e. changing the delimiters from
a comment (#) to a statement (%)) a line below. Only a
single line can be uncommented at a time.
#}
{# import ".icons/material/coffee.svg" as icon #}
{# import ".icons/material/chat.svg" as icon #}
{# import ".icons/material/information.svg" as icon #}
{# import ".icons/material/alert.svg" as icon #}
{% import ".icons/material/rocket-launch.svg" as icon %}
{# import ".icons/material/test-tube.svg" as icon #}
{# import ".icons/material/beaker.svg" as icon #}
{# import ".icons/material/dna.svg" as icon #}
{# import ".icons/material/atom.svg" as icon #}
{# import ".icons/material/telescope.svg" as icon #}
<div class="announcement-icon">{{ icon }}</div>
{# Put the announcement, in HTML, right under this comment! #}
<p>
Mahti has expanded its capabilities with a new small partition with core-based allocation and fast local NVMe storage! <a href="{{ base_url | url }}/computing/running/batch-job-partitions/#mahti-cpu-partitions-with-core-based-allocation">Click here for details.</a>
</p>
{# ...and right above _this_ comment. #}
<div class="announcement-icon announcement-icon-end">{{ icon }}</div>
{#
Remember
- to not use the literal 'docs.csc.fi' for internal links,
- use href="{{ base_url | url }}/path/to/page/" instead
- to set the announcement_visible to true in mkdocs.yml
- that the announcement bar has only been tested with <p> and <a>
- to include a target="_blank" attribute in external links
- to not have loose text outside of a <p> (or an <a>)
#}