diff --git a/.gitmodules b/.gitmodules index c46464a..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "themes/sustain-vitae"] - path = themes/hugo-sustain-vitae - url = https://github.com/maurete/hugo-sustain-vitae.git diff --git a/config.toml b/config.toml index 1ad7994..7f34f03 100644 --- a/config.toml +++ b/config.toml @@ -5,7 +5,7 @@ title = "Mauro Torrez" disqusShortname = "" # Enable Google Analytics by entering your tracking code googleAnalytics = "" -theme = "hugo-sustain-vitae" +theme = "mauro" [permalinks] post = "/:year/:month/:day/:slug" @@ -28,7 +28,7 @@ theme = "hugo-sustain-vitae" # Medium = "username" Telegram = "maurete" -[params.vitae] +[params.cv] website = "mau.ro" website_full = "https://mau.ro/" #tel = "+44 0000 000000" @@ -40,18 +40,18 @@ theme = "hugo-sustain-vitae" country = "Argentina" ## Main Menu -[[menu.main]] - name = "blog" - weight = 100 - identifier = "blog" - url = "/blog/" -[[menu.main]] - name = "projects" - identifier = "projects" - weight = 200 - url = "/projects/" +# [[menu.main]] +# name = "blog" +# weight = 100 +# identifier = "blog" +# url = "/blog/" +# [[menu.main]] +# name = "projects" +# identifier = "projects" +# weight = 200 +# url = "/projects/" [[menu.main]] name = "CV" - identifier = "resume" + identifier = "cv" weight = 300 url = "/cv/" diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..a6da8e7 --- /dev/null +++ b/config.yaml @@ -0,0 +1,74 @@ +--- +baseurl: 'https://mau.ro/' +languageCode: en-US +title: Mauro Torrez +# Enable comments by entering your Disqus shortname +disqusShortname: '' +# Enable Google Analytics by entering your tracking code +googleAnalytics: '' + +theme: mauro +permalinks: + post: '/:year/:month/:day/:slug' + +defaultLanguage: en +languages: + en: + languageName: English + weight: 1 + contentDir: content/en + es: + languageName: Castellano + description: Sitio web personal de Mauro Torrez + weight: 2 + contentDir: content/es + fr: + languageName: Français + description: Site web personnel de Mauro Torrez + weight: 3 + contentDir: content/fr + +params: + avatar: profile.png + author: Mauro Torrez + description: Mauro Torrez's personal website + # Custom assets can be linked with their paths relative to static/ + custom_css: [] + custom_js: [] + social: + Github: maurete + Email: inbox@mau.ro +# Twitter = "eumau" + LinkedIn: maurotorrez +# Stackoverflow = "username" +# Medium = "username" + Telegram: maurete + cv: + website: mau.ro + website_full: 'https://mau.ro/' + #tel = "+44 0000 000000" + #tel_full = "+440000000000" + #google_maps = "https://www.google.co.uk/maps/place/44+Perth+St,+Edinburgh,+Edinburgh+City+EH3+5BL" + #address = "44 Perth Street" + #postcode = "EH3 5BL" + city: Santa Fe + country: Argentina + +## Main Menu +# [[menu.main]] +# name = "blog" +# weight = 100 +# identifier = "blog" +# url = "/blog/" +# [[menu.main]] +# name = "projects" +# identifier = "projects" +# weight = 200 +# url = "/projects/" + +menu: + main: + - name: CV + identifier: cv + weight: 300 + url: /cv/ diff --git a/content/cv.es.md b/content/cv.es.md new file mode 100644 index 0000000..c3ce94d --- /dev/null +++ b/content/cv.es.md @@ -0,0 +1,10 @@ +--- +title: "CV" +categories: ["cv"] +date: 2018-07-28T01:52:59-05:00 +tags: ["cv", "resume"] +--- + +# Hello + +Lalalal diff --git a/content/cv.md b/content/cv.md index 604961f..c3ce94d 100644 --- a/content/cv.md +++ b/content/cv.md @@ -1,6 +1,6 @@ --- title: "CV" -categories: ["vitae"] +categories: ["cv"] date: 2018-07-28T01:52:59-05:00 tags: ["cv", "resume"] --- diff --git a/content/vitae.md b/content/vitae.md deleted file mode 100644 index 54f2117..0000000 --- a/content/vitae.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: "Vitae" -categories: ["vitae"] -date: 2018-07-28T01:52:59-05:00 -tags: ["vitae", "resume"] ---- - -# Hello - -Test 123 diff --git a/data/en/education.yml b/data/en/education.yml new file mode 100644 index 0000000..a7a86d3 --- /dev/null +++ b/data/en/education.yml @@ -0,0 +1,9 @@ +name: Formal Education +source: + - title: IT Engineer + univ: Universidad Nacional del Litoral + place: Santa Fe, Argentina + date: 2020 + type: Thesis (Work in progress) + description: Implementation of DevOps practices in an IT + organization diff --git a/data/en/employment.yml b/data/en/employment.yml new file mode 100644 index 0000000..d1b21fb --- /dev/null +++ b/data/en/employment.yml @@ -0,0 +1,24 @@ +--- +name: Employment +source: + + - prof: Systems Administrator + place: Universidad Nacional del Litoral, Santa Fe, Argentina + time: 2012 to present + description: + + - prof: DevOps consultant + place: 4r Soluciones S.R.L, Santa Fe, Argentina + time: 2019-2020 + description: + + - prof: Programming Teacher + place: Universidad Nacional del Litoral, Santa Fe, Argentina + time: 2014 + description: + + - prof: IT Support + place: Universidad Nacional del Litoral, Santa Fe, Argentina + time: 2008 to 2011 + description: + diff --git a/data/en/hobbies.yml b/data/en/hobbies.yml new file mode 100644 index 0000000..06a6516 --- /dev/null +++ b/data/en/hobbies.yml @@ -0,0 +1,7 @@ +--- +name: Hobbies +source: + - Cooking + - Gardening + - Biking + - Running diff --git a/data/en/initiatives.yml b/data/en/initiatives.yml new file mode 100644 index 0000000..c586726 --- /dev/null +++ b/data/en/initiatives.yml @@ -0,0 +1,14 @@ +--- +name: Initiatives +source: + - title: Graduate Summer Student + place: University of Glasgow, UK + date: 2013 + type: courses + description: Nec et duis iriure temporibus, ullum adolescens eam ea. + + - title: Student Volunteer + place: British RedCross, Glasgow, UK + date: 2013 + type: fundraiser + description: Lorem adipiscing ei eam, eros conceptam maiestatis ne sea. diff --git a/data/en/skills.yml b/data/en/skills.yml new file mode 100644 index 0000000..3063c71 --- /dev/null +++ b/data/en/skills.yml @@ -0,0 +1,11 @@ +name: Programming Skills +title: Software engineering & web development +source: + - name: [C/C++, Objective-C] + stars: 5 + + - name: [Java, Python, PHP, Git] + stars: 4 + + - name: [HTML/CSS3, Javascript] + stars: 3 diff --git a/themes/hugo-sustain-vitae b/themes/hugo-sustain-vitae deleted file mode 160000 index 2331ec1..0000000 --- a/themes/hugo-sustain-vitae +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2331ec11c9106d283fd8cacb1c78eaa1613a45b5 diff --git a/themes/mauro/LICENSE-hugo-sustain.md b/themes/mauro/LICENSE-hugo-sustain.md new file mode 100644 index 0000000..f916c1e --- /dev/null +++ b/themes/mauro/LICENSE-hugo-sustain.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 Nurlan Su + +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/mauro/LICENSE-hugo-vitae.md b/themes/mauro/LICENSE-hugo-vitae.md new file mode 100644 index 0000000..f916c1e --- /dev/null +++ b/themes/mauro/LICENSE-hugo-vitae.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2017 Nurlan Su + +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/mauro/LICENSE.md b/themes/mauro/LICENSE.md new file mode 100644 index 0000000..55b1e03 --- /dev/null +++ b/themes/mauro/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2018 Anirban Mukhopadhyay + +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/mauro/README.md b/themes/mauro/README.md new file mode 100644 index 0000000..796ee57 --- /dev/null +++ b/themes/mauro/README.md @@ -0,0 +1,152 @@ +

+ + +

+ +## Table of Contents + +- [Installation](#installation) +- [Quick start](#quick-start) +- [Features](#features) + - [Syntax highlighting](#syntax-highlighting) + - [Disqus](#disqus) + - [Google Analytics](#google-analytics) +- [About](#about) +- [Contributing](#contributing) +- [Changelog](#changelog) +- [License](#license) + +******************** + +

+ + + +

+ +******************** +

Sustain-vitae Live Demo

+ +## Installation + +#### With `git` + +From the root of your Hugo site, clone the theme into `themes/hugo-sustain-vitae` by running : +``` +git clone https://github.com/anirbanmu/hugo-sustain-vitae.git themes/hugo-sustain-vitae +``` + +#### Manual + +1. [Download][zip-archive] zip archive. +2. Unarchive it. +3. Move `hugo-sustain-vitae` folder in `themes` folder of your blog + +For more information read the official [setup guide][hugo-guide] of Hugo. + +## Quick start + +After installation, take a look in the `exampleSite` folder at. This directory contains an example config file and the content for the demo. It serves as an example setup for your documentation. + +``` + exampleSite + ├── config.toml + ├── content + │   ├── projects.md + │   ├── vitae.md + │   │ + │   └── blog + │   ├── creating-a-new-theme.md + │   ├── go-is-for-lovers.md + │   ├── hugo-is-for-lovers.md + │   └── migrate-from-jekyll.md + │ + ├── data + | ├── education.yml + | ├── employment.yml + | ├── hobbies.yml + | ├── initiatives.yml + | ├── projects.yml + │ └── skills.yml + │ + ├── static + │   └── img + │   └── profile.png +``` + +Copy at least the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary. + +Hugo includes a development server, so you can view your changes as you go - +very handy. Spin it up with the following command: + +``` sh +hugo serve +``` + +Now you can go to [localhost:1313][local] and the Sustain +theme should be visible. + +## Features + +### Syntax highlighting + +Use `highlight = true` in the front matter to include [`highlight.js`][highlight-js] javascript and css files. + +### Disqus + +To use this feature, uncomment and fill out the `disqusShortname` parameter in `config.toml`. + +### Google Analytics + +To add Google Analytics, simply sign up to [Google Analytics][g-analytics] to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml`. + +## About + +This fork is a combined theme from [hugo-sustain](https://github.com/nurlansu/hugo-sustain) & [hugo-vitae](https://github.com/nurlansu/hugo-vitae). + +hugo-sustain is a port the Jekyll theme [Sustain][sustain-jekyll] by [Fábio Madeira][sustain-author]. + +hugo-vitae is port of the Jekyll theme [Vitae][vitae-jekyll] by [Fábio Madeira][vitae-author]. + +## Contributing + +Pull requests, bug fixes, and new features are welcome! + +1. Fork the repository +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -a -m 'Add some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request on GitHub + +## Changelog + +> Version 1.0.1 + +- Added proper "Projects" page rendering +- Fixes, many fixes + +> Version 1.0 + +- Initial release + +## License + +

+ + MIT +

+ + + +[bootstrap]: https://getbootstrap.com/ +[hugo]: https://gohugo.io/ +[gh-pages]: https://pages.github.com/ +[zip-archive]: https://github.com/anirbanmu/hugo-sustain-vitae/archive/master.zip +[hugo-guide]: https://gohugo.io/overview/installing/ +[local]: http://localhost:1313/ +[highlight-js]: https://highlightjs.org/ +[g-analytics]: https://www.google.com/analytics/ +[sustain-jekyll]: https://github.com/biomadeira/sustain/ +[sustain-author]: https://github.com/biomadeira/ +[vitae-jekyll]: https://github.com/biomadeira/vitae/ +[vitae-author]: https://github.com/biomadeira/ diff --git a/themes/mauro/archetypes/default.md b/themes/mauro/archetypes/default.md new file mode 100644 index 0000000..310c34a --- /dev/null +++ b/themes/mauro/archetypes/default.md @@ -0,0 +1,6 @@ ++++ +title = "" +description = "" +tags = [] +categories = [] ++++ diff --git a/themes/mauro/images/hugo-sustain-logo.png b/themes/mauro/images/hugo-sustain-logo.png new file mode 100644 index 0000000..ef3a6fd Binary files /dev/null and b/themes/mauro/images/hugo-sustain-logo.png differ diff --git a/themes/mauro/images/hugo-vitae-logo.png b/themes/mauro/images/hugo-vitae-logo.png new file mode 100644 index 0000000..3f95225 Binary files /dev/null and b/themes/mauro/images/hugo-vitae-logo.png differ diff --git a/themes/mauro/images/screenshot-vitae.png b/themes/mauro/images/screenshot-vitae.png new file mode 100644 index 0000000..e7e805d Binary files /dev/null and b/themes/mauro/images/screenshot-vitae.png differ diff --git a/themes/mauro/images/screenshot.png b/themes/mauro/images/screenshot.png new file mode 100644 index 0000000..1b90a96 Binary files /dev/null and b/themes/mauro/images/screenshot.png differ diff --git a/themes/mauro/images/tn.png b/themes/mauro/images/tn.png new file mode 100644 index 0000000..1d72832 Binary files /dev/null and b/themes/mauro/images/tn.png differ diff --git a/themes/mauro/layouts/404.html b/themes/mauro/layouts/404.html new file mode 100644 index 0000000..1a4354e --- /dev/null +++ b/themes/mauro/layouts/404.html @@ -0,0 +1,13 @@ +{{ partial "head" . }} + +
+ {{ partial "header" . }} +
+
+

