Replies: 1 comment 1 reply
-
<li> elements don't need to be closed. This is perfectly valid:
<ul>
<li> An item
<li> Another item
<li> And a third one
</ul>
The spec says:
"An li element's end tag may be omitted if the li element is immediately
followed by another li element or if there is no more content in the parent
element."
In that particular case, it's a list where each element is an item which
(in the case of submenus) also contains a list.
…On Thu, Aug 18, 2022 at 1:04 PM nabajour ***@***.***> wrote:
Hi,
I just started using Nikola and am working on writing a template for my
website.
While trying to understand the navigation menu in the basetemplate, I was
wondering what this
<https://github.com/getnikola/nikola/blob/1f487e689eb22fee565b629ddbad5f8565a3def1/nikola/data/themes/base/templates/base_header.tmpl#L44>
<li> element in the html_navigation_links_entries function in
base_headers.tmpl is for.
It looks to me that it's either superfluous or there is a </li> lacking.
Or am I mising something?
Thanks,
nab
—
Reply to this email directly, view it on GitHub
<#3640>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAMKYJPH7XZZCXJISP2RDVZZNHRANCNFSM565XDB7A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nabajour
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I just started using Nikola and am working on writing a template for my website.
While trying to understand the navigation menu in the
base
template, I was wondering what this<li>
element in thehtml_navigation_links_entries
function inbase_headers.tmpl
is for.It looks to me that it's either superfluous or there is a
</li>
lacking.Or am I mising something?
Thanks,
nab
Beta Was this translation helpful? Give feedback.
All reactions