commit 275f414ed6fef44804cc1df475bba0114865768d Author: Carson Ip Date: Sat Feb 18 23:25:00 2017 +0100 Initial commit, porting in progress diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bbefa66 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +.idea +*~ +.DS_Store +.sass-cache +assets +node_modules +src/_bower_components +static/js/* +!static/js/script-*.min.js +static/css/* +!static/css/style-*.min.css diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..315bcec --- /dev/null +++ b/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/README.md b/README.md new file mode 100644 index 0000000..857cfa4 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Minos + +Minos is a hugo theme ported from Hexo theme [Minos](https://github.com/ppoffice/hexo-theme-minos) by [@ppoffice](https://github.com/ppoffice/). + +Work in progress. \ No newline at end of file diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c204843 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ ++++ +Description = "" +Tags = ["development", "golang"] +Categories = ["Development", "Golang"] +menu = "" ++++ diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..ed32083 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,31 @@ +{{ partial "head.html" . }} + +
+ {{ partial "header.html" . }} +
+
+
+ {{ .Title }} +
+
+ {{ range .Data.Pages }} + + {{ end }} +
+
+ {{ partial "footer.html" . }} + +
+ + \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..6c41148 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,54 @@ +{{ partial "head.html" . }} + + +
+ {{ partial "header.html" . }} +
+ {{ partial "article.html" . }} + + + + + + + + + {{ partial "share_addthis.html" . }} + + {{ if not .Params.nocomment }} + {{ template "_internal/disqus.html" . }} + {{ end }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {{ partial "footer.html" . }} + +
+ + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..9fb7c74 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,65 @@ +{{ partial "head.html" . }} + +
+ {{ partial "header.html" . }} +
+ {{ range .Data.Pages }} +
+
+ + {{ if .Title }} +
+

{{ .Title }}

+
+ {{ end }} + +
+ {{ .Summary }} +

+ Read More +

+
+ + {{ if .Params.tags }} +
+ +
+ {{ end }} +
+
+ {{ end }} +
+ {{ partial "footer.html" . }} + +
+ + \ No newline at end of file diff --git a/layouts/partials/article.html b/layouts/partials/article.html new file mode 100644 index 0000000..59556cd --- /dev/null +++ b/layouts/partials/article.html @@ -0,0 +1,59 @@ +
+
+ + {{ if .Title }} +
+

{{ .Title }}

+
+ {{ end }} + +
+ {{ .Content }} +
+ + {{ if not .Params.notoc }} + {{ if .TableOfContents }} +
+

Contents

+ {{ .TableOfContents }} +
+ {{ end }} + {{ end }} + + {{ if .Params.tags }} +
+ +
+ {{ end }} +
+ {{ partial "nav.html" . }} +
\ No newline at end of file diff --git a/layouts/partials/doctype.html b/layouts/partials/doctype.html new file mode 100644 index 0000000..9654a26 --- /dev/null +++ b/layouts/partials/doctype.html @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..80ae912 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..02f5968 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,31 @@ + + + + + {{ .Title }}{{ if ne .Title .Site.Title }} // {{ .Site.Title }}{{ end }} + + + {{ partial "og.html" . }} + + + + + + + + + + + + + + + + + + + + {{ template "_internal/google_analytics.html" . }} + + {{ .Hugo.Generator }} + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..47d885d --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..81e71d2 --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/layouts/partials/og.html b/layouts/partials/og.html new file mode 100644 index 0000000..47ac989 --- /dev/null +++ b/layouts/partials/og.html @@ -0,0 +1,8 @@ + + + + + +{{ if .Params.ogimage }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/share_addthis.html b/layouts/partials/share_addthis.html new file mode 100644 index 0000000..0e139a8 --- /dev/null +++ b/layouts/partials/share_addthis.html @@ -0,0 +1,9 @@ +
+ + +
diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..034937d --- /dev/null +++ b/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/spf13/hugoThemes#themetoml for an example + +name = "Minos" +license = "MIT" +licenselink = "https://github.com/carsonip/hugo-theme-minos/blob/master/LICENSE.md" +description = "" +homepage = "https://github.com/carsonip/hugo-theme-minos" +tags = ["", ""] +features = ["", ""] +min_version = 0.15 + +[author] + name = "Carson Ip" + homepage = "https://github.com/carsonip" + +# If porting an existing theme +[original] + name = "Minos" + homepage = "https://github.com/ppoffice/hexo-theme-minos" + repo = "https://github.com/ppoffice/hexo-theme-minos"