Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in _layouts, your includes in _includes, your sass files in _sass and any other assets in assets.
To experiment with this code, add some sample content and run bundle exec jekyll serve – this directory is setup just like a Jekyll site!
TODO: Delete this and the text above, and describe your gem
Add this line to your Jekyll site's Gemfile:
gem "jekyll-theme-coderic"And add this line to your Jekyll site's _config.yml:
theme: jekyll-theme-codericAnd then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-theme-coderic
El include _includes/subnav.html espera datos en YAML:
_data/<lang>/subnav.ymlpor idioma (p. ej._data/en/subnav.yml), con reserva a_data/<default_lang>/subnav.ymly luego_data/subnav.ymlsi falta el archivo por idioma.
Los enlaces internos del menú pasan por _includes/coderic_i18n_href.html para convivir con jekyll-polyglot.
El conmutador de idioma del subnav usa los tags Liquid static_href / endstatic_href de Polyglot en los enlaces del menú. Los sitios sin Polyglot deben usar otro include o no incluir este bloque tal cual.
_includes/head.html define <title> y meta description usando page.i18n_source / page.i18n y _data/<lang>/… cuando aplica; si no, cae en page.title / page.description. Compatible con jekyll-polyglot (site.active_lang). Opcional: site.noindex añade robots noindex.
TODO: Describe your available layouts, includes, sass and/or assets beyond subnav.
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jekyll-theme-coderic. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
To set up your environment to develop this theme, run bundle install.
Your theme is setup just like a normal Jekyll site! To test your theme, run bundle exec jekyll serve and open your browser at http://localhost:4000. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
When your theme is released, only the files in _layouts, _includes, _sass and assets tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in jekyll-theme-coderic.gemspec accordingly.
Para probar Authorization Code + PKCE contra un servidor OIDC de referencia (mismo flujo que usa el tema con oauth_demo_sign_in: false y /callback/):
- Herramienta: AuthTester (documentación del servicio).
- Descubrimiento OpenID:
/.well-known/openid-configuration— ahí salenauthorization_endpointytoken_endpoint. - En
_config.ymldel tema (valores por defecto del demo) se usanoidc_client_id: "test"y las URLs explícitas de authorize/token del tester, según lo descrito en la página del tool (“no client registration required” para empezar conclient_id=test). - Abrí el sitio con el mismo origen que
urlen_config.yml(p. ej. siurleshttp://localhost:4000, entrá conhttp://localhost:4000, no mezclar con127.0.0.1, porque elredirect_uriysessionStoragedel PKCE deben coincidir).
Si el tester te ofrece una pantalla configure con requestId en la URL (p. ej. …/oauth/authorize/configure?requestId=…), ese ID es por sesión: generalo desde la UI del AuthTester; no lo versiones en el repo.
Si el intercambio de code en el navegador falla por CORS en el token_endpoint, el AS no permite llamadas cross-origin desde el browser: en ese caso haría falta un backend (BFF) que canjee el código; el AuthTester suele estar pensado para pruebas de cliente.
El OAuth 2.0 Playground sirve para flujos guiados con servidor simulado; un flujo Implicit allí no usa el redirect_uri /callback/ de este tema (ver sección Implicit más abajo).
| Campo | Valor |
|---|---|
client_id |
9Jyz5ULUVj0DhodVIypTLAnb |
client_secret |
8ltclob04WAcZ6jrnHQxQgzbxGIWRKBV29ypp-vgB9IQx_dm |
| Usuario (login) | cheerful-peafowl@example.com |
| Contraseña | Successful-Dove-72 |
Registro: Client Registration.
No es el flujo PKCE del tema; solo referencia del playground con authorization-server.com:
https://authorization-server.com/authorize?
response_type=token
&client_id=9Jyz5ULUVj0DhodVIypTLAnb
&redirect_uri=https://www.oauth.com/playground/implicit.html
&scope=photo
&state=<valor-que-asigna-el-playground>
Con PKCE en este tema, el redirect_uri debe ser {origen}/callback/ de tu sitio Jekyll.
The theme is available as open source under the terms of the MIT License.