Uh oh! Page not found!

+
+
+
+ {{ partial "footer" . }} + + diff --git a/themes/mauro/layouts/_default/cv.html b/themes/mauro/layouts/_default/cv.html new file mode 100644 index 0000000..99a6df9 --- /dev/null +++ b/themes/mauro/layouts/_default/cv.html @@ -0,0 +1,10 @@ +
+ {{ partial "cv-basic" . }} +
+ {{ partial "employment" . }} + {{ partial "education" . }} + {{ partial "skills" . }} + {{ partial "initiatives" . }} + {{ partial "hobbies" . }} +
+
diff --git a/themes/mauro/layouts/_default/list.html b/themes/mauro/layouts/_default/list.html new file mode 100644 index 0000000..65f2024 --- /dev/null +++ b/themes/mauro/layouts/_default/list.html @@ -0,0 +1,31 @@ +{{ partial "head" . }} + +
+ + {{ partial "header" . }} +
+

Archive

+
+
+ {{ range .Data.Pages.ByPublishDate.Reverse }} +
+
+
+ {{ .Date.Format "January 2, 2006" }} +
+
+ +
+ {{ end }} +
+
+
+
+ + {{ partial "footer" . }} + + diff --git a/themes/mauro/layouts/_default/projects.html b/themes/mauro/layouts/_default/projects.html new file mode 100644 index 0000000..fef0617 --- /dev/null +++ b/themes/mauro/layouts/_default/projects.html @@ -0,0 +1,15 @@ +
+
+

{{ .Site.Data.projects.name }}

+
+
+ {{ range $i, $el := .Site.Data.projects.source }} +
+    + Project {{ add $i 1 }} - {{ $el.description }} +
+ {{ end }} +
+
+
+
diff --git a/themes/mauro/layouts/_default/single.html b/themes/mauro/layouts/_default/single.html new file mode 100644 index 0000000..c9586e7 --- /dev/null +++ b/themes/mauro/layouts/_default/single.html @@ -0,0 +1,62 @@ +{{ partial "head" . }} + +
+ + + {{ partial "header" . }} + {{ if (ne (strings.TrimSuffix "/projects/" .URL) .URL) }} + {{ .Render "projects" }} + {{ else if (ne (strings.TrimSuffix "/cv/" .URL) .URL) }} + {{ .Render "cv" }} + {{ else }} +
+
+

+ {{ .Title }} +

+
+
+

+ {{ .Date.Format "January 2, 2006" }} +    + {{ range .Params.tags }} + {{ . }} + {{ end }} +

+
+
+
+
+ {{ .Content }} +
+ +
+
+
+ {{ partial "disqus" . }} +
+
+ {{ end }} +
+ + + {{ partial "footer" . }} + + + diff --git a/themes/mauro/layouts/index.html b/themes/mauro/layouts/index.html new file mode 100644 index 0000000..6a0fa8b --- /dev/null +++ b/themes/mauro/layouts/index.html @@ -0,0 +1,21 @@ +{{ partial "head" . }} + +
+ {{ partial "header" . }} +
+
+
+ Responsive image +
+

I'm {{ .Site.Params.author }}, a Systems Administrator.

+

I'm into everything DevOps, Delivery Automation, and Infrastructure.

+ +

Check out my resume.

+ + {{ partial "social.html" . }} +
+
+
+ {{ partial "footer" . }} + + diff --git a/themes/mauro/layouts/partials/cv-basic.html b/themes/mauro/layouts/partials/cv-basic.html new file mode 100644 index 0000000..2d4b22f --- /dev/null +++ b/themes/mauro/layouts/partials/cv-basic.html @@ -0,0 +1,25 @@ +
+ +

{{ .Site.Params.author }}

+

+ {{ .Site.Params.vitae.tel }} +

+
+ +
{{ .Site.Params.vitae.address }}
+
{{ .Site.Params.vitae.postcode }}
+
{{ .Site.Params.vitae.city }}
+
{{ .Site.Params.vitae.country }}
+
+
+

+ {{ .Site.Params.vitae.website }}
+

+

+ {{ .Site.Params.social.email }} +

+

+  Github / +  Twitter +

+
diff --git a/themes/mauro/layouts/partials/disqus.html b/themes/mauro/layouts/partials/disqus.html new file mode 100755 index 0000000..6e4670e --- /dev/null +++ b/themes/mauro/layouts/partials/disqus.html @@ -0,0 +1,19 @@ +
+
+ + + comments powered by Disqus +
\ No newline at end of file diff --git a/themes/mauro/layouts/partials/education.html b/themes/mauro/layouts/partials/education.html new file mode 100644 index 0000000..677a1dc --- /dev/null +++ b/themes/mauro/layouts/partials/education.html @@ -0,0 +1,26 @@ +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.education }} +
+

{{ .name }}

+ {{ range .source }} +
+
+

{{ .title }}

+ {{ .univ }} + +
{{ .place }}
+ +
+
+

+ + {{ with .type }} + {{ title . }}: + {{ end }} + {{ .description }} + +

+
+ {{ end }} +
+{{ end }} diff --git a/themes/mauro/layouts/partials/employment.html b/themes/mauro/layouts/partials/employment.html new file mode 100644 index 0000000..6bded8e --- /dev/null +++ b/themes/mauro/layouts/partials/employment.html @@ -0,0 +1,18 @@ +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.employment }} +
+

{{ .name }}

+ {{ range .source }} +
+
+

{{ .prof }}

+ +
{{ .place }}
+ +
+
+

{{ .description }}

+
+ {{ end }} +
+{{ end }} diff --git a/themes/mauro/layouts/partials/footer.html b/themes/mauro/layouts/partials/footer.html new file mode 100644 index 0000000..f0d596c --- /dev/null +++ b/themes/mauro/layouts/partials/footer.html @@ -0,0 +1,11 @@ + + + +{{ partial "js" . }} diff --git a/themes/mauro/layouts/partials/head.html b/themes/mauro/layouts/partials/head.html new file mode 100644 index 0000000..461e6ef --- /dev/null +++ b/themes/mauro/layouts/partials/head.html @@ -0,0 +1,39 @@ + + + + + + + + {{ if .Site.Params.description }}{{ end }} + + + {{- $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" -}} + {{- if eq $url "/" -}} + {{- .Site.Title -}} + {{- else -}} + {{- if .Params.heading -}} {{- .Params.heading -}} {{- else -}} {{- .Title -}} {{- end -}} + {{- end -}} + + {{ .Hugo.Generator }} + + + + + + + {{- if .Params.highlight -}} + + {{ end }} + + + {{ range .Site.Params.custom_css }} + + {{ end }} + {{ `` | safeHTML }} + + {{ template "_internal/google_analytics.html" . }} + diff --git a/themes/mauro/layouts/partials/header.html b/themes/mauro/layouts/partials/header.html new file mode 100644 index 0000000..fac9bd1 --- /dev/null +++ b/themes/mauro/layouts/partials/header.html @@ -0,0 +1,21 @@ + diff --git a/themes/mauro/layouts/partials/hobbies.html b/themes/mauro/layouts/partials/hobbies.html new file mode 100644 index 0000000..f2cfad1 --- /dev/null +++ b/themes/mauro/layouts/partials/hobbies.html @@ -0,0 +1,9 @@ +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.hobbies }} +
+

{{ .name }}

+
+

{{ delimit .source ", " }}

+
+
+{{ end }} diff --git a/themes/mauro/layouts/partials/initiatives.html b/themes/mauro/layouts/partials/initiatives.html new file mode 100644 index 0000000..2e54211 --- /dev/null +++ b/themes/mauro/layouts/partials/initiatives.html @@ -0,0 +1,23 @@ +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.initiatives }} +
+

{{ .name }}

+ {{ range .source }} +
+
+

{{ .title }}

+ +
{{ .place }}
+ +
+
+

+ {{ with .type }} + {{ title . }}: + {{ end }} + {{ .description }} +

+
+ {{ end }} +
+{{ end }} diff --git a/themes/mauro/layouts/partials/js.html b/themes/mauro/layouts/partials/js.html new file mode 100644 index 0000000..9d5d667 --- /dev/null +++ b/themes/mauro/layouts/partials/js.html @@ -0,0 +1,16 @@ + + + + +{{- range .Site.Params.custom_js -}} + +{{ end }} + + + + +{{- if .Params.highlight -}} +{{ "" | safeHTML }} + + +{{ end }} diff --git a/themes/mauro/layouts/partials/skills.html b/themes/mauro/layouts/partials/skills.html new file mode 100644 index 0000000..1f036d9 --- /dev/null +++ b/themes/mauro/layouts/partials/skills.html @@ -0,0 +1,17 @@ +{{ $data := index .Site.Data .Site.Language.Lang }} +{{ with $data.skills }} +
+

{{ .name }}

+
+
+

{{ .title }}

+
+ {{ range .source }} +

+ {{ range $i, $seq := (seq .stars) }}{{ end }}{{ range $i, $seq := (seq (sub 5 (int .stars))) }}{{ end }} +   {{ delimit .name ", " " & " }} +

