Repository navigation
refactor: total redesign — unified design system, nav, homepage, templates #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b0e8356
e417f57
789b4cc
d3f2b92
040ae23
8d00c4b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| (function(){try{var t=localStorage.getItem('theme')||'dark';document.documentElement.setAttribute('data-theme',t);}catch(e){}})(); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,53 +1,4 @@ | ||
| {{/* | ||
| Smart 404 — Neo design system (standalone). Matches requested path against | ||
| the prebuilt redirect-index.json and suggests the closest page. | ||
| Smart 404 — unified design system. | ||
| */}} | ||
| <!DOCTYPE html> | ||
| <html lang="{{ site.Language.LanguageCode | default "ru" }}" data-theme="dark"> | ||
| {{ partial "neo-head.html" . }} | ||
| <body> | ||
| {{ partial "neo-header.html" . }} | ||
| <main class="neo" id="main"> | ||
| <div class="neo-wrap notfound" style="text-align:center;padding-top:80px"> | ||
| <div class="neo-eyebrow">404 · Not Found</div> | ||
| <h1>Страница не найдена</h1> | ||
| <p class="lead">Возможно, ссылка устарела или адрес изменился. Пробую найти ближайший материал…</p> | ||
| <p id="neo-nf-suggestion" class="neo-nf-suggestion"></p> | ||
| <a class="read" href="{{ site.Home.RelPermalink }}" style="color:var(--accent-2)">← На главную</a> | ||
| </div> | ||
| <script> | ||
| /* redirect-index.json values are static build output (trusted). */ | ||
| (function(){ | ||
| var want = location.pathname.toLowerCase().replace(/\/+$/,''); | ||
| fetch('{{ "redirect-index.json" | relURL }}') | ||
| .then(function(r){ return r.json(); }) | ||
| .then(function(data){ | ||
| var pages = (data && data.pages) ? data.pages : (Array.isArray(data) ? data : []); | ||
| var best=null, bestScore=0; | ||
| pages.forEach(function(p){ | ||
| var u=(p.url||'').toLowerCase(); | ||
| var s=score(want,u); | ||
| if(s>bestScore){ bestScore=s; best=p; } | ||
| }); | ||
| if(best && bestScore>0.3){ | ||
| var el=document.getElementById('neo-nf-suggestion'); | ||
| if(el){ | ||
| el.textContent = 'Возможно, вы искали: '; | ||
| var a=document.createElement('a'); | ||
| a.href=best.url; a.textContent=best.title || best.url; | ||
| el.appendChild(a); | ||
| } | ||
| } | ||
| }).catch(function(){}); | ||
| function score(a,b){ | ||
| if(!a||!b) return 0; | ||
| var sa=a.split('/'), sb=b.split('/'), m=0, i; | ||
| for(i=0;i<Math.min(sa.length,sb.length);i++){ if(sa[i]===sb[i]) m++; } | ||
| return m/Math.max(sa.length,sb.length); | ||
| } | ||
| })(); | ||
| </script> | ||
| </main> | ||
| {{ partial "neo-footer.html" . }} | ||
| </body> | ||
| </html> | ||
| {{ partial "neo-base.html" . }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1 @@ | ||
| {{/* | ||
| List / archive / category-term pages — Neo design system (standalone). | ||
| */}} | ||
| <!DOCTYPE html> | ||
| <html lang="{{ site.Language.LanguageCode | default "ru" }}" data-theme="dark"> | ||
| {{ partial "neo-head.html" . }} | ||
| <body> | ||
| {{ partial "neo-header.html" . }} | ||
| <main class="neo" id="main"> | ||
| <div class="neo-wrap"> | ||
| {{ partial "neo-crumbs.html" . }} | ||
| {{ partial "neo-breadcrumb-ld.html" . }} | ||
| <div class="neo-sec-head" style="margin-top:20px"> | ||
| <h2>{{ .Title }}</h2> | ||
| <span class="more">{{ len .Pages }} записей</span> | ||
| </div> | ||
| {{ $pages := .Paginate .Pages }} | ||
| <div class="neo-rows"> | ||
| {{ range $pages.Pages }} | ||
| <a class="neo-row" href="{{ .RelPermalink }}"> | ||
| <span class="date"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}" data-time="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time></span> | ||
| <span class="title">{{ .Title }}</span> | ||
| {{ with .Params.tags }}<span class="tag">{{ index . 0 }}</span>{{ end }} | ||
| </a> | ||
| {{ end }} | ||
| </div> | ||
| {{ partial "pagination.html" . }} | ||
| </div> | ||
| </main> | ||
| {{ partial "neo-footer.html" . }} | ||
| </body> | ||
| </html> | ||
| {{/*\n List / archive / category-term pages — unified design system.\n*/}}\n<!DOCTYPE html>\n<html lang="{{ site.Language.LanguageCode | default "ru" }}" data-theme="dark">\n{{ partial "neo-head.html" . }}\n<body>\n{{ partial "neo-header.html" . }}\n<main class="container" id="main">\n <div style="margin-top:20px">\n <div class="section-header"><h2>{{ .Title }}</h2><span class="more">{{ len .Pages }} записей</span></div>\n {{ $pages := .Paginate .Pages }}\n <div class="recent-rows">\n {{ range $pages.Pages }}\n <a class="recent-row" href="{{ .RelPermalink }}">\n <span class="date"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}" data-time="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time></span>\n <span class="title">{{ .Title }}</span>\n <span class="meta">{{ with .Params.tags }}<span class="tag">{{ index . 0 }}</span>{{ end }}<span style="color:var(--ink-500)">⏱ {{ .ReadingTime }} мин</span></span>\n </a>\n {{ end }}\n </div>\n {{ partial "pagination.html" . }}\n </div>\n</main>\n{{ partial "neo-footer.html" . }}\n</body>\n</html>\n |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,105 +1,4 @@ | ||
| {{/* Search 2.0 — full-text, facets, highlight, stats. */}} | ||
| <!DOCTYPE html> | ||
| <html lang="{{ site.Language.LanguageCode | default "ru" }}" data-theme="dark"> | ||
| {{ partial "neo-head.html" . }} | ||
| <body> | ||
| {{ partial "neo-header.html" . }} | ||
| <main class="neo" id="main"> | ||
| <div class="neo-wrap search-page"> | ||
| <div class="neo-sec-head" style="margin-top:20px"><h2>Поиск по сайту</h2> | ||
| <span class="more">блог · репозитории · гисты · awesome</span> | ||
| </div> | ||
| <input id="neo-search-input" class="neo-search-input" type="search" placeholder="Искать по заголовкам, тегам, описаниям…" autofocus /> | ||
| <div class="neo-kind-filter" id="neo-kind-filter"> | ||
| <button data-kind="all" aria-pressed="true">Все</button> | ||
| <button data-kind="post" aria-pressed="false">📝 Блог</button> | ||
| <button data-kind="repo" aria-pressed="false">📦 Репо</button> | ||
| <button data-kind="gist" aria-pressed="false">📄 Гист</button> | ||
| <button data-kind="awesome" aria-pressed="false">⭐ Awesome</button> | ||
| </div> | ||
| <div id="neo-search-results" class="neo-rows" role="status" aria-live="polite"></div> | ||
| <div id="neo-search-stats" class="neo-search-stats" style="display:none"> | ||
| <div class="neo-sec-head"><h3>Статистика поиска</h3></div> | ||
| <div id="neo-search-popular"></div> | ||
| </div> | ||
| <p id="neo-search-empty" class="neo-search-empty" role="status" aria-live="polite">Введите запрос для поиска по всему сайту.</p> | ||
| </div> | ||
| <script> | ||
| (function(){ | ||
| "use strict"; | ||
| var KIND = { post:'📝 Блог', repo:'📦 Репо', gist:'📄 Гист', awesome:'⭐ Awesome' }; | ||
| var INDEX = [ | ||
| {{ $pages := where site.RegularPages "RelPermalink" "ne" "" }} | ||
| {{ range $pages }} | ||
| {{- $u := .RelPermalink -}} | ||
| {{- $kind := "post" -}} | ||
| {{- if hasPrefix $u "/repositories/" }}{{ $kind = "repo" }}{{ else if hasPrefix $u "/gists/" }}{{ $kind = "gist" }}{{ else if hasPrefix $u "/awesome/" }}{{ $kind = "awesome" }}{{ end -}} | ||
| {t:{{ .Title | jsonify }}, u:{{ $u | jsonify }}, k:{{ $kind | jsonify }}, g:{{ with .Params.tags }}{{ delimit . " " | jsonify }}{{ else }}{{ .Description | jsonify }}{{ end }}, s:{{ .Summary | plainify | truncate 160 | jsonify }}}, | ||
| {{ end }} | ||
| ]; | ||
| var input = document.getElementById('neo-search-input'); | ||
| var res = document.getElementById('neo-search-results'); | ||
| var empty = document.getElementById('neo-search-empty'); | ||
| var kindbar = document.getElementById('neo-kind-filter'); | ||
| var curKind = 'all'; | ||
|
|
||
| function escapeRegex(s) { return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); } | ||
|
|
||
| function highlight(text, query) { | ||
| if (!query) return text; | ||
| var re = new RegExp('(' + escapeRegex(query) + ')', 'gi'); | ||
| return text.replace(re, '<mark class="search-highlight">$1</mark>'); | ||
| } | ||
|
|
||
| function fuzzyMatch(str, pattern) { | ||
| str = str.toLowerCase(); | ||
| pattern = pattern.toLowerCase(); | ||
| var si = 0, pi = 0; | ||
| while (si < str.length && pi < pattern.length) { | ||
| if (str[si] === pattern[pi]) pi++; | ||
| si++; | ||
| } | ||
| return pi === pattern.length; | ||
| } | ||
|
|
||
| function render(q){ | ||
| q = (q||'').toLowerCase().trim(); | ||
| res.innerHTML = ''; | ||
| if(!q){ empty.style.display='block'; empty.textContent='Введите запрос для поиска по всему сайту.'; return; } | ||
| var hits = INDEX.filter(function(i){ | ||
| if (curKind !== 'all' && i.k !== curKind) return false; | ||
| return i.t.toLowerCase().indexOf(q) > -1 || (i.g||'').toLowerCase().indexOf(q) > -1 || (i.s||'').toLowerCase().indexOf(q) > -1 || fuzzyMatch(i.t, q); | ||
| }).slice(0, 40); | ||
| if(!hits.length){ empty.style.display='block'; empty.textContent = 'Ничего не найдено по запросу «'+q+'».'; return; } | ||
| empty.style.display='none'; | ||
| hits.forEach(function(h){ | ||
| var a = document.createElement('a'); | ||
| a.className='neo-row'; a.href=h.u; | ||
| var date = document.createElement('span'); date.className='date'; date.textContent = KIND[h.k] || '•'; | ||
| var title = document.createElement('span'); title.className='title'; title.innerHTML = highlight(h.t, q); | ||
| a.appendChild(date); a.appendChild(title); | ||
| if(h.g){ var tag = document.createElement('span'); tag.className='tag'; tag.textContent = (h.g||'').split(' ')[0]; a.appendChild(tag); } | ||
| res.appendChild(a); | ||
| }); | ||
| } | ||
|
|
||
| var t; | ||
| input.addEventListener('input', function(){ clearTimeout(t); t = setTimeout(function(){ render(input.value); }, 120); }); | ||
|
|
||
| if (kindbar) { | ||
| kindbar.addEventListener('click', function (e) { | ||
| var btn = e.target.closest('button[data-kind]'); | ||
| if (!btn) return; | ||
| curKind = btn.dataset.kind; | ||
| kindbar.querySelectorAll('button').forEach(function (b) { b.setAttribute('aria-pressed', b.dataset.kind === curKind ? 'true' : 'false'); }); | ||
| render(input.value); | ||
| }); | ||
| } | ||
|
|
||
| render(input.value); | ||
| })(); | ||
| </script> | ||
| </main> | ||
| {{ partial "neo-footer.html" . }} | ||
| </body> | ||
| </html> | ||
| {{/* | ||
| Search 2.0 — unified design system. | ||
| */}} | ||
| {{ partial "neo-base.html" . }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
# Find remaining links to the search page and any replacement search implementation.
echo '--- links to search ---'
rg -n 'search' layouts static assets -g '!node_modules' -i
echo '--- search index output formats ---'
fd -i -e toml -e yaml -e yml -e json -d 2 'hugo|config|params' . | head -20Repository: dominicusin/dominicusin.github.io Length of output: 38728 🏁 Script executed: #!/bin/bash
set -eu
echo '--- scoped repository conventions ---'
find /tmp/coderabbit-repo-knowledge/dominicusin-dominicusin-github-io-fa795971 -maxdepth 2 -type f -name '*.md' -print | sort
echo '--- conventions and learnings headers ---'
for f in /tmp/coderabbit-repo-knowledge/dominicusin-dominicusin-github-io-fa795971/*/*.md; do
echo "### $f"
head -5 "$f"
done
echo '--- changed search template ---'
cat -n layouts/_default/search.html
echo '--- bound base partial ---'
fd -i -t f 'neo-base\.html|search\.html|baseof\.html' layouts | sort
for f in layouts/partials/neo-base.html layouts/partials/search.html layouts/_default/baseof.html; do
if [ -f "$f" ]; then
echo "--- $f ---"
cat -n "$f"
fi
done
echo '--- direct search references in templates and scripts ---'
rg -n -C 3 'neo-search-(input|results|empty|stats|popular)|renderSearch|partial "search\.html"|href=.*search|SearchAction|enableSearch' \
layouts/_default layouts/partials assets/js config* hugo* 2>/dev/null || trueRepository: dominicusin/dominicusin.github.io Length of output: 13839 🏁 Script executed: #!/bin/bash
set -eu
echo '--- search-related files ---'
git ls-files | grep -Ei '(^|/)(search|index|config|params|hugo)' | head -80
echo '--- search page content candidates ---'
find content -type f -maxdepth 4 -print 2>/dev/null | sort | grep -Ei 'search|_index|index' | head -80
for f in $(find content -type f -maxdepth 4 -print 2>/dev/null | grep -Ei '(^|/)(search|_index)\.(md|html)$' | head -20); do
echo "--- $f ---"
cat -n "$f"
done
echo '--- search implementation ---'
for f in assets/js/search.js layouts/partials/head.html layouts/partials/neo-head.html layouts/partials/neo-header.html layouts/partials/neo-footer.html; do
if [ -f "$f" ]; then
echo "--- $f ---"
if [ "$f" = "assets/js/search.js" ]; then cat -n "$f"; else rg -n -C 8 'enableSearch|search|SearchAction|custom\.js|neo-base|block "main"' "$f"; fi
fi
done
echo '--- Hugo layout/config selectors ---'
rg -n -C 4 'layout\s*=|type\s*=|kind\s*=|url\s*=|enableSearch|theme\s*=' config hugo.toml config.toml content layouts 2>/dev/null | head -160Repository: dominicusin/dominicusin.github.io Length of output: 30757 🏁 Script executed: #!/bin/bash
set -eu
echo '--- search content ---'
ls -l content/search/_index.md
cat -n content/search/_index.md
echo '--- tracked search assets/templates ---'
git ls-files | grep -Ei '(^|/)(search)(/|\.|$)' | sort
echo '--- source search modules ---'
for f in src/modules/search-ui.js src/modules/search-engine.js tests/integration/search-dispatch.test.js; do
echo "--- $f ---"
cat -n "$f"
done
echo '--- integration/build references for source search modules ---'
rg -n -C 4 'src/modules/search|search-ui|search-engine|assets/js/search|neo-search-input|neo-search-results|renderSearch' \
package.json package-lock.json vite.config.* webpack.config.* scripts .github layouts assets src tests 2>/dev/null || trueRepository: dominicusin/dominicusin.github.io Length of output: 50389 Restore the search interface or remove every
🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,44 @@ | ||
| {{/* | ||
| Single post — Neo design system (standalone full document). | ||
| Single post — unified design system. | ||
| */}} | ||
| <!DOCTYPE html> | ||
| <html lang="{{ site.Language.LanguageCode | default "ru" }}" data-theme="dark"> | ||
| {{ partial "neo-head.html" . }} | ||
| <body{{ with .PrevInSection }} data-prev="{{ .RelPermalink }}"{{ end }}{{ with .NextInSection }} data-next="{{ .RelPermalink }}"{{ end }}> | ||
| {{ partial "neo-header.html" . }} | ||
| <main class="neo" id="main"> | ||
| <article class="neo-post"> | ||
| <nav class="neo-crumbs"> | ||
| <a href="{{ site.Home.RelPermalink }}">Главная</a> | ||
| {{ with .Parent }}<span>/</span><a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ end }} | ||
| <span>/</span><span>{{ .Title }}</span> | ||
| </nav> | ||
| <header class="neo-post-head"> | ||
| <div class="neo-eyebrow"> | ||
| <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}" data-time="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time> | ||
| {{ range .Params.tags }} · <a href="{{ "tags/" | relURL }}{{ . | urlize }}/">#{{ . }}</a>{{ end }} | ||
| </div> | ||
| <h1>{{ .Title }}</h1> | ||
| {{ with .Description }}<p class="lead">{{ . }}</p>{{ end }} | ||
| <div class="neo-post-meta"><span>⏱ {{ .ReadingTime }} мин чтения</span><span>· {{ .WordCount }} слов</span></div> | ||
| </header> | ||
| {{ if or .Params.toc .TableOfContents }}{{ partial "toc.html" . }}{{ end }} | ||
| <div class="neo-post-body">{{ .Content }}</div> | ||
| {{ if or .PrevInSection .NextInSection }} | ||
| <nav class="neo-prevnext" aria-label="Навигация по записям"> | ||
| {{ with .PrevInSection }}<a class="neo-pn pn-prev" href="{{ .RelPermalink }}"><span class="pn-dir">← Пред.</span><span class="pn-t">{{ .Title }}</span></a>{{ end }} | ||
| {{ with .NextInSection }}<a class="neo-pn pn-next" href="{{ .RelPermalink }}"><span class="pn-dir">След. →</span><span class="pn-t">{{ .Title }}</span></a>{{ end }} | ||
| </nav> | ||
| {{ end }} | ||
| {{ partial "neo-breadcrumb-ld.html" . }} | ||
| {{ partial "share.html" . }} | ||
| {{ partial "content-graph.html" . }} | ||
| {{ if or .Params.comments .Site.Params.article.showComments }}{{ partial "comments.html" . }}{{ end }} | ||
| {{ partial "neo-subscribe.html" . }} | ||
| <main class="container" id="main"> | ||
| <article class="post-layout"> | ||
| <div class="post-body"> | ||
| <header class="post-header"> | ||
| <div class="post-meta"> | ||
| <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time> | ||
| <span>·</span> | ||
| <span>⏱ {{ .ReadingTime }} мин чтения</span> | ||
| <span>·</span> | ||
| <span>{{ .WordCount }} слов</span> | ||
| </div> | ||
| <h1>{{ .Title }}</h1> | ||
| {{ with .Description }}<p class="lead">{{ . }}</p>{{ end }} | ||
| <div class="post-meta" style="margin-top:.5rem"> | ||
| {{ range .Params.tags }}<a class="tag" href="{{ "tags/" | relURL }}{{ . | urlize }}/">#{{ . }}</a>{{ end }} | ||
| </div> | ||
| </header> | ||
| {{ if or .Params.toc .TableOfContents }}{{ partial "toc.html" . }}{{ end }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Render the table of contents once per viewport. Posts with headings satisfy the TOC condition, so both invocations render on desktop. The mobile rule hides both 🤖 Prompt for AI Agents |
||
| <div class="post-content">{{ .Content }}</div> | ||
| {{ if or .PrevInSection .NextInSection }} | ||
| <nav class="post-nav" aria-label="Навигация по записям"> | ||
| {{ with .PrevInSection }}<a class="pn-card" href="{{ .RelPermalink }}"><span class="more">← Предыдущая</span><span class="title">{{ .Title }}</span><span class="date">{{ .Date.Format "2006-01-02" }}</span></a>{{ end }} | ||
| {{ with .NextInSection }}<a class="pn-card" href="{{ .RelPermalink }}"><span class="more">Следующая →</span><span class="title">{{ .Title }}</span><span class="date">{{ .Date.Format "2006-01-02" }}</span></a>{{ end }} | ||
| </nav> | ||
| {{ end }} | ||
| {{ partial "share.html" . }} | ||
| {{ partial "content-graph.html" . }} | ||
| {{ if or .Params.comments .Site.Params.article.showComments }}{{ partial "comments.html" . }}{{ end }} | ||
| {{ partial "neo-subscribe.html" . }} | ||
| </div> | ||
| <aside class="toc" aria-label="Оглавление"> | ||
| {{ if or .Params.toc .TableOfContents }}{{ partial "toc.html" . }}{{ end }} | ||
| </aside> | ||
| </article> | ||
| </main> | ||
| {{ partial "neo-footer.html" . }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,4 @@ | ||
| {{/* Analytics dashboard — Neo design system (standalone). Shows local page-view analytics + retention. */}} | ||
| <!DOCTYPE html> | ||
| <html lang="{{ site.Language.LanguageCode | default "ru" }}" data-theme="dark"> | ||
| {{ partial "neo-head.html" . }} | ||
| <body> | ||
| {{ partial "neo-header.html" . }} | ||
| <main class="neo" id="main"> | ||
| <div class="neo-wrap"> | ||
| <div class="neo-sec-head" style="margin-top:20px"><h2>{{ .Title }}</h2> | ||
| <span class="more">Локальная статистика</span> | ||
| </div> | ||
| {{ .Content }} | ||
| <div id="neo-analytics-dashboard"></div> | ||
| <div id="neo-time-chart-section"></div> | ||
| <div id="neo-retention-section"></div> | ||
| <div id="neo-fav-summary" class="neo-fav-summary"></div> | ||
| </div> | ||
| </main> | ||
| {{ partial "neo-footer.html" . }} | ||
| </body> | ||
| </html> | ||
| {{/* | ||
| Analytics dashboard — unified design system. | ||
| */}} | ||
| {{ partial "neo-base.html" . }} | ||
|
Comment on lines
+1
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Restore the analytics dashboard body. The 🧰 Tools🪛 HTMLHint (1.9.2)[error] 1-1: Doctype must be declared before any non-comment content. (doctype-first) 🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,74 +1,4 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="{{ site.Language.LanguageCode | default "ru" }}" data-theme="dark"> | ||
| {{ partial "neo-head.html" . }} | ||
| {{/* Neo awesome section — standalone full-doc; data/awesome.json drives the cards */}} | ||
| <body> | ||
| {{ partial "neo-header.html" . }} | ||
| <main class="neo" id="main"> | ||
| <div class="neo-wrap"> | ||
| <div class="neo-sec-head" style="margin-top:20px"> | ||
| <h2>{{ .Title | default "Awesome" }}</h2> | ||
| <span class="more">{{ $data := .Site.Data.awesome }}{{ if $data }}{{ $data.total }} списков{{ else }}0 списков{{ end }}</span> | ||
| </div> | ||
| {{ .Content }} | ||
| {{ $data := .Site.Data.awesome }} | ||
| {{ if not $data }} | ||
| <p class="text-neutral-500">Каталог пока пуст. Запустите <code>node scripts/build-awesome.cjs</code>.</p> | ||
| {{ else }} | ||
| <div class="neo-awesome-groups"> | ||
| {{ range $data.groups }} | ||
| <div class="neo-awesome-group"> | ||
| <div class="neo-awesome-group-head"> | ||
| <h2>{{ .name }}</h2> | ||
| <span class="neo-awesome-count">{{ len .repos }}</span> | ||
| {{ with .refreshedAt }}<span class="neo-awesome-updated">обновлено: {{ (time .) | time.Format "2006-01-02" }}</span>{{ end }} | ||
| </div> | ||
| <div class="neo-awesome-grid"> | ||
| {{ range .repos }} | ||
| {{ $repo := . }} | ||
| {{ $p := $.Site.GetPage (printf "/awesome/%s/%s" $repo.group $repo.name) }} | ||
| <article class="awesome-card" data-name="{{ $repo.name }}" data-title="{{ $repo.name }}" data-type="awesome" data-stars="{{ $repo.stars | default 0 }}" data-group="{{ $repo.group }}"> | ||
| <span class="card-halo"></span> | ||
| <span class="shimmer"></span> | ||
| <span class="card-gloss"></span> | ||
| {{ if and $repo.stars (gt $repo.stars 49) }}<span class="top-badge">★ TOP</span>{{ end }} | ||
| {{ with $repo.refreshedAt }}{{ $ar := . }}{{ with (time $ar) }}{{ if lt (sub now.Unix .Unix) 5184000 }}<span class="new-badge">NEW</span>{{ end }}{{ end }}{{ end }} | ||
| <span class="card-sparkle">✨</span> | ||
| <span class="like-btn" role="button" tabindex="0" aria-label="Нравится" | ||
| data-like-key="awesome-{{ $repo.group }}-{{ $repo.name }}"> | ||
| <span class="heart">♥</span><span class="lk-count">0</span> | ||
| <span class="burst"><i style="--bx:-160%;--by:-120%">✦</i><i style="--bx:160%;--by:-120%">✧</i><i style="--bx:-120%;--by:140%">✦</i><i style="--bx:120%;--by:140%">✧</i></span> | ||
| </span> | ||
| <div> | ||
| <h3 class="neo-awesome-card-title"> | ||
| <a href="{{ $repo.gh }}" target="_blank" rel="noopener">{{ $repo.name }}</a> | ||
| </h3> | ||
| <p class="neo-awesome-card-group">{{ $repo.group }}</p> | ||
| {{ with $repo.description }}<p class="neo-awesome-card-desc">{{ . }}</p>{{ end }} | ||
| <p class="neo-awesome-card-meta"> | ||
| {{ with $repo.stars }}<span class="stars count-up" data-to="{{ . }}">★ {{ . }}</span>{{ end }} | ||
| {{ with $repo.refreshedAt }}<span class="neo-awesome-updated">обновлено: {{ (time .) | time.Format "2006-01-02" }}</span>{{ end }} | ||
| </p> | ||
| </div> | ||
| <div class="neo-awesome-card-links"> | ||
| <a href="{{ $repo.gh }}" target="_blank" rel="noopener">★ Репозиторий</a> | ||
| <a href="{{ $repo.gh }}/blob/main/{{ $repo.readme }}" target="_blank" rel="noopener">README ↗</a> | ||
| {{ with $p }}<a href="{{ .RelPermalink }}">Превью →</a>{{ end }} | ||
| </div> | ||
| </article> | ||
| {{ end }} | ||
| </div> | ||
| </div> | ||
| {{ end }} | ||
| </div> | ||
|
|
||
| <p class="neo-awesome-foot"> | ||
| Всего курируемых списков: <strong>{{ $data.total }}</strong> в <strong>{{ len $data.groups }}</strong> группах. | ||
| </p> | ||
| {{ end }} | ||
| </div> | ||
| {{ partial "neo-card-features.html" . }} | ||
| </main> | ||
| {{ partial "neo-footer.html" . }} | ||
| </body> | ||
| </html> | ||
| {{/* | ||
| Awesome lists — unified design system. | ||
| */}} | ||
| {{ partial "neo-base.html" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: dominicusin/dominicusin.github.io
Length of output: 1347
🏁 Script executed:
Repository: dominicusin/dominicusin.github.io
Length of output: 50389
🏁 Script executed:
Repository: dominicusin/dominicusin.github.io
Length of output: 5854
🏁 Script executed:
Repository: dominicusin/dominicusin.github.io
Length of output: 4619
Restore the smart 404 partial in
layouts/404.html.content/404.mdsupplies usable 404 content and a home link, butlayouts/404.htmlbypasses_default/baseof.html, sosmart-404.htmlis not injected. Missing-date redirects and typo matching no longer run, whileRedirectIndexremains emitted for that feature.🤖 Prompt for AI Agents
Source: Linters/SAST tools