What

I am using Hugo as website content generator: again!

Why

Because Hugo is:

Because org-mode is my preferred tool for editing, coding and organize.

How

In my case: a repository at gitlab with gitlab pages and HTTPS with Let’s Encrypt. Before that the choice was Comodo Essential SSL Certificates.

.
├── [4.0K]  archetypes/
│   └── [  84]  default.md
├── [4.0K]  content/
│   ├── [4.0K]  blog/
│   └── [4.0K]  pages/
├── [4.0K]  content-org/
│   └── [ 31K]  blog.org
├── [4.0K]  resources/
│   └── [4.0K]  _gen/
├── [4.0K]  static/
│   ├── [4.0K]  files/
│   └── [4.0K]  images/
├── [4.0K]  themes/
│   ├── [4.0K]  er/
│   └── [4.0K]  kiss/
└── [ 209]  config.toml

13 directories, 3 files

The important files are config.toml and blog.org at content-org directory.

blog.org:

#+TITLE: Posts
#+HUGO_BASE_DIR: ../
#+HUGO_SECTION: blog
#+SEQ_TODO: TODO DRAFT DONE
#+PROPERTY: header-args :eval never-export
#+OPTIONS: creator:t toc:nil
#+STARTUP: logdone

* Pages
  :PROPERTIES:
  :EXPORT_HUGO_CUSTOM_FRONT_MATTER: :noauthor true :nocomment true :nodate true :nopaging true :noread true
  :EXPORT_HUGO_MENU: :menu main
  :EXPORT_HUGO_SECTION: pages
  :EXPORT_HUGO_WEIGHT: auto
  :END:
** About
   :PROPERTIES:
   :EXPORT_FILE_NAME: about
   :END:

   A page about me.

   My name is Lenilson Jose Dias. Always trying be a better husband, programmer, runner and cyclist.

   I live at [Sao Paulo](https://www.google.com.br/maps/place/S%C3%A3o+Paulo,+State+of+S%C3%A3o+Paulo/@-23.6434197,-46.5870595,9z/data=!4m2!3m1!1s0x94ce448183a461d1:0x9ba94b08ff335bae) - Brazil.

   0x7cc at:$

   * [Twitter](https://twitter.com/0x7cc )
   * [Gitlab](https://gitlab.com/0x7cc )
   * [Github](https://github.com/0x7cc )

   My [PGP - Key]([[https://0x7cc.net/files/pgp.pub.asc]] )

* Posts
** DRAFT Hugo + Org-mode                            :blogging:org_mode:emacs:
   :PROPERTIES:
   :EXPORT_FILE_NAME: hugo-org-mode
   :END:

*** What
	Now I am using Hugo as website content generator. Again!

config.toml:

baseURL = "https://0x7cc.net/"
languageCode = "en-us"
title = "0x7cc.net"
theme = "er"
paginate = 10
pygmentsCodeFences = true
pygmentsStyle = "emacs"
copyright = "©️ Lenilson Jose Dias"
buildDrafts = true

Then add a .gitlab-ci.yml to root repo file with:

# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
image: registry.gitlab.com/pages/hugo:latest

variables:
  GIT_SUBMODULE_STRATEGY: recursive

test:
  script:
  - hugo
  except:
  - master

pages:
  script:
  - hugo
  artifacts:
	paths:
	- public
  only:
  - master

commit + push = <3

Auto-export .org to .md with:

(("content-org/"
  . ((org-mode . ((eval . (org-hugo-auto-export-mode)))))))

All posts with DONE and CLOSED properties will be published.

** DONE Mariadb at OpenBSD                                  :openbsd:mariadb:
   CLOSED: [2017-12-16 Sat 14:43]
   :PROPERTIES:
   :EXPORT_FILE_NAME: mariadb-at-openbsd
   :END: