From 6f934896539cceb84c5b92b55c4b41df25219898 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 11 Feb 2022 21:19:06 +0100 Subject: [PATCH] giscus comments --- views/comments.giscus.phtml | 15 +++++++++++++++ views/index.phtml | 10 +++++----- views/layout.phtml | 10 +++++++++- views/mdref.phtml | 2 +- views/stub.phtml | 4 ++-- 5 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 views/comments.giscus.phtml diff --git a/views/comments.giscus.phtml b/views/comments.giscus.phtml new file mode 100644 index 0000000..c2e621f --- /dev/null +++ b/views/comments.giscus.phtml @@ -0,0 +1,15 @@ +data)) : ?> + + + + diff --git a/views/index.phtml b/views/index.phtml index d2bd1fe..531a87b 100644 --- a/views/index.phtml +++ b/views/index.phtml @@ -9,12 +9,12 @@

- + -

- getTitle()) ?>

-
getIntro()) ?>
+

+ getTitle()) ?>

+
getIntro()) ?>
hasStub($stub)) : ?> diff --git a/views/layout.phtml b/views/layout.phtml index b0e96a8..21693f6 100644 --- a/views/layout.phtml +++ b/views/layout.phtml @@ -29,7 +29,15 @@ + getRepo()->getCommentProvider())) : ?> +
+ $providerData) : ?> + + + +
+ - + diff --git a/views/mdref.phtml b/views/mdref.phtml index cce2d1f..725782e 100644 --- a/views/mdref.phtml +++ b/views/mdref.phtml @@ -2,7 +2,7 @@ getPath()) ?> -isRoot() && $entry->getRepo()->hasStub($stub)) : ?> +isRoot() && $entry->getRepo()->hasStub($stub)) : $root = $entry; ?>

Editor Stub:

This extension provides a stub file four your editor's auto-completion.

diff --git a/views/stub.phtml b/views/stub.phtml index 140cd06..a29faf8 100644 --- a/views/stub.phtml +++ b/views/stub.phtml @@ -3,9 +3,9 @@