Un sistem de comentarii oferit de GitHub Discussions. Oferă vizitatorilor posibilitatea de a lăsa comentarii ori reacții pe site-ul tău via GitHub! Inspirat masiv de utterances.
Note:
giscus este încă în dezvoltare. GitHub dezvoltă încă în mod activ Discussions și API-ul corespunzător. Prin urmare unele funcționalități giscus pot să Thus, some features of giscus pot genera erori sau pot fi schimbate în timp.
Cum funcționează
Cînd giscus se încarcă, API-ul de căutare GitHub Discussions este folosit pentru a găsi discuția asociată cu pagina pe baza unei atribuiri alese (URL, pathname, <title>, etc.). Dacă nu este găsită nici o discuție, bot-ul giscus va crea în mod automat o discuție pentru prima dată cînd cineva lasă un comentariu sau o reacție.
Pentru a comenta vizitatorii trebuie să autorizeze aplicația giscus ca să publice în numele lor folosind sistemul GitHub OAuth. Alternativ, vizitatorii pot comenta direct în GitHub Discussion. Comentariile pot fi moderate la GitHub.
Configuration
Language
Choose the language giscus will be displayed in. Can't find your language? Contribute a localization.
Repository
Choose the repository giscus will connect to. Make sure that:
The repository is public, otherwise visitors will not be able to view the discussion.
The giscus app is installed, otherwise visitors will not be able to comment and react.
Choose the mapping between the embedding page and the embedded discussion.
Avoid mismatches due to GitHub's fuzzy searching method when there are multiple discussions with similar titles. See the documentation for more details.
Discussion Category
Choose the discussion category where new discussions will be created. It is recommended to use a category with the Announcements type so that new discussions can only be created by maintainers and giscus.
When searching for a matching discussion, giscus will only search in this category.
Features
Choose whether specific features should be enabled.
The reactions for the discussion's main post will be shown before the comments.
Discussion metadata will be sent periodically to the parent window (the embedding page). For demonstration, enable this option and open your browser's console on this page. See the documentation for more details.
The comment input box will be placed above the comments, so that users can leave a comment without scrolling to the bottom of the discussion.
Loading of the comments will be deferred until the user scrolls near the comments container. This is done by adding loading="lazy" to the <iframe> element.
Theme
Choose a theme that matches your website. Can't find one that does? Contribute a new theme.
Enable giscus
Add the following <script> tag to your website's template where you want the comments to appear. If an element with the class giscus exists, the comments will be placed there instead.
Nu v-ați configurat depozitul și/sau categoria. Valorile pentru acele câmpuri nu vor fi afișate până când nu le completați.
<scriptsrc="https://giscus.app/client.js"
data-repo="[ENTER REPO HERE]"
data-repo-id="[ENTER REPO ID HERE]"
data-category="[ENTER CATEGORY NAME HERE]"
data-category-id="[ENTER CATEGORY ID HERE]"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="preferred_color_scheme"
data-lang="ro"
crossorigin="anonymous"
async></script>
You can customize the container layout using the .giscus and .giscus-frame selectors from the embedding page.
Dacă ai folosit anterior un alt sistem ce folosește GitHub Issues (e.g. utterances, gitalk), poți converti sistemul exitent în discuții. După convertire verificați că titlurile discuțiilor și ale paginilor sînt corect atribuite, apoi giscus va folosi în mod automat discuțiile..
giscus
Un sistem de comentarii oferit de GitHub Discussions. Oferă vizitatorilor posibilitatea de a lăsa comentarii ori reacții pe site-ul tău via GitHub! Inspirat masiv de utterances.
Cum funcționează
Cînd giscus se încarcă, API-ul de căutare GitHub Discussions este folosit pentru a găsi discuția asociată cu pagina pe baza unei atribuiri alese (URL,
pathname,<title>, etc.). Dacă nu este găsită nici o discuție, bot-ul giscus va crea în mod automat o discuție pentru prima dată cînd cineva lasă un comentariu sau o reacție.Pentru a comenta vizitatorii trebuie să autorizeze aplicația giscus ca să publice în numele lor folosind sistemul GitHub OAuth. Alternativ, vizitatorii pot comenta direct în GitHub Discussion. Comentariile pot fi moderate la GitHub.
Configuration
Language
Choose the language giscus will be displayed in. Can't find your language? Contribute a localization.
Repository
Choose the repository giscus will connect to. Make sure that:
Page ↔️ Discussions Mapping
Choose the mapping between the embedding page and the embedded discussion.
Avoid mismatches due to GitHub's fuzzy searching method when there are multiple discussions with similar titles. See the documentation for more details.
Discussion Category
Choose the discussion category where new discussions will be created. It is recommended to use a category with the Announcements type so that new discussions can only be created by maintainers and giscus.
When searching for a matching discussion, giscus will only search in this category.
Features
Choose whether specific features should be enabled.
The reactions for the discussion's main post will be shown before the comments.
Discussion metadata will be sent periodically to the parent window (the embedding page). For demonstration, enable this option and open your browser's console on this page. See the documentation for more details.
The comment input box will be placed above the comments, so that users can leave a comment without scrolling to the bottom of the discussion.
Loading of the comments will be deferred until the user scrolls near the comments container. This is done by adding
loading="lazy"to the<iframe>element.Theme
Choose a theme that matches your website. Can't find one that does? Contribute a new theme.
Enable giscus
Add the following
<script>tag to your website's template where you want the comments to appear. If an element with the classgiscusexists, the comments will be placed there instead.You can customize the container layout using the
.giscusand.giscus-frameselectors from the embedding page.Dacă folosești giscus poți să îți arăți aprecierea cu o 🌟 giscus la GitHub și adăugînd
giscusla repository-ul personal! 🎉Folosire avansată
Configurări adiționale (e. g. permiterea doar a unor origini pentru comentarii) pot fi adăugate urmărind ghidul avansat de utilizare.
Pentru a folosi giscus cu React, Vue sau Svelte vezi giscus component library.
Migrare
Dacă ai folosit anterior un alt sistem ce folosește GitHub Issues (e.g. utterances, gitalk), poți converti sistemul exitent în discuții. După convertire verificați că titlurile discuțiilor și ale paginilor sînt corect atribuite, apoi giscus va folosi în mod automat discuțiile..
Site-urile care folosesc giscus
Cum să ajuți
Vezi CONTRIBUTING.md
Try it out 👇👇👇