+ {{ end }} +
+
+{{ end }} diff --git a/themes/mauro/layouts/partials/social.html b/themes/mauro/layouts/partials/social.html new file mode 100755 index 0000000..077b8f5 --- /dev/null +++ b/themes/mauro/layouts/partials/social.html @@ -0,0 +1,31 @@ +
+ +
diff --git a/themes/mauro/static/css/sustain-main.css b/themes/mauro/static/css/sustain-main.css new file mode 100755 index 0000000..74e25c4 --- /dev/null +++ b/themes/mauro/static/css/sustain-main.css @@ -0,0 +1,199 @@ +/* Main page with stikky-footer */ +html, body { + height: 100%; + background-color: #fff; + font-family: 'Source Sans Pro', sans-serif; + /* The html and body elements cannot have any padding or margin. */ + border-top: 3px solid #27A822; +} + +/* Wrapper for page content to push down footer */ +#wrap { + padding-bottom: 50px; + min-height: 100%; + height: auto; + /* Negative indent footer by its height */ + margin: 0 auto -65px; + /* Pad bottom by footer height */ + /*padding: 0 0 60px;*/ +} + +/* Navbar */ +.navbar-static-top { + margin-bottom: 10px; +} +.navbar-default { + background-color: #ffffff; + border-color: #ffffff; +} +.navbar-default .navbar-brand { + color: #6b6b6b; +} +.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { + color: #6b6b6b; +} +.navbar-default .navbar-text { + color: #6b6b6b; +} +.navbar-default .navbar-nav > li > a { + color: #6b6b6b; +} +.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { + color: #6b6b6b; +} +.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { + color: #6b6b6b; + background-color: #ffffff; +} +.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { + color: #6b6b6b; + background-color: #ffffff; +} +.navbar-default .navbar-toggle { + border-color: #ffffff; +} +.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { + background-color: #ffffff; +} +.navbar-default .navbar-toggle .icon-bar { + background-color: #6b6b6b; +} +.navbar-default .navbar-collapse, +.navbar-default .navbar-form { + border-color: #6b6b6b; +} +.navbar-default .navbar-link { + color: #6b6b6b; +} +.navbar-default .navbar-link:hover { + color: #6b6b6b; +} +@media (max-width: 767px) { + .navbar-default .navbar-nav .open .dropdown-menu > li > a { + color: #6b6b6b; + } + .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { + color: #6b6b6b; + } + .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #6b6b6b; + background-color: #ffffff; + } +} + +/* Custom page CSS */ +.container { + width: auto; + max-width: 800px; + text-align: center; +} +.container .text-muted { + margin: 20px 0; +} +a { + color: #27A822; +} +a:hover { + color: #267723; +} +.container p img, .img-responsive { + display: block; + height: auto; + margin: 2rem auto; + max-width: 100%; +} +.panel-default h4 { + text-align: left; + line-height: 24px; + font-size: 22px; +} +.panel-default h5 { + text-align: left; + line-height: 30px; + font-size: 18px; +} +.panel-default h6 { + font-size: 15px; +} +.panel-default h4 a, h5 a { + color: #27A822; +} +.panel-default h4 a:hover, h5 a:hover { + color: #267723; +} +.panel{ + border-style: none; +} +.panel-body { + padding-top: -10px; + text-align: left; +} +.social-links { + display: block; + margin: 0 auto; + margin-top: 40px; + padding: 0px; + width: 100%; + text-align: center; + animation: fade 1s ease 1s both; +} +.social-links li { + display: inline-block; + padding: 5px; + padding-top: 0; + text-align: center; +} +.social-links li a { + font-size: 20px; + color: #000; + padding: 10px; + padding-bottom: 4px; + transition: all .4s ease; +} +.social-links li a:hover { + color: #000; +} +.avatar { + padding-top: 5%; +} +.blog-post{ + padding-top: 15px; +} +.blog-title{ + padding-top: 2px; +} +.label { + display: inline-block; + margin-bottom: 5px; +} +.related-posts h4 { + text-align: center; +} +.page-not-found { + padding-top: 20%; +} +.disqus { + padding-bottom: 15px; +} +.blogpost{ + text-align: left; + line-height: 30px; + font-size: 18px; +} + +/* Footer */ +.footer { + text-decoration: none !important; +} +.text-muted { + color: #6b6b6b; +} +div.footer{ + border-bottom: 5px solid #27A822;; +} +/* Set the fixed height of the footer here */ +/*.footer { + height: 50px; + padding-bottom: 15px; + +}*/ diff --git a/themes/mauro/static/css/vitae-layout.css b/themes/mauro/static/css/vitae-layout.css new file mode 100644 index 0000000..ebe6938 --- /dev/null +++ b/themes/mauro/static/css/vitae-layout.css @@ -0,0 +1,130 @@ +/*@import url(https://fonts.googleapis.com/css?family=Raleway:700,400);*/ + +/*body { + font-family: "Raleway", Helvetica, Arial, sans-serif; + font-size: 15px; + line-height: 21px; + color: rgb(48, 48, 48); + border-top: 5px solid #27a822; + border-bottom: 5px solid #27A822; +}*/ + +.vitae-container { + margin-top: 50px; +} + +.vitae-basic a { + color: #6b6b6b; +} + +p, address { + margin-bottom: 0; +} + +.me { + width: 100px; + height: 100px; + border-radius: 50px; + -webkit-border-radius: 50px; + -moz-border-radius: 50px; + margin-bottom: 20px; +} + +header > h1, section > h1 { + color: #27A822; +} + +header > h1 { + line-height: 100%; + font-size: 250%; + margin-bottom: 20px; +} + +.vitae-container > header p, .vitae-container > header address { + margin-bottom: 20px; +} + +.vitae-container > header p:last-child { + margin-bottom: 20px; +} + +section { + margin-bottom: 20px; +} + +section > h1 { + font-size: 140%; + line-height: 120%; + text-transform: uppercase; +} + +article { + margin-bottom: 20px; +} + +article > header > h1 { + font-size: 112%; + font-weight: bold; + line-height: 150%; + margin-bottom: 0; + color: inherit; +} + +article > header > span + span { + margin-left: 2px; +} + +article > header > span + span::before { + content: '@'; + margin-right: 4px; +} + +article > header > span { + color: #808080; + font-size: 100%; +} + +article > header > span a { + color: inherit; +} + +article > header address { + display: inline; +} + +article > header address + time { + margin-left: 6px; +} + +article > header address + time::before { + content: '—'; + margin-right: 6px; +} + +em { + font-style: normal; + font-weight: bold; + color: rgb(100, 100, 100); + /*margin-right: 6px;*/ +} + +@media print { + @page { + margin: 15mm; + } + + body { + font-size: 14pt; + line-height: 21pt; + } + + .vitae-container > header { + font-size: 80%; + line-height: 160%; + } + + article > header > span { + font-size: 80%; + line-height: 80%; + } +} diff --git a/themes/mauro/static/css/vitae-skeleton.css b/themes/mauro/static/css/vitae-skeleton.css new file mode 100644 index 0000000..9ac1439 --- /dev/null +++ b/themes/mauro/static/css/vitae-skeleton.css @@ -0,0 +1,242 @@ +/* +* Skeleton V1.2 +* Copyright 2011, Dave Gamache +* www.getskeleton.com +* Free to use under the MIT license. +* http://www.opensource.org/licenses/mit-license.php +* 6/20/2012 +*/ + + +/* Table of Contents +================================================== + #Base 960 Grid + #Tablet (Portrait) + #Mobile (Portrait) + #Mobile (Landscape) + #Clearing */ + + + +/* #Base 960 Grid +================================================== */ + + .vitae-container { position: relative; width: 960px; margin: 0 auto; padding: 0; } + .vitae-container .column, + .vitae-container .columns { float: left; display: inline; margin-left: 10px; margin-right: 10px; } + .row { margin-bottom: 20px; } + + /* Nested Column Classes */ + .column.alpha, .columns.alpha { margin-left: 0; } + .column.omega, .columns.omega { margin-right: 0; } + + /* Base Grid */ + .vitae-container .one.column, + .vitae-container .one.columns { width: 40px; } + .vitae-container .two.columns { width: 100px; } + .vitae-container .three.columns { width: 160px; } + .vitae-container .four.columns { width: 220px; } + .vitae-container .five.columns { width: 280px; } + .vitae-container .six.columns { width: 340px; } + .vitae-container .seven.columns { width: 400px; } + .vitae-container .eight.columns { width: 460px; } + .vitae-container .nine.columns { width: 520px; } + .vitae-container .ten.columns { width: 580px; } + .vitae-container .eleven.columns { width: 640px; } + .vitae-container .twelve.columns { width: 700px; } + .vitae-container .thirteen.columns { width: 760px; } + .vitae-container .fourteen.columns { width: 820px; } + .vitae-container .fifteen.columns { width: 880px; } + .vitae-container .sixteen.columns { width: 940px; } + + .vitae-container .one-third.column { width: 300px; } + .vitae-container .two-thirds.column { width: 620px; } + + /* Offsets */ + .vitae-container .offset-by-one { padding-left: 60px; } + .vitae-container .offset-by-two { padding-left: 120px; } + .vitae-container .offset-by-three { padding-left: 180px; } + .vitae-container .offset-by-four { padding-left: 240px; } + .vitae-container .offset-by-five { padding-left: 300px; } + .vitae-container .offset-by-six { padding-left: 360px; } + .vitae-container .offset-by-seven { padding-left: 420px; } + .vitae-container .offset-by-eight { padding-left: 480px; } + .vitae-container .offset-by-nine { padding-left: 540px; } + .vitae-container .offset-by-ten { padding-left: 600px; } + .vitae-container .offset-by-eleven { padding-left: 660px; } + .vitae-container .offset-by-twelve { padding-left: 720px; } + .vitae-container .offset-by-thirteen { padding-left: 780px; } + .vitae-container .offset-by-fourteen { padding-left: 840px; } + .vitae-container .offset-by-fifteen { padding-left: 900px; } + + + +/* #Tablet (Portrait) +================================================== */ + + /* Note: Design for a width of 768px */ + + @media only screen and (min-width: 768px) and (max-width: 959px) { + .vitae-container { width: 768px; } + .vitae-container .column, + .vitae-container .columns { margin-left: 10px; margin-right: 10px; } + .column.alpha, .columns.alpha { margin-left: 0; margin-right: 10px; } + .column.omega, .columns.omega { margin-right: 0; margin-left: 10px; } + .alpha.omega { margin-left: 0; margin-right: 0; } + + .vitae-container .one.column, + .vitae-container .one.columns { width: 28px; } + .vitae-container .two.columns { width: 76px; } + .vitae-container .three.columns { width: 124px; } + .vitae-container .four.columns { width: 172px; } + .vitae-container .five.columns { width: 220px; } + .vitae-container .six.columns { width: 268px; } + .vitae-container .seven.columns { width: 316px; } + .vitae-container .eight.columns { width: 364px; } + .vitae-container .nine.columns { width: 412px; } + .vitae-container .ten.columns { width: 460px; } + .vitae-container .eleven.columns { width: 508px; } + .vitae-container .twelve.columns { width: 556px; } + .vitae-container .thirteen.columns { width: 604px; } + .vitae-container .fourteen.columns { width: 652px; } + .vitae-container .fifteen.columns { width: 700px; } + .vitae-container .sixteen.columns { width: 748px; } + + .vitae-container .one-third.column { width: 236px; } + .vitae-container .two-thirds.column { width: 492px; } + + /* Offsets */ + .vitae-container .offset-by-one { padding-left: 48px; } + .vitae-container .offset-by-two { padding-left: 96px; } + .vitae-container .offset-by-three { padding-left: 144px; } + .vitae-container .offset-by-four { padding-left: 192px; } + .vitae-container .offset-by-five { padding-left: 240px; } + .vitae-container .offset-by-six { padding-left: 288px; } + .vitae-container .offset-by-seven { padding-left: 336px; } + .vitae-container .offset-by-eight { padding-left: 384px; } + .vitae-container .offset-by-nine { padding-left: 432px; } + .vitae-container .offset-by-ten { padding-left: 480px; } + .vitae-container .offset-by-eleven { padding-left: 528px; } + .vitae-container .offset-by-twelve { padding-left: 576px; } + .vitae-container .offset-by-thirteen { padding-left: 624px; } + .vitae-container .offset-by-fourteen { padding-left: 672px; } + .vitae-container .offset-by-fifteen { padding-left: 720px; } + } + + +/* #Mobile (Portrait) +================================================== */ + + /* Note: Design for a width of 320px */ + + @media only screen and (max-width: 767px) { + .vitae-container { width: 300px; } + .vitae-container .columns, + .vitae-container .column { margin: 0; } + + .vitae-container .one.column, + .vitae-container .one.columns, + .vitae-container .two.columns, + .vitae-container .three.columns, + .vitae-container .four.columns, + .vitae-container .five.columns, + .vitae-container .six.columns, + .vitae-container .seven.columns, + .vitae-container .eight.columns, + .vitae-container .nine.columns, + .vitae-container .ten.columns, + .vitae-container .eleven.columns, + .vitae-container .twelve.columns, + .vitae-container .thirteen.columns, + .vitae-container .fourteen.columns, + .vitae-container .fifteen.columns, + .vitae-container .sixteen.columns, + .vitae-container .one-third.column, + .vitae-container .two-thirds.column { width: 300px; } + + /* Offsets */ + .vitae-container .offset-by-one, + .vitae-container .offset-by-two, + .vitae-container .offset-by-three, + .vitae-container .offset-by-four, + .vitae-container .offset-by-five, + .vitae-container .offset-by-six, + .vitae-container .offset-by-seven, + .vitae-container .offset-by-eight, + .vitae-container .offset-by-nine, + .vitae-container .offset-by-ten, + .vitae-container .offset-by-eleven, + .vitae-container .offset-by-twelve, + .vitae-container .offset-by-thirteen, + .vitae-container .offset-by-fourteen, + .vitae-container .offset-by-fifteen { padding-left: 0; } + + } + + +/* #Mobile (Landscape) +================================================== */ + + /* Note: Design for a width of 480px */ + + @media only screen and (min-width: 480px) and (max-width: 767px) { + .vitae-container { width: 420px; } + .vitae-container .columns, + .vitae-container .column { margin: 0; } + + .vitae-container .one.column, + .vitae-container .one.columns, + .vitae-container .two.columns, + .vitae-container .three.columns, + .vitae-container .four.columns, + .vitae-container .five.columns, + .vitae-container .six.columns, + .vitae-container .seven.columns, + .vitae-container .eight.columns, + .vitae-container .nine.columns, + .vitae-container .ten.columns, + .vitae-container .eleven.columns, + .vitae-container .twelve.columns, + .vitae-container .thirteen.columns, + .vitae-container .fourteen.columns, + .vitae-container .fifteen.columns, + .vitae-container .sixteen.columns, + .vitae-container .one-third.column, + .vitae-container .two-thirds.column { width: 420px; } + } + + +/* #Clearing +================================================== */ + + /* Self Clearing Goodness */ + .vitae-container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; } + + /* Use clearfix class on parent to clear nested columns, + or wrap each row of columns in a
*/ + .clearfix:before, + .clearfix:after, + .row:before, + .row:after { + content: '\0020'; + display: block; + overflow: hidden; + visibility: hidden; + width: 0; + height: 0; } + .row:after, + .clearfix:after { + clear: both; } + .row, + .clearfix { + zoom: 1; } + + /* You can also use a
to clear columns */ + .clear { + clear: both; + display: block; + overflow: hidden; + visibility: hidden; + width: 0; + height: 0; + } diff --git a/themes/mauro/static/js/docs.min.js b/themes/mauro/static/js/docs.min.js new file mode 100755 index 0000000..b5386f7 --- /dev/null +++ b/themes/mauro/static/js/docs.min.js @@ -0,0 +1,16 @@ +/*! + +Holder - 2.2 - client side image placeholders +(c) 2012-2013 Ivan Malopinsky / http://imsky.co + +Provided under the MIT License. +Commercial use requires attribution. + +*/ +var Holder=Holder||{};!function(a,b){function c(a,b){var c="complete",d="readystatechange",e=!1,f=e,g=!0,h=a.document,i=h.documentElement,j=h.addEventListener?"addEventListener":"attachEvent",k=h.addEventListener?"removeEventListener":"detachEvent",l=h.addEventListener?"":"on",m=function(g){(g.type!=d||h.readyState==c)&&(("load"==g.type?a:h)[k](l+g.type,m,e),!f&&(f=!0)&&b.call(a,null))},n=function(){try{i.doScroll("left")}catch(a){return void setTimeout(n,50)}m("poll")};if(h.readyState==c)b.call(a,"lazy");else{if(h.createEventObject&&i.doScroll){try{g=!a.frameElement}catch(o){}g&&n()}h[j](l+"DOMContentLoaded",m,e),h[j](l+d,m,e),a[j](l+"load",m,e)}}function d(a){a=a.match(/^(\W)?(.*)/);var b=document["getElement"+(a[1]?"#"==a[1]?"ById":"sByClassName":"sByTagName")](a[2]),c=[];return null!==b&&(c=b.length?b:0===b.length?b:[b]),c}function e(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c}function f(a,b,c){b=parseInt(b,10),a=parseInt(a,10);var d=Math.max(b,a),e=Math.min(b,a),f=1/12,g=Math.min(.75*e,.75*d*f);return{height:Math.round(Math.max(c.size,g))}}function g(a){var b=a.ctx,c=a.dimensions,d=a.template,e=a.ratio,g=a.holder,h="literal"==g.textmode,i="exact"==g.textmode,j=f(c.width,c.height,d),k=j.height,l=c.width*e,m=c.height*e,n=d.font?d.font:"sans-serif";o.width=l,o.height=m,b.textAlign="center",b.textBaseline="middle",b.fillStyle=d.background,b.fillRect(0,0,l,m),b.fillStyle=d.foreground,b.font="bold "+k+"px "+n;var p=d.text?d.text:Math.floor(c.width)+"x"+Math.floor(c.height);if(h){var c=g.dimensions;p=c.width+"x"+c.height}else if(i&&g.exact_dimensions){var c=g.exact_dimensions;p=Math.floor(c.width)+"x"+Math.floor(c.height)}var q=b.measureText(p).width;return q/l>=.75&&(k=Math.floor(.75*k*(l/q))),b.font="bold "+k*e+"px "+n,b.fillText(p,l/2,m/2,l),o.toDataURL("image/png")}function h(a,b,c,d){var f=c.dimensions,h=c.theme,i=c.text?decodeURIComponent(c.text):c.text,j=f.width+"x"+f.height;h=i?e(h,{text:i}):h,h=c.font?e(h,{font:c.font}):h,b.setAttribute("data-src",d),c.theme=h,b.holder_data=c,"image"==a?(b.setAttribute("alt",i?i:h.text?h.text+" ["+j+"]":j),(n||!c.auto)&&(b.style.width=f.width+"px",b.style.height=f.height+"px"),n?b.style.backgroundColor=h.background:(b.setAttribute("src",g({ctx:s,dimensions:f,template:h,ratio:t,holder:c})),c.textmode&&"exact"==c.textmode&&(r.push(b),k(b)))):"background"==a?n||(b.style.backgroundImage="url("+g({ctx:s,dimensions:f,template:h,ratio:t,holder:c})+")",b.style.backgroundSize=f.width+"px "+f.height+"px"):"fluid"==a&&(b.setAttribute("alt",i?i:h.text?h.text+" ["+j+"]":j),b.style.height="%"==f.height.slice(-1)?f.height:f.height+"px",b.style.width="%"==f.width.slice(-1)?f.width:f.width+"px",("inline"==b.style.display||""===b.style.display||"none"==b.style.display)&&(b.style.display="block"),n?b.style.backgroundColor=h.background:(r.push(b),k(b)))}function i(a,b){var c={height:a.clientHeight,width:a.clientWidth};if(!c.height&&!c.width){if(a.hasAttribute("data-holder-invisible"))throw new Error("Holder: placeholder is not visible");return a.setAttribute("data-holder-invisible",!0),setTimeout(function(){b.call(this,a)},1),null}return a.removeAttribute("data-holder-invisible"),c}function k(a){var b;b=null==a.nodeType?r:[a];for(var c in b)if(b.hasOwnProperty(c)){var d=b[c];if(d.holder_data){var e=d.holder_data,f=i(d,k);f&&(e.fluid&&d.setAttribute("src",g({ctx:s,dimensions:f,template:e.theme,ratio:t,holder:e})),e.textmode&&"exact"==e.textmode&&(e.exact_dimensions=f,d.setAttribute("src",g({ctx:s,dimensions:e.dimensions,template:e.theme,ratio:t,holder:e}))))}}}function l(b,c){var d={theme:e(u.themes.gray,{})},f=!1;for(sl=b.length,j=0;sl>j;j++){var g=b[j];a.flags.dimensions.match(g)?(f=!0,d.dimensions=a.flags.dimensions.output(g)):a.flags.fluid.match(g)?(f=!0,d.dimensions=a.flags.fluid.output(g),d.fluid=!0):a.flags.textmode.match(g)?d.textmode=a.flags.textmode.output(g):a.flags.colors.match(g)?d.theme=a.flags.colors.output(g):c.themes[g]?c.themes.hasOwnProperty(g)&&(d.theme=e(c.themes[g],{})):a.flags.font.match(g)?d.font=a.flags.font.output(g):a.flags.auto.match(g)?d.auto=!0:a.flags.text.match(g)&&(d.text=a.flags.text.output(g))}return f?d:!1}var m=!1,n=!1,o=document.createElement("canvas"),p=1,q=1,r=[];if(o.getContext)if(o.toDataURL("image/png").indexOf("data:image/png")<0)n=!0;else var s=o.getContext("2d");else n=!0;n||(p=window.devicePixelRatio||1,q=s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1);var t=p/q,u={domain:"holder.js",images:"img",bgnodes:".holderjs",themes:{gray:{background:"#eee",foreground:"#aaa",size:12},social:{background:"#3a5a97",foreground:"#fff",size:12},industrial:{background:"#434A52",foreground:"#C2F200",size:12},sky:{background:"#0D8FDB",foreground:"#fff",size:12},vine:{background:"#39DBAC",foreground:"#1E292C",size:12},lava:{background:"#F8591A",foreground:"#1C2846",size:12}},stylesheet:""};a.flags={dimensions:{regex:/^(\d+)x(\d+)$/,output:function(a){var b=this.regex.exec(a);return{width:+b[1],height:+b[2]}}},fluid:{regex:/^([0-9%]+)x([0-9%]+)$/,output:function(a){var b=this.regex.exec(a);return{width:b[1],height:b[2]}}},colors:{regex:/#([0-9a-f]{3,})\:#([0-9a-f]{3,})/i,output:function(a){var b=this.regex.exec(a);return{size:u.themes.gray.size,foreground:"#"+b[2],background:"#"+b[1]}}},text:{regex:/text\:(.*)/,output:function(a){return this.regex.exec(a)[1]}},font:{regex:/font\:(.*)/,output:function(a){return this.regex.exec(a)[1]}},auto:{regex:/^auto$/},textmode:{regex:/textmode\:(.*)/,output:function(a){return this.regex.exec(a)[1]}}},document.getElementsByClassName||(document.getElementsByClassName=function(a){var b,c,d,e=document,f=[];if(e.querySelectorAll)return e.querySelectorAll("."+a);if(e.evaluate)for(c=".//*[contains(concat(' ', @class, ' '), ' "+a+" ')]",b=e.evaluate(c,e,null,0,null);d=b.iterateNext();)f.push(d);else for(b=e.getElementsByTagName("*"),c=new RegExp("(^|\\s)"+a+"(\\s|$)"),d=0;df;f++){var h=document.createElement("img");h.setAttribute("data-src",b),e[f].appendChild(h)}return a},a.run=function(b){m=!0;var c=e(u,b),f=[],g=[],i=[];for("string"==typeof c.images?g=d(c.images):window.NodeList&&c.images instanceof window.NodeList?g=c.images:window.Node&&c.images instanceof window.Node&&(g=[c.images]),"string"==typeof c.bgnodes?i=d(c.bgnodes):window.NodeList&&c.elements instanceof window.NodeList?i=c.bgnodes:window.Node&&c.bgnodes instanceof window.Node&&(i=[c.bgnodes]),o=0,n=g.length;n>o;o++)f.push(g[o]);var j=document.getElementById("holderjs-style");j||(j=document.createElement("style"),j.setAttribute("id","holderjs-style"),j.type="text/css",document.getElementsByTagName("head")[0].appendChild(j)),c.nocss||(j.styleSheet?j.styleSheet.cssText+=c.stylesheet:j.appendChild(document.createTextNode(c.stylesheet)));for(var k=new RegExp(c.domain+'/(.*?)"?\\)'),n=i.length,o=0;n>o;o++){var p=window.getComputedStyle(i[o],null).getPropertyValue("background-image"),q=p.match(k),r=i[o].getAttribute("data-background-src");if(q){var s=l(q[1].split("/"),c);s&&h("background",i[o],s,p)}else if(null!=r){var s=l(r.substr(r.lastIndexOf(c.domain)+c.domain.length+1).split("/"),c);s&&h("background",i[o],s,p)}}for(n=f.length,o=0;n>o;o++){var t,v;v=t=p=null;try{v=f[o].getAttribute("src"),attr_datasrc=f[o].getAttribute("data-src")}catch(w){}if(null==attr_datasrc&&v&&v.indexOf(c.domain)>=0?p=v:attr_datasrc&&attr_datasrc.indexOf(c.domain)>=0&&(p=attr_datasrc),p){var s=l(p.substr(p.lastIndexOf(c.domain)+c.domain.length+1).split("/"),c);s&&(s.fluid?h("fluid",f[o],s,p):h("image",f[o],s,p))}}return a},c(b,function(){window.addEventListener?(window.addEventListener("resize",k,!1),window.addEventListener("orientationchange",k,!1)):window.attachEvent("onresize",k),m||a.run()}),"function"==typeof define&&define.amd&&define([],function(){return a})}(Holder,window),/*! + * JavaScript for Bootstrap's docs (http://getbootstrap.com) + * Copyright 2011-2014 Twitter, Inc. + * Licensed under the Creative Commons Attribution 3.0 Unported License. For + * details, see http://creativecommons.org/licenses/by/3.0/. + */ +!function(a){a(function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){var b=document.createElement("style");b.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(b)}{var c=a(window),d=a(document.body);a(".navbar").outerHeight(!0)+10}d.scrollspy({target:".bs-sidebar"}),c.on("load",function(){d.scrollspy("refresh")}),a(".bs-docs-container [href=#]").click(function(a){a.preventDefault()}),setTimeout(function(){var b=a(".bs-sidebar");b.affix({offset:{top:function(){var c=b.offset().top,d=parseInt(b.children(0).css("margin-top"),10),e=a(".bs-docs-nav").height();return this.top=c-e-d},bottom:function(){return this.bottom=a(".bs-footer").outerHeight(!0)}}})},100),setTimeout(function(){a(".bs-top").affix()},100),a(".tooltip-demo").tooltip({selector:"[data-toggle=tooltip]",container:"body"}),a(".tooltip-test").tooltip(),a(".popover-test").popover(),a(".bs-docs-navbar").tooltip({selector:"a[data-toggle=tooltip]",container:".bs-docs-navbar .nav"}),a("[data-toggle=popover]").popover(),a("#loading-example-btn").click(function(){var b=a(this);b.button("loading"),setTimeout(function(){b.button("reset")},3e3)})})}(jQuery); \ No newline at end of file diff --git a/themes/mauro/static/js/ie10-viewport-bug-workaround.js b/themes/mauro/static/js/ie10-viewport-bug-workaround.js new file mode 100755 index 0000000..2c77829 --- /dev/null +++ b/themes/mauro/static/js/ie10-viewport-bug-workaround.js @@ -0,0 +1,23 @@ +/*! + * IE10 viewport hack for Surface/desktop Windows 8 bug + * Copyright 2014-2015 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + +// See the Getting Started docs for more information: +// http://getbootstrap.com/getting-started/#support-ie10-width + +(function () { + 'use strict'; + + if (navigator.userAgent.match(/IEMobile\/10\.0/)) { + var msViewportStyle = document.createElement('style') + msViewportStyle.appendChild( + document.createTextNode( + '@-ms-viewport{width:auto!important}' + ) + ) + document.querySelector('head').appendChild(msViewportStyle) + } + +})(); \ No newline at end of file diff --git a/themes/mauro/static/js/main.js b/themes/mauro/static/js/main.js new file mode 100755 index 0000000..2c827c4 --- /dev/null +++ b/themes/mauro/static/js/main.js @@ -0,0 +1,14 @@ +/** + * Created by fabiomadeira on 25/02/15. + */ +// jQuery for page scrolling feature +jQuery(document).ready(function(e) { + e(".scroll").click(function(t) { + t.preventDefault(); + e("html,body").animate({ + scrollTop: e(this.hash).offset().top + }, 1e3) + }) +}); + + diff --git a/themes/mauro/theme.toml b/themes/mauro/theme.toml new file mode 100644 index 0000000..9c08c1b --- /dev/null +++ b/themes/mauro/theme.toml @@ -0,0 +1,18 @@ +name = "Sustain-Vitae" +license = "MIT" +licenselink = "https://github.com/nurlansu/hugo-sustain/blob/master/LICENSE.md" +description = "Personal blog built with Bootstrap, powered by Hugo" +homepage = "https://github.com/nurlansu/hugo-sustain" +tags = ["blog", "minimal", "responsive"] +features = ["responsive", "syntax highlighting"] +min_version = 0.17 + +[author] + name = "Nurlan Su" + homepage = "https://github.com/nurlansu" + +# If porting an existing theme +[original] + name = "Sustain" + homepage = "https://biomadeira.github.io/sustain/" + repo = "https://github.com/biomadeira/sustain"