mirror of
https://github.com/getzola/zola
synced 2024-12-13 05:42:29 +00:00
parent
d149afe07c
commit
864740a76f
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ environment variable to the access token you have obtained.
|
|||
|
||||
```jinja2
|
||||
{% set token = get_env(name="GITHUB_TOKEN") %}
|
||||
{% set postdata = load_data(url="https://api.github.com/graphql", format="json", method="POST" ,content_type="application/json", headers=["accept=application/vnd.github.v4.idl", "authentication=Bearer " ~ token], body='{"query":"query { viewer { login }}"}')%}
|
||||
{% set postdata = load_data(url="https://api.github.com/graphql", format="json", method="POST" ,content_type="application/json", headers=["accept=application/vnd.github.v4.idl", "authorization=Bearer " ~ token], body='{"query":"query { viewer { login }}"}')%}
|
||||
{{postdata|safe}}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue