INNER CODE UNIT · Python

index_title

netkiller/netkiller.github.io · generate_sitemaps.py:152

                index_title = extract_title(OUTPUT_DIR / f)
                break
        
        if dir_name:
            dir_display = f"{dir_name}/"
            if index_title:
                lines.append(f"- [{dir_display}]({BASE_URL}/{url_encode_path(Path(dir_name))}/index.html): {index_title}")
            else:
                lines.append(f"- [{dir_display}]({BASE_URL}/{url_encode_path(Path(dir_name))}/index.html): {dir_name}")
        else:
            lines.append(f"- [Home]({BASE_URL}/index.html): Netkiller ebook - Linux ebook")
        
        # List files in directory (excluding index.html)
        for f in sorted(files):
            if f.name != 'index.html':
                title = extract_title(OUTPUT_DIR / f)
                file_display = str(f.relative_to(dir_name)) if dir_name else f.name
                url_path = url_encode_path(f)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…