Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: expose variant metadata (MimeType, IsCurrent)

Aperta
#8 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C#
Stelle
1
Fork
0
Merge medio
13h 50m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MASS4ORG/Fanstatic

Tutte le issue di MASS4ORG/Fanstatic

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.