From 23a9b1ff401bf6238011cdfed4219605a20af728 Mon Sep 17 00:00:00 2001 From: wileybaba Date: Wed, 31 Oct 2018 00:03:26 -0600 Subject: adding my theme to github --- LICENSE.md | 9 ++ README.md | 36 +++++ exampleSite/config.toml | 21 +++ exampleSite/content/_index.en.md | 36 +++++ exampleSite/content/_index.es.md | 3 + layouts/404.html | 12 ++ layouts/_default/baseof.html | 97 ++++++++++++++ layouts/index.html | 51 ++++++++ layouts/partials/content.html | 6 + layouts/partials/footer.html | 71 ++++++++++ layouts/partials/header.html | 54 ++++++++ layouts/portfolio/list.html | 29 ++++ static/css/main.css | 276 +++++++++++++++++++++++++++++++++++++++ static/img/email.svg | 41 ++++++ static/img/git.svg | 1 + static/img/instagram.svg | 1 + static/img/twitter.svg | 1 + theme.toml | 15 +++ 18 files changed, 760 insertions(+) create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 exampleSite/config.toml create mode 100644 exampleSite/content/_index.en.md create mode 100644 exampleSite/content/_index.es.md create mode 100644 layouts/404.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/content.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/portfolio/list.html create mode 100644 static/css/main.css create mode 100644 static/img/email.svg create mode 100644 static/img/git.svg create mode 100644 static/img/instagram.svg create mode 100644 static/img/twitter.svg create mode 100644 theme.toml diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..3df2411 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright (c) 2018 Wiley McKay Conte + +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..2901769 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +#hugo-minimo-theme + +A stripped down, [alageek](https://github.com/gkmngrgn/hugo-alageek-theme/tree/a7789a01391c9357fba13704379089e8799adad8) based theme with an added portfolio/light-box gallery for artists/photographers to display their work. Responsive with Bootstrap 4, Progressively.js, Latex support, and more. + +## Dependencies +* Bootstrap 4.1.3 +* Highlight.js 9.12.0 +* Jquery slim 3.3.1 +* Progressively 1.2.5 +* Webfont 1.6.28 +* Ekko-lightbox 5.3.0 + +## Configuration +All features can be accessed by adding code to your config.toml +* See the example site to get an idea of how to use the available params. + +For your home page, create and edit an `_index.md` file with your content. + +### Gallery setup +In your config.toml, you can easily add images to your gallery. Here is an example: +`[[params.portfolio]] + +link = "img/pots/example_01.jpg" + +[[params.portfolio]] + +link = "/img/portfolio/example_02.jpg" + +[[params.portfolio]] + +link = "/img/portfolio/example_03.jpg" +` +This will import a relative URL, so be sure to use the appropriate file path for your images. + +## License +MIT License...check out the LICENSE.md for more info. diff --git a/exampleSite/config.toml b/exampleSite/config.toml new file mode 100644 index 0000000..941004f --- /dev/null +++ b/exampleSite/config.toml @@ -0,0 +1,21 @@ +baseURL = "https://example.com" +title = "Your Awesome Website" +theme = "minimo" +paginate = 3 + +[params] +logofile = "wileys.website/img/Robobrand.png" +faviconfile = "wileys.website/img/Robobrand.png" +copyright = "Wiley McKay Conte 2018" +github = "wileybaba" +email = "baba@example.com" +twitter = "wiley_baba" +instagram = "wileybaba" +fork = "github.com/wileybaba/minimo_hugo_theme" +progressively = true + +defaultContentLanguage = 'en' + +[[params.portfolio]] + +link = "" diff --git a/exampleSite/content/_index.en.md b/exampleSite/content/_index.en.md new file mode 100644 index 0000000..595adbc --- /dev/null +++ b/exampleSite/content/_index.en.md @@ -0,0 +1,36 @@ +#hugo-minimo-theme + +A stripped down, [alageek](https://github.com/gkmngrgn/hugo-alageek-theme/tree/a7789a01391c9357fba13704379089e8799adad8) based theme with an added portfolio/light-box gallery for artists/photographers to display their work. Responsive with Bootstrap 4, Progressively.js, Latex support, and more. + +## Dependencies +* Bootstrap 4.1.3 +* Highlight.js 9.12.0 +* Jquery slim 3.3.1 +* Progressively 1.2.5 +* Webfont 1.6.28 +* Ekko-lightbox 5.3.0 + +## Configuration +All features can be accessed by adding code to your config.toml +* See the example site to get an idea of how to use the available params. + +For your home page, create and edit an `_index.md` file with your content. + +### Gallery setup +In your config.toml, you can easily add images to your gallery. Here is an example: +`[[params.portfolio]] + +link = "img/pots/example_01.jpg" + +[[params.portfolio]] + +link = "/img/portfolio/example_02.jpg" + +[[params.portfolio]] + +link = "/img/portfolio/example_03.jpg" +` +This will import a relative URL, so be sure to use the appropriate file path for your images. + +## License +MIT License...check out the LICENSE.md for more info. diff --git a/exampleSite/content/_index.es.md b/exampleSite/content/_index.es.md new file mode 100644 index 0000000..2842957 --- /dev/null +++ b/exampleSite/content/_index.es.md @@ -0,0 +1,3 @@ +## Hugo Minimo Theme + +# Pon su `_index.md` en Español aqui. diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..d552a63 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,12 @@ +{{ define "main" }} +
+
+ {{ if isset .Site.Params "logofile" }} + logo + {{ end }} +

