diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..103845d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,36 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: klakegg/hugo + commands: + - hugo --minify + + - name: image + image: plugins/docker + settings: + registry: registry.okami101.io + repo: registry.okami101.io/adr1enbe4udou1n/blog + tags: latest + username: + from_secret: registry_username + password: + from_secret: registry_password + + # - name: deploy + # image: appleboy/drone-ssh + # settings: + # host: front.okami101.io + # port: 2222 + # username: okami + # key: + # from_secret: swarm_ssh_key + # script: + # - docker service update --image registry.okami101.io/adr1enbe4udou1n/blog:latest blog_app --with-registry-auth + +trigger: + event: + - push + - pull_request diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7cc0c59 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:alpine + +COPY public /var/www/html diff --git a/config.toml b/config.toml deleted file mode 100644 index 1d7c819..0000000 --- a/config.toml +++ /dev/null @@ -1,3 +0,0 @@ -baseURL = 'http://example.org/' -languageCode = 'en-us' -title = 'My New Hugo Site' diff --git a/config/_default/config.toml b/config/_default/config.toml new file mode 100644 index 0000000..7a6e0ec --- /dev/null +++ b/config/_default/config.toml @@ -0,0 +1,26 @@ +# -- Site Configuration -- +# Refer to the theme docs for more details about each of these parameters. +# https://jpanther.github.io/congo/docs/getting-started/ + +# baseURL = "https://blog.okami101.io/" +languageCode = "en" +defaultContentLanguage = "en" + +title = "Okami101 Blog" +# copyright = "Copy, _right?_ :thinking_face:" + +enableEmoji = true +enableRobotsTXT = true + +summaryLength = 0 + +[author] + name = "Adrien Beaudouin" + image = "img/author.jpg" + bio = "A simple web developer @janze" + links = [ + { email = "mailto:adrien@okami101.io" }, + { github = "https://github.com/adr1enbe4udou1n" }, + { linkedin = "https://linkedin.com/in/adr1enbe4udou1n" }, + { twitter = "https://twitter.com/adr1enbe4udou1n" }, + ] diff --git a/config/_default/markup.toml b/config/_default/markup.toml new file mode 100644 index 0000000..2ca49b3 --- /dev/null +++ b/config/_default/markup.toml @@ -0,0 +1,9 @@ +# -- Markup -- +# These settings are required for the theme to function. + +[goldmark] +[goldmark.renderer] + unsafe = true + +[highlight] + noClasses = false diff --git a/config/_default/menus.toml b/config/_default/menus.toml new file mode 100644 index 0000000..1629821 --- /dev/null +++ b/config/_default/menus.toml @@ -0,0 +1,36 @@ +# -- Main Menu -- +# The main menu is displayed in the header at the top of the page. +# Acceptable parameters are name, pageRef, page, url, title, weight. +# +# The simplest menu configuration is to provide: +# name = The name to be displayed for this menu link +# pageRef = The identifier of the page or section to link to +# +# By default the menu is ordered alphabetically. This can be +# overridden by providing a weight value. The menu will then be +# ordered by weight from lowest to highest. + +[[main]] + name = "Blog" + pageRef = "posts" + weight = 10 + +[[main]] + name = "Categories" + pageRef = "categories" + weight = 20 + +[[main]] + name = "Tags" + pageRef = "tags" + weight = 30 + + +# -- Footer Menu -- +# The footer menu is displayed at the bottom of the page, just before +# the copyright notice. Configure as per the main menu above. + +# [[footer]] +# name = "Tags" +# pageRef = "tags" +# weight = 10 diff --git a/config/_default/module.toml b/config/_default/module.toml new file mode 100644 index 0000000..899f2b9 --- /dev/null +++ b/config/_default/module.toml @@ -0,0 +1,2 @@ +[[imports]] +path = "github.com/jpanther/congo" diff --git a/config/_default/params.toml b/config/_default/params.toml new file mode 100644 index 0000000..6d01524 --- /dev/null +++ b/config/_default/params.toml @@ -0,0 +1,54 @@ +# -- Theme Options -- +# These options control how the theme functions and allow you to +# customise the display of your website. +# +# Refer to the theme docs for more details about each of these parameters. +# https://jpanther.github.io/congo/docs/configuration/#theme-parameters + +colorScheme = "congo" +# darkMode = "auto" +# darkToggle = false +# logo = "img/logo.jpg" +# description = "My awesome website" +# mainSections = ["section1", "section2"] +# robots = "" + +[homepage] + layout = "page" # valid options: page, profile, custom + showRecent = false + +[article] + showDate = true + dateFormat = "2 January 2006" + showAuthor = true + showBreadcrumbs = false + showDraftLabel = true + showEdit = false + # editURL = "https://github.com/username/repo/" + editAppendPath = true + showHeadingAnchors = true + showPagination = true + showReadingTime = true + showWordCount = false + # sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"] + +[list] + showBreadcrumbs = false + showSummary = false + groupByYear = true + +[taxonomy] + showTermCount = true + +[sitemap] + excludedKinds = ["taxonomy", "term"] + +[fathomAnalytics] + # site = "ABC12345" + # domain = "llama.yoursite.com" + +[verification] + # google = "" + # bing = "" + # pinterest = "" + # yandex = "" diff --git a/content/posts/my-first-post.md b/content/posts/my-first-post.md new file mode 100644 index 0000000..c870d27 --- /dev/null +++ b/content/posts/my-first-post.md @@ -0,0 +1,145 @@ +--- +title: "Markdown" +date: 2019-03-11 +description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements." +tags: ["markdown", "css", "html", "sample"] +--- + +This article offers a sample of basic Markdown formatting that can be used in Congo, also it shows how some basic HTML elements are decorated. + + + +## Headings + +The following HTML `
Test
+ + +``` + +### Code block indented with four spaces + + + + + +Test
+ + + +### Code block with Hugo's internal highlight shortcode + +{{< highlight html >}} + + + + + +Test
+ + +{{< /highlight >}} + +## List Types + +### Ordered List + +1. First item +2. Second item +3. Third item + +### Unordered List + +- List item +- Another item +- And another item + +### Nested list + +- Fruit + - Apple + - Orange + - Banana +- Dairy + - Milk + - Cheese + +## Other Elements — abbr, sub, sup, kbd, mark + +GIF is a bitmap image format. + +H2O + +Xn + Yn = Zn + +Press CTRL+ALT+Delete to end the session. + +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a76bf57 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/adr1enbe4udou1n/blog + +go 1.17 + +require github.com/jpanther/congo v1.6.0 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..2b11238 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/jpanther/congo v1.6.0 h1:7x/XhNVUprrpCQVo23RdvcmB7nfqbShaRdT0d1Mb6RY= +github.com/jpanther/congo v1.6.0/go.mod h1:fFwW7KKbofyaZgwLJdh6h1L51UZrSyymQgk31rclcuQ= diff --git a/static/img/author.jpg b/static/img/author.jpg new file mode 100644 index 0000000..45dfc1b Binary files /dev/null and b/static/img/author.jpg differ