diff --git a/blog/config.yaml b/blog/config.yaml index e84e89a..6cb482b 120000 --- a/blog/config.yaml +++ b/blog/config.yaml @@ -1 +1 @@ -../config.yaml \ No newline at end of file +../meta/config.yaml \ No newline at end of file diff --git a/blog/content/about-subpage.md b/blog/content/about-subpage.md deleted file mode 100644 index 1d1dc16..0000000 --- a/blog/content/about-subpage.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -title: "Subpage" -description: "Just a subpage of about" -date: "2019-02-28" -author: "Hugo Authors" -slug: /about/subpage -menu: - about: - identifier: about - name: About - title: About - url: /about - weight: 1 - subpage: - identifier: subpage - parent: about - name: Subpage - title: Subpage - url: /about/subpage/ - weight: 10 ---- - -Just a subpage of About. diff --git a/blog/content/about.md b/blog/content/about.md deleted file mode 100644 index 627e661..0000000 --- a/blog/content/about.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: "About" -description: "Hugo, the world’s fastest framework for building websites" -date: "2019-02-28" -aliases: - - "about-us" - - "about-hugo" - - "contact" -author: "Hugo Authors" -menu: - about: - name: About - title: About - url: /about - weight: 1 - subpage: - parent: about - name: Subpage - title: Subpage - url: /about/subpage - weight: 10 ---- - -Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. - -Hugo makes use of a variety of open source projects including: - -* https://github.com/yuin/goldmark -* https://github.com/alecthomas/chroma -* https://github.com/muesli/smartcrop -* https://github.com/spf13/cobra -* https://github.com/spf13/viper - -Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. - -Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. - -Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. - -Learn more and contribute on [GitHub](https://github.com/gohugoio). - - - diff --git a/blog/content/about.md b/blog/content/about.md new file mode 120000 index 0000000..b5f1e0a --- /dev/null +++ b/blog/content/about.md @@ -0,0 +1 @@ +../../meta/about.md \ No newline at end of file diff --git a/blog/content/homepage/about.md b/blog/content/homepage/about.md deleted file mode 100644 index c2ba680..0000000 --- a/blog/content/homepage/about.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: 'Our Difference' -button: 'About us' -weight: 2 ---- - -Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo, \ No newline at end of file diff --git a/blog/content/homepage/index.md b/blog/content/homepage/index.md deleted file mode 100644 index 01ffa31..0000000 --- a/blog/content/homepage/index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -headless : true ---- diff --git a/blog/content/homepage/work.md b/blog/content/homepage/work.md deleted file mode 100644 index f2fee73..0000000 --- a/blog/content/homepage/work.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: 'We Help Business Grow' -button: 'Our Work' -weight: 1 ---- - -Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit. \ No newline at end of file diff --git a/meta/about.md b/meta/about.md new file mode 100644 index 0000000..85b0c1a --- /dev/null +++ b/meta/about.md @@ -0,0 +1,31 @@ +--- +title: "About" +description: "Hugo, the world’s fastest framework for building websites" +date: "2019-02-28" +aliases: + - "about-us" + - "about-hugo" + - "contact" +author: "Hugo Authors" +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/yuin/goldmark +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. + +Learn more and contribute on [GitHub](https://github.com/gohugoio). + + + diff --git a/config.yaml b/meta/config.yaml similarity index 93% rename from config.yaml rename to meta/config.yaml index 3377a5b..b3312ee 100644 --- a/config.yaml +++ b/meta/config.yaml @@ -43,6 +43,11 @@ menu: title: Archive url: /posts/ weight: 0 + - identifier: about + name: About + title: About + url: /about/ + weight: 1 markup: defaultMarkdownHandler: goldmark diff --git a/posts.sh b/posts.sh index 74f39bf..5931f61 100644 --- a/posts.sh +++ b/posts.sh @@ -11,6 +11,17 @@ TMPDIR="${TMPDIR:-"/tmp"}" main() { flags "$@" + #posts + meta +} + +flags() { + set -e + set -o pipefail + cd "$(dirname "$BASH_SOURCE")" +} + +posts() { local want=() for b64_json in $(list); do local json="$(echo "$b64_json" | base64 --decode)" @@ -38,10 +49,8 @@ main() { done } -flags() { - set -e - set -o pipefail - cd "$(dirname "$BASH_SOURCE")" +meta() { + false } fatal() {