404

+

The page you were looking for does not exist.

+ Visit the home page +
+
+{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..8a08945 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,97 @@ + + + + + + + {{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }} + + + + + + + + + + + + + {{ if .Site.Params.twitter }} + + {{ end }} + + + + + + + + + + + + + {{ if .Site.Params.highlightjs }} + + {{ end }} + + {{ if .Site.Params.progressively }} + + {{ end }} + + + + + + + + {{ block "main" . }}{{ end }} + + + + + + + + + {{ if .Site.Params.highlightjs }} + + {{ range .Site.Params.highlightjslanguages }} + + {{ end }} + + {{ end }} + + {{ if .Site.Params.progressively }} + + + {{ end }} + + {{ if .Site.Params.uselatex }} + + + {{ end }} + + + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..8ec54f1 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,51 @@ +{{ define "main" }} + {{ partial "header" . }} + +
+
+
+
+
+ {{ partial "content" . }} +
+ + {{ if isset .Site.Params "best_posts" }} +
+
📌 {{ i18n "pinned" }}
+
    + {{ range .Site.Params.best_posts }} +
  • + {{ .title }} +
  • + {{ end }} +
+
+ {{ end }} + + {{ if isset .Site.Params "latestpostcount" }} +
+ {{ $nbPosts := len (where .Data.Pages "Section" "blog") }} + {{ if gt $nbPosts 0 }} +
Latest posts
+
    + {{ range (first .Site.Params.latestpostcount (where .Pages "Section" "blog")).GroupByDate "Jan, 2006" "desc" }} +
  • {{ .Key }}
  • + {{ range sort .Pages "Date" "desc" }} + {{ partial "list" . }} + {{ end }} + {{ end }} +
+ + {{ if gt $nbPosts .Site.Params.latestpostcount }} + {{ i18n "see-more" }} + {{ end }} + {{ end }} +
+ {{ end }} +
+
+
+
+ + {{ partial "footer" . }} +{{ end }} diff --git a/layouts/partials/content.html b/layouts/partials/content.html new file mode 100644 index 0000000..b4af9e9 --- /dev/null +++ b/layouts/partials/content.html @@ -0,0 +1,6 @@ +{{ if .Site.Params.progressively }} + {{ $newImage := (print "
$3
") }} + {{ .Content | replaceRE "(.*)" $newImage | safeHTML }} +{{ else }} + {{ .Content }} +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..7211d51 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,71 @@ + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..1b982ea --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,54 @@ +
+
+
+
+ {{ if .Site.Params.logofile }} + + + + {{ end }} +
+
+ +

{{ .Site.Title }}

+
+ + + + +
+
+
+
diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html new file mode 100644 index 0000000..9c7fe9c --- /dev/null +++ b/layouts/portfolio/list.html @@ -0,0 +1,29 @@ +{{ define "main" }} + {{ partial "header" . }} + +
+
+ {{ if .Site.Params.portfolio }} + {{ range .Site.Params.portfolio }} +
+ + + +
+ {{ end }} + {{ end }} +
+
+ + + + + {{ partial "footer" }} +{{ end }} diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..79e95bb --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,276 @@ +/* Global styles */ +body { + font-family: "Raleway"; +} + +a { + color: #5188ef; + transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -webkit-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -moz-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -ms-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -o-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); +} + +a:hover { + color: #7e7ef7; +} + +/* Partial: Colors */ +.text-patreon { + color: #51ef7e !important; +} + +.text-ko-fi { + color: #5188ef !important; +} + +.text-bmc { + color: #5188ef !important; +} + +/* Partial: Header */ +.header a:hover { + text-decoration: none; +} + +.header .logo { + max-height: 120px; +} + +.header h1.name { + color: #333333; + font-size: 2.3rem; + font-family: "Helvetica Neue", "Arial", sans-serif; + letter-spacing: 0.1rem; +} + +.header ul.nav li a { + color: #666666; + font-size: 18px; + padding: 3px 12px 0 5px; +} + +.header ul.nav li a:hover { + color: #f4b642; + } + +.header ul.nav li:first-child a { + padding-left: 2px; +} + +.header ul.nav li:last-child a { + padding-right: 2px; +} + +/* Partial: Content */ +.content .page-heading { + font-size: 1.5rem; + font-weight: 700; + letter-spacing: -0.005rem; + text-transform: "capitalize"; + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + color: #333333; + margin-bottom: 16px; +} + +.content .meta { + font-size: 16px; + color: #666666; +} + +.content .meta a { + text-decoration: none; +} + +.content .middot:before { + font-size: 6px; + margin: 0 6px; + vertical-align: middle; + content: "•"; +} + +.content .tags ul li { + transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -webkit-transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -moz-transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -ms-transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -o-transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); +} + +.content .tags ul li:hover { + opacity: 0.7; +} + +.content .tags ul li a { + color: #666666; +} + +.content .markdown { + font-family: "Merriweather"; + font-size: 1.3em; + line-height: 1.75em; + color: #313537; +} + +.content twitterwidget { + margin: auto; +} + +.content .meta, +.content .markdown h1, +.content .markdown h2, +.content .markdown h3, +.content .markdown h4, +.content .markdown h5, +.content .markdown h6, +.content .markdown p, +.content .markdown ul, +.content .markdown ol, +.content .markdown dl, +.content .markdown blockquote { + margin-left: 1.5rem; + margin-right: 1.5rem; +} + +.content .markdown code, +.content .markdown pre { + font-family: "Menlo", monospace; + font-size: 0.98rem; + background-color: #f7f7f7; +} + +.content .markdown code { + /* enclosed by single backtick (`) */ + padding: 0.15em 0.5em; + border-radius: 2px; + color: #7adbbc; +} + +.content .markdown pre { + /* Hugo specific: consider using the 'highlight' shortcode */ + display: block; + margin-top: 1rem; + margin-bottom: 2rem; + padding: 1rem; + line-height: 1.5em; + white-space: pre; + word-break: break-all; + word-wrap: break-word; +} + +.content .markdown pre code { + /* enclosed by 4 backticks (````) */ + padding: 0; + font-size: 0.9rem; +} + +.content .markdown blockquote { + padding: 0.5rem 0.5rem; + margin-top: 0.8rem; + margin-bottom: 0.8rem; + color: #7a7a7a; + border-left: 0.25rem solid #e5e5e5; +} + +.content .markdown blockquote p:last-child { + margin-bottom: 0; +} + +.content .markdown figure { + background: #fff; +} + +.content .see-more { + font-size: 0.9em; + color: #313537; +} + +.content .see-more:hover { + color: #666; +} + +.content .groupby { + list-style: none; + margin-top: 1em; +} + +.content .post-item { + display: -webkit-flex; + display: -moz-flex; + display: -ms-flexbox; + display: -ms-flex; + display: flex; +} + +.content .post-item .meta { + color: #666666; + display: block; + font-size: 14px; + min-width: 100px; +} + +.content .navigation .icon { + width: 16px; + height: 16px; +} + +/* Partial: Footer */ +.footer a { + font-size: 14px; + margin-left: 6px; + margin-right: 6px; + opacity: 0.6; + transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -webkit-transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -moz-transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -ms-transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + -o-transition: opacity 0.1s cubic-bezier(0.47, 0, 0.75, 0.72); + text-decoration: none; +} + +.footer a:first-child { + margin-left: 0; +} + +.footer a:last-child { + margin-right: 0; +} + +.footer a:hover { + opacity: 0.8; +} + +.footer a .icon { + width: 24px; + height: 24px; +} + +.footer span.title { + font-size: 14px; + color: #666; +} + +/* Small devices (landscape phones, less than 768px) */ +@media (max-width: 767.98px) { + html { + font-size: 0.8rem; + } + + .content .meta, + .content .markdown h1, + .content .markdown h2, + .content .markdown h3, + .content .markdown h4, + .content .markdown h5, + .content .markdown h6, + .content .markdown p, + .content .markdown ul, + .content .markdown ol, + .content .markdown dl, + .content .markdown blockquote { + margin-left: 0; + margin-right: 0; + } +} diff --git a/static/img/email.svg b/static/img/email.svg new file mode 100644 index 0000000..4015631 --- /dev/null +++ b/static/img/email.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img/git.svg b/static/img/git.svg new file mode 100644 index 0000000..b8c8898 --- /dev/null +++ b/static/img/git.svg @@ -0,0 +1 @@ +Git icon \ No newline at end of file diff --git a/static/img/instagram.svg b/static/img/instagram.svg new file mode 100644 index 0000000..a0fed10 --- /dev/null +++ b/static/img/instagram.svg @@ -0,0 +1 @@ +Instagram icon \ No newline at end of file diff --git a/static/img/twitter.svg b/static/img/twitter.svg new file mode 100644 index 0000000..b674108 --- /dev/null +++ b/static/img/twitter.svg @@ -0,0 +1 @@ +Twitter icon \ No newline at end of file diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..0e10406 --- /dev/null +++ b/theme.toml @@ -0,0 +1,15 @@ +name = "minimo" +license = "MIT" +description = "A lightweight and blazing fast personal website theme" +homepage = "#github link here" +features = ["responsive", "gallery", "multilingual"] +tags = ["fast", "responsive", "bootstrap", "personal"] + +[author] + name = "Wiley McKay Conte" + homepage = "https://wileys.Website" + +[original] + name = "Gökmen Görgen" + homepage = "https://gokmengorgen.net" + repo = "https://github.com/gkmngrgn/hugo-alageek-theme" -- cgit v1.2.3