diff --git a/.github/workflows/DevelopServerDeploy.yml b/.github/workflows/DevelopServerDeploy.yml
index c1695602..912d67a2 100644
--- a/.github/workflows/DevelopServerDeploy.yml
+++ b/.github/workflows/DevelopServerDeploy.yml
@@ -58,11 +58,10 @@ jobs:
- name: Build hugo docs
run: |
docker run \
- -v "${GITHUB_WORKSPACE}/doc:/site/doc" \
- -v "${GITHUB_WORKSPACE}/themes:/site/themes" \
- -v "${GITHUB_WORKSPACE}/config.toml:/site/config.toml" \
- -v "/var/www/dev.wikigdrive.com:/site/dist/hugo" \
- --env CONFIG_TOML="/site/config.toml" --env BASE_URL="https://dev.wikigdrive.com" \
+ -v "${GITHUB_WORKSPACE}/hugo:/site" \
+ -v "${GITHUB_WORKSPACE}/website:/website" \
+ -v "/var/www/dev.wikigdrive.com:/dist/hugo" \
+ --env CONFIG_TOML="/site/config/_default/config.toml" --env BASE_URL="https://dev.wikigdrive.com" \
wgd-action-runner:develop /steps/step_render_hugo
- name: Start
diff --git a/.github/workflows/ProdServerDeploy.yml b/.github/workflows/ProdServerDeploy.yml
index f346d0f6..0343054a 100644
--- a/.github/workflows/ProdServerDeploy.yml
+++ b/.github/workflows/ProdServerDeploy.yml
@@ -59,11 +59,10 @@ jobs:
- name: Build hugo docs
run: |
docker run \
- -v "${GITHUB_WORKSPACE}/doc:/site/doc" \
- -v "${GITHUB_WORKSPACE}/themes:/site/themes" \
- -v "${GITHUB_WORKSPACE}/config.toml:/site/config.toml" \
- -v "/var/www/wikigdrive.com:/site/dist/hugo" \
- --env CONFIG_TOML="/site/config.toml" --env BASE_URL="https://wikigdrive.com" \
+ -v "${GITHUB_WORKSPACE}/hugo:/site" \
+ -v "${GITHUB_WORKSPACE}/website:/website" \
+ -v "/var/www/dev.wikigdrive.com:/dist/hugo" \
+ --env CONFIG_TOML="/site/config/_default/config.toml" --env BASE_URL="https://wikigdrive.com" \
wgd-action-runner:prod /steps/step_render_hugo
- name: Start
diff --git a/.gitignore b/.gitignore
index 6b3d3620..4311cca3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,6 @@ node_modules
dist
content
.hugo*
+hugo/resources
+hugo_stats.json
+
diff --git a/Dockerfile b/Dockerfile
index 58d14957..96d4cc52 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,7 +13,7 @@ RUN npm link --location=user
EXPOSE 3000
VOLUME /data
-RUN cd /usr/src/app/apps/ui && npm install && npm run build
+RUN cd /usr/src/app/apps/ui && cp ../../hugo/themes/wgd-bootstrap/layouts/_default/baseof.html index.html && npm install && npm run build
WORKDIR "/usr/src/app"
diff --git a/README.md b/README.md
index 343ded60..1e3e3bb7 120000
--- a/README.md
+++ b/README.md
@@ -1 +1 @@
-doc/_index.md
\ No newline at end of file
+website/docs/_index.md
\ No newline at end of file
diff --git a/apps/ui/assets/layout.css b/apps/ui/assets/layout.css
index 1ce6103d..c899955e 100644
--- a/apps/ui/assets/layout.css
+++ b/apps/ui/assets/layout.css
@@ -43,7 +43,6 @@ body,
.mainbar__content {
flex: 1 1 auto;
text-overflow: ellipsis;
- white-space: nowrap;
height: calc(100vh - var(--navbar-height));
overflow: auto;
}
diff --git a/apps/ui/assets/main.css b/apps/ui/assets/main.css
index e74a23c5..24fbea43 100644
--- a/apps/ui/assets/main.css
+++ b/apps/ui/assets/main.css
@@ -8,7 +8,6 @@ nav {
justify-content: space-between;
display: flex;
align-items: center;
- background-color: #2196F3;
color: #FFF;
}
diff --git a/apps/ui/index.html b/apps/ui/index.html
deleted file mode 100644
index 077e9324..00000000
--- a/apps/ui/index.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
- wikigdrive
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/apps/ui/src/components/NavBar.vue b/apps/ui/src/components/NavBar.vue
index 5ced8e88..28d064bb 100644
--- a/apps/ui/src/components/NavBar.vue
+++ b/apps/ui/src/components/NavBar.vue
@@ -11,7 +11,22 @@
WikiGDrive
-
+
+
+
+ -
+
+
+
+
+
diff --git a/config.toml b/config.toml
deleted file mode 100644
index 285c5346..00000000
--- a/config.toml
+++ /dev/null
@@ -1,4 +0,0 @@
-theme="wgd-bootstrap"
-contentDir="doc"
-publishDir="dist/hugo"
-uglyURLs="true"
diff --git a/hugo/config/_default/config.toml b/hugo/config/_default/config.toml
new file mode 100644
index 00000000..b6f087c1
--- /dev/null
+++ b/hugo/config/_default/config.toml
@@ -0,0 +1,14 @@
+title = "WikiGDrive"
+theme="wgd-bootstrap"
+contentDir="../website"
+publishDir="../dist/hugo"
+#uglyURLs="true"
+uglyURLs = false
+
+[build]
+writeStats = true
+
+[module]
+[[module.mounts]]
+ source = './themes/wgd-bootstrap/layouts/_default/_markup'
+ target = 'layouts/_default/_markup'
diff --git a/hugo/config/_default/params.toml b/hugo/config/_default/params.toml
new file mode 100644
index 00000000..efd362a8
--- /dev/null
+++ b/hugo/config/_default/params.toml
@@ -0,0 +1,33 @@
+#customCSS = null # To use: uncomment and replace null with value
+#customJS = null # To use: uncomment and replace null with value
+dateFormat = ":date_long"
+title = "WikiGDrive"
+description = "Google Drive to MarkDown synchronization"
+keywords = "GDrive, CLI, MarkDown, Google Docs, Wiki"
+math = true
+titleCase = true
+viewer = true
+
+[actionsPanel]
+disabled = true
+
+[post]
+featuredImage = true
+numberifyHeadings = true
+numberifyHeadingsSeparator = "."
+
+[sidebar]
+archives = false
+authors = false
+fixed = true
+recentPosts = false
+taxonomiesToggle = false
+
+[siteVerification]
+#baidu = null # To use: uncomment and replace null with value
+#baiduUnion = null # To use: uncomment and replace null with value
+#bing = null # To use: uncomment and replace null with value
+#google = null # To use: uncomment and replace null with value
+#shenma = null # To use: uncomment and replace null with value
+#so = null # To use: uncomment and replace null with value
+#sogou = null # To use: uncomment and replace null with value
diff --git a/hugo/go.mod b/hugo/go.mod
new file mode 100644
index 00000000..f08af376
--- /dev/null
+++ b/hugo/go.mod
@@ -0,0 +1,3 @@
+module github.com/mieweb/wikiGDrive
+
+go 1.21.1
diff --git a/themes/wgd-bootstrap/layouts/404.html b/hugo/go.sum
similarity index 100%
rename from themes/wgd-bootstrap/layouts/404.html
rename to hugo/go.sum
diff --git a/hugo/package.json b/hugo/package.json
new file mode 100644
index 00000000..8e2f91a4
--- /dev/null
+++ b/hugo/package.json
@@ -0,0 +1,6 @@
+{
+ "dependencies": {},
+ "devDependencies": {},
+ "name": "wikiGDrive",
+ "version": "0.1.0"
+}
diff --git a/hugo/static/images/logo.svg b/hugo/static/images/logo.svg
new file mode 100644
index 00000000..841290c8
--- /dev/null
+++ b/hugo/static/images/logo.svg
@@ -0,0 +1,33 @@
+
+
\ No newline at end of file
diff --git a/hugo/themes/wgd-bootstrap/layouts/404.html b/hugo/themes/wgd-bootstrap/layouts/404.html
new file mode 100644
index 00000000..f1e459d0
--- /dev/null
+++ b/hugo/themes/wgd-bootstrap/layouts/404.html
@@ -0,0 +1,3 @@
+{{- define "main" }}
+Not found
+{{- end -}}
diff --git a/themes/wgd-bootstrap/layouts/_default/_markup/render-codeblock-mermaid.html b/hugo/themes/wgd-bootstrap/layouts/_default/_markup/render-codeblock-mermaid.html
similarity index 100%
rename from themes/wgd-bootstrap/layouts/_default/_markup/render-codeblock-mermaid.html
rename to hugo/themes/wgd-bootstrap/layouts/_default/_markup/render-codeblock-mermaid.html
diff --git a/themes/wgd-bootstrap/layouts/_default/_markup/render-heading.html b/hugo/themes/wgd-bootstrap/layouts/_default/_markup/render-heading.html
similarity index 100%
rename from themes/wgd-bootstrap/layouts/_default/_markup/render-heading.html
rename to hugo/themes/wgd-bootstrap/layouts/_default/_markup/render-heading.html
diff --git a/themes/wgd-bootstrap/layouts/_default/_markup/render-link.html b/hugo/themes/wgd-bootstrap/layouts/_default/_markup/render-link.html
similarity index 100%
rename from themes/wgd-bootstrap/layouts/_default/_markup/render-link.html
rename to hugo/themes/wgd-bootstrap/layouts/_default/_markup/render-link.html
diff --git a/themes/wgd-bootstrap/layouts/_default/baseof.html b/hugo/themes/wgd-bootstrap/layouts/_default/baseof.html
similarity index 81%
rename from themes/wgd-bootstrap/layouts/_default/baseof.html
rename to hugo/themes/wgd-bootstrap/layouts/_default/baseof.html
index 7b84a914..0cfc5df8 100644
--- a/themes/wgd-bootstrap/layouts/_default/baseof.html
+++ b/hugo/themes/wgd-bootstrap/layouts/_default/baseof.html
@@ -3,11 +3,11 @@
- wikigdrive
+ {{ .Site.Params.title }}
-
+
@@ -22,7 +22,14 @@
-{{- block "main" . }}{{- end }}
+
+{{- block "layout" . }}
+{{- block "sidebar" . }}{{- end }}
+{{- block "main" . }}{{- end }}
+{{- block "footer" . }}{{- end }}
+{{- end }}
+
+{{- partial "debug.html" . -}}