OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
 
master @ 20 LINES
 
[ HISTORY ]  [ UP ]
 

// Git navigation header: OOKNET GIT on the left links to the index,
// the repo name on the right links to the repo home. Layout math only;
// the anchors live in the astro file.
import { len } from "../../lib/ascii";

export interface Props {
  /** Display name, e.g. "ooknet.org". */
  name: string;
  slug: string;
}

export const GIT_LEFT = "OOKNET GIT";
export const REPO_KEY = "REPO: ";

export function headerGap(name: string, width: number): string {
  return " ".repeat(
    Math.max(1, width - len(GIT_LEFT) - len(REPO_KEY) - len(name.toUpperCase())),
  );
}

// Git navigation header: OOKNET GIT on the 
left links to the index,
// the repo name on the right links to the r
epo home. Layout math only;
// the anchors live in the astro file.
import { len } from "../../lib/ascii";

export interface Props {
  /** Display name, e.g. "ooknet.org". */
  name: string;
  slug: string;
}

export const GIT_LEFT = "OOKNET GIT";
export const REPO_KEY = "REPO: ";

export function headerGap(name: string, widt
h: number): string {
  return " ".repeat(
    Math.max(1, width - len(GIT_LEFT) - len(
REPO_KEY) - len(name.toUpperCase())),
  );
}
 
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET