Skip to content
Discussion options

You must be logged in to vote

Hello @lampensau,
if you add block announce overrides in your main.html the self.announce() condition will trigger and will add the elements that are inside the conditional block but still outside of the announce block of base.html

{% if self.announce() %}
<aside class="md-banner">
<div class="md-banner__inner md-grid md-typeset">
<!-- Button to dismiss announcement -->
{% if "announce.dismiss" in features %}
<button
class="md-banner__button md-icon"
aria-label="{{ lang.t('announce.dismiss') }}"
>
{% set icon = config.theme.icon.close or "material/close" %}

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@kamilkrzyskow
Comment options

@squidfunk
Comment options

@lampensau
Comment options

@kamilkrzyskow
Comment options

@squidfunk
Comment options

Answer selected by lampensau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants