From f232e35dc7b20763f4b4df66a99f4a1779fb7c74 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 17 Mar 2019 20:47:56 +0100 Subject: submenu on first page --- src/WWWStaticusPlugins.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/WWWStaticusPlugins.hs') diff --git a/src/WWWStaticusPlugins.hs b/src/WWWStaticusPlugins.hs index ff1635c..2d9c8d3 100644 --- a/src/WWWStaticusPlugins.hs +++ b/src/WWWStaticusPlugins.hs @@ -44,7 +44,7 @@ import qualified Data.ByteString.Lazy.Char8 as Char8 -- * links checker -- * multiple templates -- * contact form (via nginx log?) --- * autotranslate +-- * multilang / autotranslate -- |little helper to get values out of a map easily -- error if not found. @@ -95,7 +95,7 @@ staticusPluginInit = StaticusPlugin "init" id runIO t <- getDirList (par "dir_in" m) let menutop= concat $ map (\x->"
  • =1 && brc!!0==x then " active" else "")++"\">"++x++"
  • ") (menu t) - let submenu= if isHome then "" else concat $ map (\x->"
  • "++cln x++"
  • ") (menu c) + let submenu= concat $ map (\x->"
  • "++cln x++"
  • ") (menu c) let breadcrumbs=concat $ map (\(x,d)->"
  • "++(if d==0 then "" else "")++cln x++(if d==0 then "" else "")++"
  • ") (zip ("home":brc) [brcl,brcl-1..]) mdex <- doesFileExist $ par "path" m++"/"++"index.md" -- cgit v1.2.3