From 6bc49c80cf68e2d8fdacfbb779ff6a5879ba8aa5 Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Tue, 5 May 2020 23:01:11 -0300 Subject: [PATCH] initial commit --- .drone.yml | 35 ++++++++++++++++++++++++ .gitignore | 4 +++ .gitmodules | 3 +++ archetypes/default.md | 6 +++++ config.toml | 57 +++++++++++++++++++++++++++++++++++++++ themes/hugo-sustain-vitae | 1 + 6 files changed, 106 insertions(+) create mode 100644 .drone.yml create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 160000 themes/hugo-sustain-vitae diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..58aeab7 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +--- +kind: pipeline +name: default + +steps: + - name: build + image: plugins/hugo + settings: + hugo_version: 0.69 + validate: true + # pull: always + # url: https://foo.com + # config: path/to/config + # content: path/to/content/ + # layout: path/to/layout + # output: path/to/public + # source: path/to/source + # theme: path/themes/THEMENAME/ + +- name: deploy + image: drillster/drone-rsync + environment: + RSYNC_KEY: + from_secret: deploy_ssh_key + RSYNC_USER: + from_secret: deploy_ssh_user + settings: + hosts: + - from_secret: deploy_host + source: public/ + target: + from_secret: deploy_dir + when: + branch: + - master diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4858447 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +\#* +.#* +*.bak diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c46464a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/sustain-vitae"] + path = themes/hugo-sustain-vitae + url = https://github.com/maurete/hugo-sustain-vitae.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..edfbe13 --- /dev/null +++ b/config.toml @@ -0,0 +1,57 @@ +baseurl = "https://example.com/" +languageCode = "en-US" +title = "Chris Turner" +# Enable comments by entering your Disqus shortname +disqusShortname = "" +# Enable Google Analytics by entering your tracking code +googleAnalytics = "" +theme = "hugo-sustain-vitae" + +[permalinks] + post = "/:year/:month/:day/:slug" + +[params] + avatar = "profile.png" + author = "Chris Turner" + description = "Describe your website" + + # Custom assets can be linked with their paths relative to static/ + custom_css = [] + custom_js = [] + +[params.social] + Github = "username" + Email = "email@example.com" + Twitter = "username" + LinkedIn = "username" + Stackoverflow = "username" + Medium = "username" + Telegram = "username" + +[params.vitae] + website = "git.io/sustain" + website_full = "https://demo.nurlan.co/hugo-sustain/" + tel = "+44 0000 000000" + tel_full = "+440000000000" + google_maps = "https://www.google.co.uk/maps/place/44+Perth+St,+Edinburgh,+Edinburgh+City+EH3+5BL" + address = "44 Perth Street" + postcode = "EH3 5BL" + city = "Edinburgh" + country = "United Kingdom" + +## Main Menu +[[menu.main]] + name = "blog" + weight = 100 + identifier = "blog" + url = "/blog/" +[[menu.main]] + name = "projects" + identifier = "projects" + weight = 200 + url = "/projects/" +[[menu.main]] + name = "resume" + identifier = "resume" + weight = 300 + url = "/vitae/" diff --git a/themes/hugo-sustain-vitae b/themes/hugo-sustain-vitae new file mode 160000 index 0000000..2331ec1 --- /dev/null +++ b/themes/hugo-sustain-vitae @@ -0,0 +1 @@ +Subproject commit 2331ec11c9106d283fd8cacb1c78eaa1613a45b5