parent
948703f3e7
commit
ac7216918c
|
@ -97,13 +97,14 @@ let
|
||||||
directoryToHTML = indentLevel: directory: ''
|
directoryToHTML = indentLevel: directory: ''
|
||||||
${indent indentLevel}<DT>${
|
${indent indentLevel}<DT>${
|
||||||
if directory.toolbar then
|
if directory.toolbar then
|
||||||
''<H3 PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar''
|
''
|
||||||
|
<H3 ADD_DATE="1" LAST_MODIFIED="1" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar''
|
||||||
else
|
else
|
||||||
"<H3>${escapeXML directory.name}"
|
''<H3 ADD_DATE="1" LAST_MODIFIED="1">${escapeXML directory.name}''
|
||||||
}</H3>
|
}</H3>
|
||||||
${indent indentLevel}<DL><p>
|
${indent indentLevel}<DL><p>
|
||||||
${allItemsToHTML (indentLevel + 1) directory.bookmarks}
|
${allItemsToHTML (indentLevel + 1) directory.bookmarks}
|
||||||
${indent indentLevel}</p></DL>'';
|
${indent indentLevel}</DL><p>'';
|
||||||
|
|
||||||
itemToHTMLOrRecurse = indentLevel: item:
|
itemToHTMLOrRecurse = indentLevel: item:
|
||||||
if item ? "url" then
|
if item ? "url" then
|
||||||
|
@ -126,7 +127,7 @@ let
|
||||||
<H1>Bookmarks Menu</H1>
|
<H1>Bookmarks Menu</H1>
|
||||||
<DL><p>
|
<DL><p>
|
||||||
${bookmarkEntries}
|
${bookmarkEntries}
|
||||||
</p></DL>
|
</DL>
|
||||||
'';
|
'';
|
||||||
|
|
||||||
mkNoDuplicateAssertion = entities: entityKind:
|
mkNoDuplicateAssertion = entities: entityKind:
|
||||||
|
@ -377,7 +378,11 @@ in {
|
||||||
toolbar = mkOption {
|
toolbar = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "If directory should be shown in toolbar.";
|
description = ''
|
||||||
|
Make this the toolbar directory. Note, this does _not_
|
||||||
|
mean that this directory will be added to the toolbar,
|
||||||
|
this directory _is_ the toolbar.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}) // {
|
}) // {
|
||||||
|
|
|
@ -6,20 +6,20 @@
|
||||||
<TITLE>Bookmarks</TITLE>
|
<TITLE>Bookmarks</TITLE>
|
||||||
<H1>Bookmarks Menu</H1>
|
<H1>Bookmarks Menu</H1>
|
||||||
<DL><p>
|
<DL><p>
|
||||||
<DT><H3 PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar</H3>
|
<DT><H3 ADD_DATE="1" LAST_MODIFIED="1" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar</H3>
|
||||||
<DL><p>
|
<DL><p>
|
||||||
<DT><A HREF="https://nixos.wiki/wiki/Home_Manager" ADD_DATE="1" LAST_MODIFIED="1">Home Manager</A>
|
<DT><A HREF="https://nixos.wiki/wiki/Home_Manager" ADD_DATE="1" LAST_MODIFIED="1">Home Manager</A>
|
||||||
</p></DL>
|
</DL><p>
|
||||||
<DT><A HREF="https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go" ADD_DATE="1" LAST_MODIFIED="1" SHORTCUTURL="wiki" TAGS="wiki">wikipedia</A>
|
<DT><A HREF="https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go" ADD_DATE="1" LAST_MODIFIED="1" SHORTCUTURL="wiki" TAGS="wiki">wikipedia</A>
|
||||||
<DT><A HREF="https://www.kernel.org" ADD_DATE="1" LAST_MODIFIED="1">kernel.org</A>
|
<DT><A HREF="https://www.kernel.org" ADD_DATE="1" LAST_MODIFIED="1">kernel.org</A>
|
||||||
<DT><H3>Nix sites</H3>
|
<DT><H3 ADD_DATE="1" LAST_MODIFIED="1">Nix sites</H3>
|
||||||
<DL><p>
|
<DL><p>
|
||||||
<DT><A HREF="https://nixos.org/" ADD_DATE="1" LAST_MODIFIED="1">homepage</A>
|
<DT><A HREF="https://nixos.org/" ADD_DATE="1" LAST_MODIFIED="1">homepage</A>
|
||||||
<DT><A HREF="https://nixos.wiki/" ADD_DATE="1" LAST_MODIFIED="1" TAGS="wiki,nix">wiki</A>
|
<DT><A HREF="https://nixos.wiki/" ADD_DATE="1" LAST_MODIFIED="1" TAGS="wiki,nix">wiki</A>
|
||||||
<DT><H3>Nix sites</H3>
|
<DT><H3 ADD_DATE="1" LAST_MODIFIED="1">Nix sites</H3>
|
||||||
<DL><p>
|
<DL><p>
|
||||||
<DT><A HREF="https://nixos.org/" ADD_DATE="1" LAST_MODIFIED="1">homepage</A>
|
<DT><A HREF="https://nixos.org/" ADD_DATE="1" LAST_MODIFIED="1">homepage</A>
|
||||||
<DT><A HREF="https://nixos.wiki/" ADD_DATE="1" LAST_MODIFIED="1">wiki</A>
|
<DT><A HREF="https://nixos.wiki/" ADD_DATE="1" LAST_MODIFIED="1">wiki</A>
|
||||||
</p></DL>
|
</DL><p>
|
||||||
</p></DL>
|
</DL><p>
|
||||||
</p></DL>
|
</DL>
|
||||||
|
|
Loading…
Reference in a new issue