Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

feat: expose variant metadata (MimeType, IsCurrent)

Đang mở
#8 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
backend, documentation

Hướng nghiên cứu

Start by locating the page variant and output-format definitions, then trace how page.Variants, page.AlternativeOutputFormats and page.Translations expose template values. Add the requested current-state and MIME-type metadata, and update the template reference. Done when the acceptance-criteria template works for each listed variant and the reference documents the additions.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

c:templates p:low t:enhancement

Current State

Variants expose OutputFormat, Language, Permalink/RelPermalink, but templates cannot tell which variant is
being rendered, nor get its MIME type (needed for <link rel="alternate" type="...">) without hardcoding it.

Tasks

  • IsCurrent on every variant in page.Variants, page.AlternativeOutputFormats and page.Translations*
  • MimeType from the OutputFormat definition

Acceptance Criteria

  • {% for v in page.Variants %}{% unless v.IsCurrent %}<link type="{{ v.MimeType }}" ...>{% endunless %}{% endfor %} works
  • Documented in the template reference

Related

Ngôn ngữ chính
C#
Star
1
Fork
0
Merge trung bình
8 giờ 19 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MASS4ORG/Fanstatic

Tất cả issue của MASS4ORG/Fanstatic

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.