commit 2f06fd78611ffae87377872e602f93577fa07c8c Author: Gabriel Arazas Date: Mon Nov 2 16:53:37 2020 +0800 Initial release All of the changes should be documented in the changelog. diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d7f49d1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +end_of_line = true +insert_final_newline = true + +[*.{css,scss,sass}] +charset = utf-8 +indent_size = 2 +indent_style = space + +[*.{html,js}] +indent_size = 2 +indent_style = space diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..51c5336 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +dist: bionic +language: generic + +branches: + only: + - master + - demo + +before_install: + - sudo apt-get update + - sudo apt-get install python3 + - sudo apt-get install ruby wget + - wget "https://github.com/gohugoio/hugo/releases/download/v${HUGO_RELEASE}/hugo_extended_${HUGO_RELEASE}_Linux-64bit.deb" + - sudo dpkg -i *.deb + - sudo gem install asciidoctor + +script: + - hugo + +env: + global: + - PRODUCTION=true + - HUGO_RELEASE=0.76.0 + +deploy: + local_dir: "./public/" + provider: pages + skip_cleanup: true + github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable + target_branch: gh-pages + on: + branch: demo diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc new file mode 100644 index 0000000..abdb179 --- /dev/null +++ b/CHANGELOG.adoc @@ -0,0 +1,42 @@ += Changelog +:toc: + +All notable changes to this project will be documented in this file. + +The format is based on https://keepachangelog.com/en/1.0.0/[Keep a Changelog], +and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Versioning]. + + + + +== [0.1.0] - 2020-11-02 + +The initial release. + + +=== Added + +* Easy custom color schemes with https://github.com/chriskempson/base16[Base16 scheme files]. +* Social media icons with https://github.com/simple-icons/simple-icons[Simple Icons] with the added setting to set whether it should appear in text or as an icon. +* Icons on the content metadata for easier reading with link:https://heroicons.com/[HeroIcons]. + + +=== Changed + +* Port CSS into SCSS now requiring the theme to be used with the extended version. + +* Revamp the appearance of the site. + +* Update the theme button with multiple theme selection. +Since the theme now supports more than two themes, the https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme[`prefers-color-scheme`] (the automagic color scheme solution) will not be used. +footnote:[Workarounds exist to let automatic and manual color scheme selection work together but it is not worth it for now.] + +* The content metadata in the single content format. +** Move to the bottom of the content to make more room for other metadata and to make the content more above-the-fold. +Incidentally, this makes the theme more suitable for personal blogs (which is fine to me). +** With the metadata has been moved, it is now replaced with the same metadata section as seen from the list template. + +* Improve conditional display of the table of content. + +* Change "Back to home" with a link bringing to the top of the page instead. + diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..9911494 --- /dev/null +++ b/README.adoc @@ -0,0 +1,459 @@ += hugo-theme-more-contentful +:toc: + + +A https://gohugo.io/hugo-modules/theme-components/#readout[Hugo theme] extending the https://github.com/foo-dogsquared/hugo-theme-contentful[Contentful theme] to be more modern. +It features modern aesthetics and some optimizations making full use of https://gohugo.io/[Hugo]'s feature set. + +Tested primarily with Chromium-based and Firefox-based browsers. + + + + +== Project goals + +* Create a batteries-included theme that is easy to extend and/or modify. +* Focus on the ease of migration of content and data in case the user wants to switch themes. +* https://webaim.org/[Accessibility] for people with disabilities (PWD). +* Make the theme browsable with the following text browsers: +** https://www.brow.sh/[Browsh] +** http://links.twibright.com/[Links] +** https://invisible-island.net/lynx/[Lynx] (the ultimate challenge!) +* Low https://addyosmani.com/blog/performance-budgets/[performance budget] of 30KB or even less, must load under 1 second on a mobile 3G connection, and has a Lighthouse score of >90. +footnote:[It only considered with the default configuration and without non-textual resources such as images and videos.] +* Make the theme functional on `