consider creating separate hugo pages for each important url
Los mantenedores suelen responder en 7 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
- Tipo de issue
- Refactorización
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- hugo, javascript
- Área
- build-system, web-dev
Línea de trabajo
Comienza leyendo netlify.toml, app/facade.js y services/nginx/conf.d/shift.conf para comparar las asignaciones de URL de producción y desarrollo. Después inspecciona el contenido de addevent.md, calendar.md y pedalpalooza, y los layouts de caledit/calevents junto con las plantillas base de Hugo y la documentación de shortcodes; el trabajo estará terminado cuando la estructura elegida separe los tipos de URL importantes sin que las tres asignaciones queden desincronizadas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In talking through the hugo url handling at the biking and bits ride with Steven and Melanie -- i think it might be good to detangle the page handling some. ( noting that this would be a relatively big change. )
currently, production splats down[^1] what should be multiple pages into single page(s):
- all https://shift2bikes.org/addevent/... urls are handled by addevent.md which uses the caledit layout.
- all https://shift2bikes.org/calendar/... urls are handled by calendar.md which uses the calevents layout
what might be better is something like:
- newEvent.md: for shift2bikes.org/addevent/
- editEvent.md: for shift2bikes.org/addevent/edit-<event_id>-
- calList.md: for shift2bikes.org/calendar/
- calDaily.md: for shift2bikes.org/calendar/ event-<daily_id>
each pointing to a unique layout. similarly, the pedalpalooza page ( +/- the archive pages ) could point to pedalpalooza-calendar.md as they do currently; but that markdown could use a specialized pedalpalooza layout instead of calevents.
probably first it'd be worth investigating base templates. much of the various layout .html is duplicated, and introducing new layouts would only make that worse. ( base templates would allow better sharing )
or, as an alternative to adding a layout per .md file, it might be possible to create custom shortcodes so the .md files can directly indicate how the page should look. ( right now the .md files are empty except for the layout type: name )
[^1]: the production mapping is in netlify.toml: https://github.com/shift-org/shift-docs/blob/87980dcf72c81a9679b79432a43ad1ce03d1596e/netlify.toml#L137 -- unfortunately, netlify.toml isn't used in development mod. so its behavior is duplicated for 'npm run dev' byapp/facade.js and in services/nginx/conf.d/shift.conf for docker dev ( under the section 'development endpoints'. ) all three spots would have to be updated to stay in sync.
- Lenguaje dominante
- JavaScript
- Estrellas
- 30
- Forks
- 26
- Merge medio
- 6 d 23 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de shift-org/shift-docs
-
Unknown --db values report a TypeError instead of the intended errorPosiblemente ocupada @gangster la tomó hace 65 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
shift-org/shift-docs#1091 ·
Los mantenedores suelen responder en 7 días
-
validateRideLength accepts any Object.prototype key as a ride lengthPosiblemente ocupada @gangster la tomó hace 65 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
shift-org/shift-docs#1089 ·
Los mantenedores suelen responder en 7 días
-
Favorites page fetches every favorite because getDaily's guard is invertedPosiblemente ocupada @gangster la tomó hace 65 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
shift-org/shift-docs#1087 ·
Los mantenedores suelen responder en 7 días
-
sitemap.xml emits relative <loc> values, so search engines reject itPosiblemente ocupada @dduugg la tomó hace 91 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
shift-org/shift-docs#1082 ·
Los mantenedores suelen responder en 7 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
shift-org/shift-docs#1072 ·
Los mantenedores suelen responder en 7 días
Todos los issues de shift-org/shift-docs
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
processing/p5.sound.js#123 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
PhilflowIO/dav-mcp#146 ·
Los mantenedores suelen responder en 1 día
-
Add a light/dark theme toggleAbiertogood first issue hacktoberfest
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Tanishq964/trail-kit.#4 ·
-
Request: <brand-name>Abiertonew icon permissions in review
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
simple-icons/simple-icons#15067 ·
Los mantenedores suelen responder en 1 día
-
status: needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
mastra-ai/mastra#26562 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día