[chore] site/mockup: /s/stay 빌드를 킹서버 운영본과 일치 — 미니블로그 번들·비콘·영상·날씨 위치 반영
운영 /s/stay 는 서버에서 직접 고친 부분이 레포에 없어, 레포로 구워 덮으면 미니블로그·방문 비콘·영상 7개·날씨 섹션 위치가 사라지는 상태였다. - vendor: 미니블로그를 그리는 index-0DqrdnlD-blog1.js 추가, 옛 번들은 retired/ 로 - patch_stay.py: videos.json 영상 10개 · 날씨 섹션 2번째 · stay-blog-order 스타일 · beacon.js 삽입 - inject.css: 운영본의 본문 글자 크기(--fs-body·sm·xs) - build_reading.py: 운영본대로 문학 8꼭지만, 데이터 직렬화도 운영본과 같게 - README: 운영본과 같다는 기준, 배포 후 미니블로그 글 채우는 법, 백업·되돌리기 검증: 전체 빌드 체인 실행 → refresh_posts 로 운영 글 24건을 넣은 결과가 운영 index.html 과 바이트 단위로 동일. 참조 자산 138개 전부 레포에 있고 서버와 md5 일치. test_mockup_blog.py 는 로컬 PostgreSQL 이 꺼져 있어 실행 못 함(3 errors, ConnectionRefused).
This commit is contained in:
1 parent
9bb86e6d47
commit
1eea456e56
9 files changed
+463
-9
No files matched your search
@@ -0,0 +1,16 @@
|
||||
(function () {
|
||||
try { if (localStorage.getItem('web4ai.stats.disabled') === '1') return; } catch (e) {}
|
||||
function send() {
|
||||
var p = location.pathname;
|
||||
if (p.indexOf('/s/') !== 0) return;
|
||||
var h = location.hash || '';
|
||||
var tab = h.indexOf('#/') === 0 && h !== '#/' ? h : '';
|
||||
var utm = new URLSearchParams(location.search).get('utm_source') || '';
|
||||
var body = JSON.stringify({path: p + tab, referrer: document.referrer, utm_source: utm});
|
||||
var blob = new Blob([body], {type: 'text/plain;charset=UTF-8'});
|
||||
if (navigator.sendBeacon && navigator.sendBeacon('/v1/track/view', blob)) return;
|
||||
fetch('/v1/track/view', {method: 'POST', body: body, keepalive: true, headers: {'Content-Type': 'text/plain'}}).catch(function () {});
|
||||
}
|
||||
send();
|
||||
window.addEventListener('hashchange', send);
|
||||
})();
|
||||
Reference in new issue
Block a user