@@ -7,11 +7,10 @@ export const bi = (en, zh, tag = 'span') => `<${tag} data-en="${esc(en)}" data-z
77export const arrow = '<span aria-hidden="true">↗</span>' ;
88export const eyebrow = ( en , zh ) => `<div class="eyebrow">${ bi ( en , zh ) } </div>` ;
99export const heading = ( en , zh , subEn = '' , subZh = '' ) => `<div class="page-heading">${ bi ( en , zh , 'h1' ) } ${ subEn ? bi ( subEn , subZh , 'p' ) : '' } </div>` ;
10- const icon = '<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 4v16h16M9 4v11h11M14 4v6h6" stroke="currentColor" stroke-width="2.5"/></svg>' ;
11- const brand = `<a class="brand" href="${ base } "><span class="brand-icon">${ icon } </span><strong>LowEntropy<span>AI</span></strong><span class="brand-divider">/</span><span class="brand-project">Proactive agents</span></a>` ;
10+ const brand = `<a class="brand" href="${ base } "><span class="brand-icon"><img src="${ url ( 'assets/lowentropyai.png' ) } " width="28" height="28" alt="" aria-hidden="true"></span><strong>LowEntropy<span>AI</span></strong><span class="brand-divider">/</span><span class="brand-project">Proactive agents</span></a>` ;
1211export function layout ( title , content , path , stats = { } , description = 'A directory of proactive agent research. Find papers, code, projects, and streaming models.' , extra = '' ) {
1312 const nav = [ [ 'library/' , 'Papers' , '论文' ] , [ 'streaming/' , 'Streaming' , '流式模型' ] , [ 'projects/' , 'Projects' , '项目' ] , [ 'benchmarks/' , 'Benchmarks' , '基准' ] ] ;
14- return `<!doctype html><html lang="en" data-theme="light"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${ esc ( title ) } · LowEntropyAI</title><meta name="description" content="${ esc ( description ) } "><link rel="canonical" href="https://lowentropyai.github.io${ url ( path ) } "><meta property="og:title" content="${ esc ( title ) } · LowEntropyAI"><meta property="og:description" content="${ esc ( description ) } "><meta property="og:type" content="website"><meta property="og:url" content="https://lowentropyai.github.io${ url ( path ) } "><meta property="og:image" content="https://lowentropyai.github.io${ url ( 'assets/social.svg' ) } "><meta name="theme-color" content="#f7f8fa"><link rel="icon" href="${ url ( 'assets/favicon.svg' ) } " type="image/svg+xml"><link rel="stylesheet" href="${ url ( 'assets/style.css' ) } ">${ extra } <script src="${ url ( 'assets/theme.js' ) } "></script><script type="module" src="${ url ( 'assets/app.js' ) } "></script></head><body data-base="${ base } " data-page="${ path } "><a class="skip" href="#main">Skip to content</a><header class="site-header"><div class="header-inner">${ brand } <nav aria-label="Main navigation">${ nav . map ( ( [ p , en , zh ] ) => `<a href="${ url ( p ) } " ${ path . startsWith ( p ) ? 'aria-current="page"' : '' } >${ bi ( en , zh ) } </a>` ) . join ( '' ) } </nav><div class="header-actions"><button id="language" aria-label="Switch language">中文</button><button id="theme" aria-label="Switch color theme">◐</button><a class="github-link" href="${ repo } ">GitHub ${ arrow } </a></div></div></header><main id="main">${ content } </main><footer><div><a href="${ repo } ">LowEntropyAI ${ arrow } </a><span class="footer-separator">/</span>${ bi ( 'Awesome Proactive Agent' , '主动式智能体资源库' ) } </div><div><a href="${ repo } /blob/main/CONTRIBUTING.md">${ bi ( 'Contribute' , '参与贡献' ) } ${ arrow } </a><a href="${ repo } /issues">${ bi ( 'Suggest a resource' , '推荐资源' ) } ${ arrow } </a></div></footer></body></html>` ;
13+ return `<!doctype html><html lang="en" data-theme="light"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>${ esc ( title ) } · LowEntropyAI</title><meta name="description" content="${ esc ( description ) } "><link rel="canonical" href="https://lowentropyai.github.io${ url ( path ) } "><meta property="og:title" content="${ esc ( title ) } · LowEntropyAI"><meta property="og:description" content="${ esc ( description ) } "><meta property="og:type" content="website"><meta property="og:url" content="https://lowentropyai.github.io${ url ( path ) } "><meta property="og:image" content="https://lowentropyai.github.io${ url ( 'assets/social.svg' ) } "><meta name="theme-color" content="#f7f8fa"><link rel="icon" href="${ url ( 'assets/lowentropyai.png' ) } " type="image/png"><link rel="stylesheet" href="${ url ( 'assets/style.css' ) } ">${ extra } <script src="${ url ( 'assets/theme.js' ) } "></script><script type="module" src="${ url ( 'assets/app.js' ) } "></script></head><body data-base="${ base } " data-page="${ path } "><a class="skip" href="#main">Skip to content</a><header class="site-header"><div class="header-inner">${ brand } <nav aria-label="Main navigation">${ nav . map ( ( [ p , en , zh ] ) => `<a href="${ url ( p ) } " ${ path . startsWith ( p ) ? 'aria-current="page"' : '' } >${ bi ( en , zh ) } </a>` ) . join ( '' ) } </nav><div class="header-actions"><button id="language" aria-label="Switch language">中文</button><button id="theme" aria-label="Switch color theme">◐</button><a class="github-link" href="${ repo } ">GitHub ${ arrow } </a></div></div></header><main id="main">${ content } </main><footer><div><a href="${ repo } ">LowEntropyAI ${ arrow } </a><span class="footer-separator">/</span>${ bi ( 'Awesome Proactive Agent' , '主动式智能体资源库' ) } </div><div><a href="${ repo } /blob/main/CONTRIBUTING.md">${ bi ( 'Contribute' , '参与贡献' ) } ${ arrow } </a><a href="${ repo } /issues">${ bi ( 'Suggest a resource' , '推荐资源' ) } ${ arrow } </a></div></footer></body></html>` ;
1514}
1615export function resourceLinks ( p ) {
1716 return navigationResources ( p ) . map ( r => {
0 commit comments