diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 76a259c..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "hugo-theme-minos"] - path = hugo-theme-minos - url = https://github.com/carsonip/hugo-theme-minos diff --git a/hugo-theme-minos b/hugo-theme-minos deleted file mode 160000 index ebac3b3..0000000 --- a/hugo-theme-minos +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ebac3b34438e13a1370890d29fce541e661819d0 diff --git a/themes/hugo-theme-minos/.gitignore b/themes/hugo-theme-minos/.gitignore new file mode 100644 index 0000000..054fb78 --- /dev/null +++ b/themes/hugo-theme-minos/.gitignore @@ -0,0 +1,3 @@ +.idea +*~ +.DS_Store diff --git a/themes/hugo-theme-minos/LICENSE.md b/themes/hugo-theme-minos/LICENSE.md new file mode 100644 index 0000000..315bcec --- /dev/null +++ b/themes/hugo-theme-minos/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/hugo-theme-minos/README.md b/themes/hugo-theme-minos/README.md new file mode 100644 index 0000000..c4565a5 --- /dev/null +++ b/themes/hugo-theme-minos/README.md @@ -0,0 +1,145 @@ +# Minos + +**_A simple and retro styled theme, concentrated more on your ideas._** + +Minos is a Hugo theme ported from Hexo theme [Minos](https://github.com/ppoffice/hexo-theme-minos). Requires Hugo v0.59+. + +## Screenshots + + + + + +## Features + +* Everything in the original Mino theme, except + * Gallery (fancybox) + * Duoshuo comment + * Search box + * Hierarchical categories (since this isn't supported in Hugo) +* Smart table of contents (will highlight and expand current section in TOC) +* Disqus +* Google Analytics +* [KaTeX](https://github.com/Khan/KaTeX) +* Syntax highlighting using [highlight.js](https://github.com/isagalaev/highlight.js) + +## Installation + +To install Minos as your theme, first clone this repository in the `themes/` directory: + +``` +$ cd themes/ +$ git clone --depth 1 https://github.com/carsonip/hugo-theme-minos +``` + +Second, specify `hugo-theme-minos` as your default theme in the config.toml file. Just add the line + +``` +theme = "hugo-theme-minos" +``` + +## Options + +### Pagination +``` +paginate = 10 +``` + +### Smart TOC +``` +[params] + smartToc = true +``` + +### Post Navigation +``` +[params] + noPostNavigation = true +``` + +This option disables links to next and previous post at the bottom of posts. + +### Disqus +``` +disqusShortname = "xxxxxx" +``` + +### Google Analytics +``` +googleAnalytics = "UA-123-45" +``` + +### KaTeX +``` +[params] + katex = true +``` + +This option enables the KaTeX auto-render extension. To render block math, use `$$ ... $$`. For inline math, use `\\( ... \\)`. For more details, please refer to https://github.com/KaTeX/KaTeX/blob/v0.7.1/contrib/auto-render/auto-render.js#L73 . + +### Custom CSS +``` +[params] + customCss = ["css/foo.css"] +``` + +### Others + +For other configuration variables, visit [Hugo documentation](https://gohugo.io/overview/configuration/#configuration-variables). + +## Post Params + +### Featured Image displayed in index.html +``` ++++ +featuredImage = "img/foobar.jpg" ++++ +``` + +### Hide the post from index.html +This can be used when creating an "About me"-page. +``` ++++ +hidden = true ++++ +``` + +### Enable KaTeX for this post +Enable KaTeX for a specific post without enabling the global switch. +``` ++++ +katex = true ++++ +``` + +### Suppress date in an article +Hide the date from an article, e.g. because it's just an index: +``` ++++ +omitDate = true ++++ +``` + +## Contributing + +1. Fork it! +2. Create your feature branch: `git checkout -b my-new-feature` +3. Commit your changes: `git commit -am 'Add some feature'` +4. Push to the branch: `git push origin my-new-feature` +5. Submit a pull request :D + +## Original Author + +PPOffice + +* https://github.com/ppoffice + +## Ported by + +Carson Ip + +* https://github.com/carsonip + +## License + +Licensed under the MIT License. See the [LICENSE](https://github.com/carsonip/hugo-theme-minos/blob/master/LICENSE.md) file for more details. diff --git a/themes/hugo-theme-minos/archetypes/default.md b/themes/hugo-theme-minos/archetypes/default.md new file mode 100644 index 0000000..c204843 --- /dev/null +++ b/themes/hugo-theme-minos/archetypes/default.md @@ -0,0 +1,6 @@ ++++ +Description = "" +Tags = ["development", "golang"] +Categories = ["Development", "Golang"] +menu = "" ++++ diff --git a/themes/hugo-theme-minos/i18n/en.toml b/themes/hugo-theme-minos/i18n/en.toml new file mode 100644 index 0000000..f890265 --- /dev/null +++ b/themes/hugo-theme-minos/i18n/en.toml @@ -0,0 +1,14 @@ +[Contents] +other = "Contents" + +[Comments] +other = "Comments" + +[ReadMore] +other = "Read More" + +[Prev] +other = "Prev" + +[Next] +other = "Next" diff --git a/themes/hugo-theme-minos/i18n/it.toml b/themes/hugo-theme-minos/i18n/it.toml new file mode 100644 index 0000000..d623ca9 --- /dev/null +++ b/themes/hugo-theme-minos/i18n/it.toml @@ -0,0 +1,14 @@ +[Contents] +other = "Indice" + +[Comments] +other = "Commenti" + +[ReadMore] +other = "Continua a leggere" + +[Prev] +other = "Precedente" + +[Next] +other = "Successivo" diff --git a/themes/hugo-theme-minos/images/article.png b/themes/hugo-theme-minos/images/article.png new file mode 100644 index 0000000..6ed999d Binary files /dev/null and b/themes/hugo-theme-minos/images/article.png differ diff --git a/themes/hugo-theme-minos/images/screenshot.png b/themes/hugo-theme-minos/images/screenshot.png new file mode 100644 index 0000000..170417a Binary files /dev/null and b/themes/hugo-theme-minos/images/screenshot.png differ diff --git a/themes/hugo-theme-minos/images/tag.png b/themes/hugo-theme-minos/images/tag.png new file mode 100644 index 0000000..3951b12 Binary files /dev/null and b/themes/hugo-theme-minos/images/tag.png differ diff --git a/themes/hugo-theme-minos/images/tn.png b/themes/hugo-theme-minos/images/tn.png new file mode 100644 index 0000000..e6df085 Binary files /dev/null and b/themes/hugo-theme-minos/images/tn.png differ diff --git a/themes/hugo-theme-minos/layouts/404.html b/themes/hugo-theme-minos/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/hugo-theme-minos/layouts/_default/list.html b/themes/hugo-theme-minos/layouts/_default/list.html new file mode 100644 index 0000000..ff4152a --- /dev/null +++ b/themes/hugo-theme-minos/layouts/_default/list.html @@ -0,0 +1,20 @@ +{{ partial "head.html" . }} +
+