commit e0e7576d1863523c302b773f0b161551da768b77 Author: Pierre-Olivier Mercier Date: Mon Nov 23 13:05:09 2020 +0100 Initial commit, using hugo-theme-learn diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ad0a2a9 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,47 @@ +--- +kind: pipeline +type: docker +name: default + +platform: + os: linux + arch: arm64 + +clone: + disable: true + +steps: + - name: clone + image: alpine + commands: + - apk add --no-cache git + - git clone --recursive $DRONE_GIT_HTTP_URL . + - git checkout $DRONE_COMMIT + + - name: build + image: plugins/hugo + settings: + hugo_version: 0.70.0 + validate: true + + - name: deploy + image: appleboy/drone-scp + settings: + debug: true + tar_tmp_path: /tmp/ + host: help.happydns.org + target: /var/www/happydns.org/help/ + source: public/* + strip_components: 1 + username: + from_secret: ssh_username + key: + from_secret: deploy_key + port: + from_secret: ssh_port + when: + branch: + - master + event: + exclude: + - pull_request diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d298be1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..01a0b24 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-theme-learn"] + path = themes/hugo-theme-learn + url = https://github.com/matcornic/hugo-theme-learn.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..1119bef --- /dev/null +++ b/config.toml @@ -0,0 +1,38 @@ +baseURL = "https://help.happydns.org/" +defaultContentLanguage = "en" +defaultContentLanguageInSubdir= true + +theme = "hugo-theme-learn" +metaDataFormat = "yaml" + +[Languages] +[Languages.en] +title = "happyDNS help center" +weight = 1 +languageName = "English" +landingPageURL = "/en" +landingPageName = " Home" + +[Languages.fr] +title = "happyDNS centre d'aide" +weight = 2 +languageName = "Français" +landingPageURL = "/fr" +landingPageName = " Accueil" + +[params] + editURL = "https://framagit.org/happyDNS/help/-/blob/master/content/" + description = "Finally a simple interface for domain names." + themeVariant = "green" + author = "The happyDNS team" + showVisitedLinks = true + disableBreadcrumb = false + disableMermaid = true + +[outputs] + home = [ "HTML", "RSS", "JSON"] + +[[menu.shortcuts]] + name = " Project sources" + url = "https://framagit.org/happyDNS/" + weight = 15 \ No newline at end of file diff --git a/content/_index.en.md b/content/_index.en.md new file mode 100644 index 0000000..a2690a0 --- /dev/null +++ b/content/_index.en.md @@ -0,0 +1,7 @@ +--- +date: 2020-11-23T12:59:49+01:00 +title: Welcome to happyDNS +chapter: true +--- + +# Welcome to happyDNS diff --git a/content/_index.fr.md b/content/_index.fr.md new file mode 100644 index 0000000..8d5fe37 --- /dev/null +++ b/content/_index.fr.md @@ -0,0 +1,7 @@ +--- +date: 2020-11-23T12:59:49+01:00 +title: Bienvenue chez happyDNS +chapter: true +--- + +# Bienvenue chez happyDNS diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html new file mode 100644 index 0000000..68d1cbf --- /dev/null +++ b/layouts/partials/logo.html @@ -0,0 +1,3 @@ + diff --git a/static/img/happyDNS.png b/static/img/happyDNS.png new file mode 100644 index 0000000..1880830 Binary files /dev/null and b/static/img/happyDNS.png differ diff --git a/themes/hugo-theme-learn b/themes/hugo-theme-learn new file mode 160000 index 0000000..3efb327 --- /dev/null +++ b/themes/hugo-theme-learn @@ -0,0 +1 @@ +Subproject commit 3efb32712c5cc77e644852d13ce3525780374b10