Skip to content
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

Enhance content organization and metadata #29

Open
5 tasks
tyaga001 opened this issue Nov 19, 2024 · 0 comments
Open
5 tasks

Enhance content organization and metadata #29

tyaga001 opened this issue Nov 19, 2024 · 0 comments
Labels

Comments

@tyaga001
Copy link
Owner

Overview

Improve content organization, discovery, and metadata presentation.

Features to Implement

1. Post Metadata

  • Reading time estimation
  • Last updated timestamp
  • Author information
  • Related posts
interface PostMetadata {
  title: string;
  description: string;
  publishedAt: Date;
  updatedAt: Date;
  readingTime: string;
  category: string;
  tags: string[];
  relatedPosts: string[];
}

2. Category System

  • Category pages
  • Tag filtering
  • Post grouping
  • Archive view

3. Related Content

  • Similar posts suggestion
  • Previous/Next navigation
  • Category highlights
  • Popular posts section

Technical Implementation

Metadata Processing

function calculateReadingTime(content: string): string {
  const wordsPerMinute = 200;
  const wordCount = content.split(/\s+/).length;
  const minutes = Math.ceil(wordCount / wordsPerMinute);
  return `${minutes} min read`;
}

Related Posts Algorithm

  • Based on categories
  • Tag matching
  • Publish date proximity
  • Popularity score

UI Components

  • Category navigation
  • Tag cloud
  • Related posts grid
  • Archive timeline

Acceptance Criteria

  • Accurate reading time
  • Working category system
  • Related posts display
  • Archive view implementation
  • Proper metadata display

Priority: Medium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant