diff --git a/config/_default/params.toml b/config/_default/params.toml
index fec8c77..251cc59 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -66,9 +66,12 @@ alertDismissable = true
alertText = "Introducing the Doks child theme, several DX + UX updates, and more! Check out Doks v0.2"
# Edit Page
+# repoHost [Github | Gitea ] is used for building the edit link based on git hoster
+repoHost = "GitHub"
+#repoHost = "Gitea"
docsRepo = "https://github.com/h-enk/doks"
docsRepoBranch = "master"
-editPage = false
+editPage = true
[options]
lazySizes = true
diff --git a/layouts/partials/main/edit-page.html b/layouts/partials/main/edit-page.html
index d685b2d..324476f 100644
--- a/layouts/partials/main/edit-page.html
+++ b/layouts/partials/main/edit-page.html
@@ -1,5 +1,15 @@
{{ $filePath := replace .File.Path "\\" "/" }}
-{{ $contentPath := print .Site.Params.docsRepo "/blob/" .Site.Params.docsRepoBranch "/content/" }}
+
+{{ $contentPath := "null"}}
+
+{{ if (eq .Site.Params.repoHost "GitHub")}}
+ {{ $contentPath = print .Site.Params.docsRepo "/blob/" .Site.Params.docsRepoBranch "/content/" }}
+{{ end }}
+
+{{ if (eq .Site.Params.repoHost "Gitea")}}
+ {{ $contentPath = print .Site.Params.docsRepo "/_edit/" .Site.Params.docsRepoBranch "/content/" }}
+{{ end }}
+
{{ $url := print $contentPath $filePath }}
{{ if .Site.Params.options.multilingualMode }}
@@ -11,6 +21,6 @@
- Edit this page on GitHub
+ Edit this page on {{ .Site.Params.repoHost }}