diff --git a/src/config.yml b/src/config.yml index 0a31ed0..6b3e7f7 100644 --- a/src/config.yml +++ b/src/config.yml @@ -1,7 +1,7 @@ baseURL: 'https://oscarmlage.com' languageCode: 'en-us' title: 'oscarmlage' -theme: 'tale' +theme: 'oscar' pygmentsStyle: "monokai" canonifyurls: true paginate: 15 diff --git a/src/themes/oscar/LICENSE b/src/themes/oscar/LICENSE new file mode 100644 index 0000000..80262fe --- /dev/null +++ b/src/themes/oscar/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2018 Emiel Hollander +Copyright (c) 2018 Chester How (original theme) + +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/src/themes/oscar/README.md b/src/themes/oscar/README.md new file mode 100644 index 0000000..f2afdb0 --- /dev/null +++ b/src/themes/oscar/README.md @@ -0,0 +1,182 @@ +# Tale + +[![Build Status](https://travis-ci.com/EmielH/tale-hugo.svg?branch=master)](https://travis-ci.com/EmielH/tale-hugo) + +This is a port of the [Tale theme for Jekyll](https://github.com/chesterhow/tale) to Hugo. Tale is a minimal Jekyll theme curated for storytellers. Checkout the demo [here](https://chesterhow.github.io/tale/). I did not design this theme; I only ported it from Jekyll to Hugo. + +![Tale screenshot](https://raw.githubusercontent.com/EmielH/tale-hugo/master/images/screenshot.png) + +## Installation + +### 1. Install the theme + +If your site is also under version control using git, the easiest way to install this theme is to add it as a submodule. If you have not created a git repo for your project yet, you need to run `git init` beforehand. Inside the folder of your Hugo site, run the following command. + +``` +git submodule add https://github.com/EmielH/tale-hugo.git themes/tale +``` + +Alternatively, you can clone the theme into your project. + +``` +git clone https://github.com/EmielH/tale-hugo.git themes/tale +``` + +### 2. Configure Hugo + +Add the following line to `config.toml` to tell Hugo to use the theme. + +``` +theme = "tale" +``` + +Alternatively, you can tell Hugo to use the theme with the `server` command. + +``` +hugo server -t tale +``` + +### Additional information + +For more information, read the official [setup guide](https://gohugo.io/overview/installing/) of Hugo. + +### Update the theme + +If you have installed the theme as a git submodule, you can update the theme by issuing the following command inside your project folder. + +``` +git submodule update --remote --rebase +``` + +If you have cloned the theme, you can run `git pull` inside the theme folder. + +## Configuration + +### Menu + +The top menu uses [Hugo Menus](https://gohugo.io/content-management/menus/), with the name of the menu being `main`. To turn on the menu, follow the steps there - you can either add something like this to the front-matter of your pages: + +``` +--- +menu: "main" +--- +``` + +... or you can add a menu section to your `config` file: + +``` +sectionPagesMenu = "main" +``` + +Or if you want more control, add a specific entry for each item in your menu: + +``` +[menu] + [[menu.main]] + identifier = "about" + name = "About" + title = "About" + url = "/about/" + weight = 0 + [[menu.main]] + identifier = "posts" + name = "Posts" + title = "Posts" + url = "/posts/" + weight = 0 +``` + +For menu internationalization/translation, see [Multilingual Mode: Menus](https://gohugo.io/content-management/multilingual/#menus). + +### Internationalisation (i18n) + +Tale supports using other languages than English. Language files for the texts Tale uses are provided in the `i18n` directory. The default language is English. To switch languages, add the key `defaultContentLanguage` to your `config.toml` file. For example: + +``` +defaultContentLanguage = "nl" +``` + +To translate texts your site uses, add an `i18n` folder to your site. + +Feel free to submit pull requests for other translations of Tale's texts. + +[Hugo documentation for multilingual sites](//gohugo.io/content-management/multilingual/) + +### Disqus +Tale supports Disqus integration, a comment system that empowers dynamic features to static websites. To install it, just add the key `disqusShortname` in your `config.toml` +``` toml +disqusShortname = "disqus-example" +``` +Add the parameter `comments` in the front-matter of the pages where you want to allow comments +``` +--- +comments: true +--- +``` + +### Google Analytics + +Tale supports Google Analytics integration using Hugo's provided `google_analytics_async` template. + +To enable it, add the `googleAnalytics` tag to your `config.toml`. It will be added on all pages. + +```toml +googleAnalytics = "UA-133700000-0" +``` + +### Custom summaries + +Tale allows for writing the summary of your posts manually by setting the `summary` variable in the page frontmatter. If this variable is not set, the summary that Hugo automatically generates will be used. + +### Taxonomies + +Tale has basic support for taxonomies. Taxonomy and terms pages will be generated when you have defined taxonomies, but you need to include links to these pages yourself. For example, you can add a link to a taxonomy page in `header-menu.html`. + +### Placeholder partials + +The theme contains placeholder partials to make the theme more flexible and easier to adapt to your site without having to change the theme itself. These are: + +- `single/header.html` +- `single/footer.html` + +These are included in the template for a single post, at the top of the post (below the title) and at the bottom of the post, respectively. These can be used, for example, to include additional information about the post author or for related posts. Create a file `/layouts/partials/single/header.html` or `footer.html` on your own site to have it included. + +- `index/introduction.html` + +This partial is included at the top of the list of posts on the index page, allowing you to add an introduction to your site. + +### Copyright message + +The copyright message in the footer uses the name of the author of the site, as defined in `config.toml`. For example: + +``` +[Author] + name = "Emiel" +``` + +### Additional CSS files + +The theme can load additional CSS files for you, e.g. to override some of the styles, or the CSS that goes with a component that you're using. To add additional CSS files, put these files in the `static` folder of your site and add the `css` parameter to `config.toml`, like so: + +``` +[Params] +css = ["custom.css"] +``` + +To load multiple CSS files, use the parameter like this: + +``` +[Params] +css = ["custom.css", "custom2.css"] +``` + +## Acknowledgments + +Thanks + +- to [Chester How](//github.com/chesterhow) for creating the original [Tale theme for Jekyll](https://chesterhow.github.io/tale/), +- to [onedrawingperday](//github.com/onedrawingperday), [bep](//github.com/bep) and [digitalcraftsman](//github.com/digitalcraftsman) for their help in getting the theme working correctly with Hugo, +- to [lucperkins](https://github.com/lucperkins) for the [Fresh theme](https://github.com/lucperkins/hugo-fresh) from which I used some useful snippets of code. + +## License +See [LICENSE](https://github.com/EmielH/tale-hugo/blob/master/LICENSE). diff --git a/src/themes/oscar/assets/css/main.css b/src/themes/oscar/assets/css/main.css new file mode 100644 index 0000000..c1347f8 --- /dev/null +++ b/src/themes/oscar/assets/css/main.css @@ -0,0 +1,3 @@ +html { + background-color: red; +} \ No newline at end of file diff --git a/src/themes/oscar/assets/scss/tale.scss b/src/themes/oscar/assets/scss/tale.scss new file mode 100644 index 0000000..3cdfa99 --- /dev/null +++ b/src/themes/oscar/assets/scss/tale.scss @@ -0,0 +1,8 @@ +@import 'tale/variables'; +@import 'tale/base'; +@import 'tale/code'; +@import 'tale/post'; +@import 'tale/syntax'; +@import 'tale/layout'; +@import 'tale/pagination'; +@import 'tale/catalogue'; diff --git a/src/themes/oscar/assets/scss/tale/_base.scss b/src/themes/oscar/assets/scss/tale/_base.scss new file mode 100644 index 0000000..fec3d29 --- /dev/null +++ b/src/themes/oscar/assets/scss/tale/_base.scss @@ -0,0 +1,67 @@ +* { + @include box-sizing; + line-height: 1.5; +} + +html, +body { + color: $default-color; + background-color: red; + margin: 0; + padding: 0; +} + +html { + font-family: $serif-primary; + font-size: 14px; + overflow-y: scroll; + + @media (min-width: 600px) { + font-size: 16px; + } +} + +body { + -webkit-text-size-adjust: 100%; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + color: $default-shade; + font-family: $sans-serif; + line-height: normal; +} + +a { + color: $blue; + text-decoration: none; +} + +blockquote { + border-left: .25rem solid $grey-2; + color: $grey-1; + margin: .8rem 0; + padding: .5rem 1rem; + + p:last-child { + margin-bottom: 0; + } + + @media (min-width: 600px) { + padding: 0 5rem 0 1.25rem; + } +} + +img { + display: block; + margin: 0 0 1rem; + max-width: 100%; +} + +td { + vertical-align: top; +} diff --git a/src/themes/oscar/assets/scss/tale/_catalogue.scss b/src/themes/oscar/assets/scss/tale/_catalogue.scss new file mode 100644 index 0000000..0587bc5 --- /dev/null +++ b/src/themes/oscar/assets/scss/tale/_catalogue.scss @@ -0,0 +1,39 @@ +.catalogue { + &-item { + border-bottom: 1px solid $grey-2; + color: $default-color; + display: block; + padding: 2rem 0; + + &:hover .catalogue-line, + &:focus .catalogue-line { + width: 5rem; + } + + &:last-child { + border: 0; + } + } + + &-time { + color: $default-tint; + font-family: $serif-secondary; + letter-spacing: .5px; + } + + &-title { + color: $default-shade; + display: block; + font-family: $sans-serif; + font-size: 2rem; + font-weight: 700; + margin: .5rem 0; + } + + &-line { + @include transition(all .3s ease-out); + border-top: .2rem solid $default-shade; + display: block; + width: 2rem; + } +} diff --git a/src/themes/oscar/assets/scss/tale/_code.scss b/src/themes/oscar/assets/scss/tale/_code.scss new file mode 100644 index 0000000..8d3db57 --- /dev/null +++ b/src/themes/oscar/assets/scss/tale/_code.scss @@ -0,0 +1,47 @@ +pre, +code { + font-family: $monospaced; +} + +code { + background-color: $grey-3; + border-radius: 3px; + color: $code-color; + font-size: 85%; + padding: .25em .5em; + white-space: pre-wrap; +} + +pre { + margin: 0 0 1rem; +} + +pre code { + background-color: transparent; + color: inherit; + font-size: 100%; + padding: 0; +} + +.highlight { + background-color: $grey-3; + border-radius: 3px; + line-height: 1.4; + margin: 0 0 1rem; + padding: 1rem; + + pre { + margin-bottom: 0; + overflow-x: auto; + } + + .lineno { + color: $default-tint; + display: inline-block; // Ensures the null space also isn't selectable + padding: 0 .75rem 0 .25rem; + // Make sure numbers aren't selectable + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + } +} diff --git a/src/themes/oscar/assets/scss/tale/_layout.scss b/src/themes/oscar/assets/scss/tale/_layout.scss new file mode 100644 index 0000000..ba4a7b0 --- /dev/null +++ b/src/themes/oscar/assets/scss/tale/_layout.scss @@ -0,0 +1,92 @@ +.container { + margin: 0 auto; + max-width: 800px; + width: 80%; +} + +main, +footer, +.nav-container { + display: block; + margin: 0 auto; + max-width: 800px; + width: 80%; +} + +.nav { + box-shadow: 0 2px 2px -2px $shadow-color; + overflow: auto; + + &-container { + margin: 1rem auto; + position: relative; + text-align: center; + } + + &-title { + @include transition(all .2s ease-out); + color: $default-color; + display: inline-block; + margin: 0; + padding-right: .2rem; + + &:hover, + &:focus { + opacity: .6; + } + } + + ul { + list-style-type: none; + margin: 1rem 0 0; + padding: 0; + text-align: center; + } + + li { + @include transition(all .2s ease-out); + color: $default-color; + display: inline-block; + opacity: .6; + padding: 0 2rem 0 0; + + &:last-child { + padding-right: 0; + } + + &:hover, + &:focus { + opacity: 1; + } + } + + a { + color: $default-color; + font-family: $sans-serif; + } +} + +@media (min-width: 600px) { + .nav { + &-container { + text-align: left; + } + + ul { + bottom: 0; + position: absolute; + right: 0; + } + } +} + +footer { + font-family: $serif-secondary; + padding: 2rem 0; + text-align: center; + + span { + color: $default-color; + font-size: .8rem; + } +} diff --git a/src/themes/oscar/assets/scss/tale/_pagination.scss b/src/themes/oscar/assets/scss/tale/_pagination.scss new file mode 100644 index 0000000..3700e15 --- /dev/null +++ b/src/themes/oscar/assets/scss/tale/_pagination.scss @@ -0,0 +1,44 @@ +.pagination { + border-top: .5px solid $grey-2; + font-family: $serif-secondary; + padding-top: 2rem; + position: relative; + text-align: center; + + span { + color: $default-shade; + font-size: 1.1rem; + } + + .top { + @include transition(all .3s ease-out); + color: $default-color; + font-family: $sans-serif; + font-size: 1.1rem; + opacity: .6; + + &:hover { + opacity: 1; + } + } + + .arrow { + @include transition(all .3s ease-out); + color: $default-color; + position: absolute; + + &:hover, + &:focus { + opacity: .6; + text-decoration: none; + } + } + + .left { + left: 0; + } + + .right { + right: 0; + } +} diff --git a/src/themes/oscar/assets/scss/tale/_post.scss b/src/themes/oscar/assets/scss/tale/_post.scss new file mode 100644 index 0000000..3680d80 --- /dev/null +++ b/src/themes/oscar/assets/scss/tale/_post.scss @@ -0,0 +1,63 @@ +.post { + padding: 3rem 0; + + &-info { + color: $default-tint; + font-family: $serif-secondary; + letter-spacing: 0.5px; + text-align: center; + + span { + font-style: italic; + } + } + + &-title { + color: $default-shade; + font-family: $sans-serif; + font-size: 4rem; + margin: 1rem 0; + text-align: center; + } + + &-line { + border-top: 0.4rem solid $default-shade; + display: block; + margin: 0 auto 3rem; + width: 4rem; + } + + p { + margin: 0 0 1rem; + text-align: justify; + } + + a:hover { + text-decoration: underline; + } + + img { + margin: 0 auto 0.5rem; + } + + img + em { + color: $default-tint; + display: block; + font-family: $sans-serif; + font-size: 0.9rem; + font-style: normal; + text-align: center; + } + + // CSS for making emoji inline + img.emoji { + display: inline-block; + left: 0; + transform: none; + width: 1rem; + height: 1rem; + vertical-align: text-top; + padding: 0; + margin: 0; + } +} diff --git a/src/themes/oscar/assets/scss/tale/_syntax.scss b/src/themes/oscar/assets/scss/tale/_syntax.scss new file mode 100644 index 0000000..15ad797 --- /dev/null +++ b/src/themes/oscar/assets/scss/tale/_syntax.scss @@ -0,0 +1,65 @@ +.highlight .hll { background-color: #ffc; } +.highlight .c { color: #999; } /* Comment */ +.highlight .err { color: #a00; background-color: #faa } /* Error */ +.highlight .k { color: #069; } /* Keyword */ +.highlight .o { color: #555 } /* Operator */ +.highlight .cm { color: #09f; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #099 } /* Comment.Preproc */ +.highlight .c1 { color: #999; } /* Comment.Single */ +.highlight .cs { color: #999; } /* Comment.Special */ +.highlight .gd { background-color: #fcc; border: 1px solid #c00 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #f00 } /* Generic.Error */ +.highlight .gh { color: #030; } /* Generic.Heading */ +.highlight .gi { background-color: #cfc; border: 1px solid #0c0 } /* Generic.Inserted */ +.highlight .go { color: #aaa } /* Generic.Output */ +.highlight .gp { color: #009; } /* Generic.Prompt */ +.highlight .gs { } /* Generic.Strong */ +.highlight .gu { color: #030; } /* Generic.Subheading */ +.highlight .gt { color: #9c6 } /* Generic.Traceback */ +.highlight .kc { color: #069; } /* Keyword.Constant */ +.highlight .kd { color: #069; } /* Keyword.Declaration */ +.highlight .kn { color: #069; } /* Keyword.Namespace */ +.highlight .kp { color: #069 } /* Keyword.Pseudo */ +.highlight .kr { color: #069; } /* Keyword.Reserved */ +.highlight .kt { color: #078; } /* Keyword.Type */ +.highlight .m { color: #f60 } /* Literal.Number */ +.highlight .s { color: #d44950 } /* Literal.String */ +.highlight .na { color: #4f9fcf } /* Name.Attribute */ +.highlight .nb { color: #366 } /* Name.Builtin */ +.highlight .nc { color: #0a8; } /* Name.Class */ +.highlight .no { color: #360 } /* Name.Constant */ +.highlight .nd { color: #99f } /* Name.Decorator */ +.highlight .ni { color: #999; } /* Name.Entity */ +.highlight .ne { color: #c00; } /* Name.Exception */ +.highlight .nf { color: #c0f } /* Name.Function */ +.highlight .nl { color: #99f } /* Name.Label */ +.highlight .nn { color: #0cf; } /* Name.Namespace */ +.highlight .nt { color: #2f6f9f; } /* Name.Tag */ +.highlight .nv { color: #033 } /* Name.Variable */ +.highlight .ow { color: #000; } /* Operator.Word */ +.highlight .w { color: #bbb } /* Text.Whitespace */ +.highlight .mf { color: #f60 } /* Literal.Number.Float */ +.highlight .mh { color: #f60 } /* Literal.Number.Hex */ +.highlight .mi { color: #f60 } /* Literal.Number.Integer */ +.highlight .mo { color: #f60 } /* Literal.Number.Oct */ +.highlight .sb { color: #c30 } /* Literal.String.Backtick */ +.highlight .sc { color: #c30 } /* Literal.String.Char */ +.highlight .sd { color: #c30; font-style: italic } /* Literal.String.Doc */ +.highlight .s2 { color: #c30 } /* Literal.String.Double */ +.highlight .se { color: #c30; } /* Literal.String.Escape */ +.highlight .sh { color: #c30 } /* Literal.String.Heredoc */ +.highlight .si { color: #a00 } /* Literal.String.Interpol */ +.highlight .sx { color: #c30 } /* Literal.String.Other */ +.highlight .sr { color: #3aa } /* Literal.String.Regex */ +.highlight .s1 { color: #c30 } /* Literal.String.Single */ +.highlight .ss { color: #fc3 } /* Literal.String.Symbol */ +.highlight .bp { color: #366 } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #033 } /* Name.Variable.Class */ +.highlight .vg { color: #033 } /* Name.Variable.Global */ +.highlight .vi { color: #033 } /* Name.Variable.Instance */ +.highlight .il { color: #f60 } /* Literal.Number.Integer.Long */ + +.css .o, +.css .o + .nt, +.css .nt + .nt { color: #999; } diff --git a/src/themes/oscar/assets/scss/tale/_variables.scss b/src/themes/oscar/assets/scss/tale/_variables.scss new file mode 100644 index 0000000..8a064f3 --- /dev/null +++ b/src/themes/oscar/assets/scss/tale/_variables.scss @@ -0,0 +1,29 @@ +// Colors +$default-color: #555; +$default-shade: #353535; +$default-tint: #aaa; +$grey-1: #979797; +$grey-2: #e5e5e5; +$grey-3: #f9f9f9; +$white: #fff; +$blue: #4a9ae1; +$shadow-color: rgba(0, 0, 0, .2); +$code-color: #bf616a; + +// Fonts +$serif-primary: 'Libre Baskerville', 'Times New Roman', Times, serif; +$serif-secondary: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif; +$sans-serif: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif; +$monospaced: Menlo, Monaco, monospace; + +@mixin box-sizing($type: border-box) { + -webkit-box-sizing: $type; + -moz-box-sizing: $type; + box-sizing: $type; +} + +@mixin transition($args...) { + -webkit-transition: $args; + -moz-transition: $args; + transition: $args; +} diff --git a/src/themes/oscar/data/months_de.yaml b/src/themes/oscar/data/months_de.yaml new file mode 100644 index 0000000..f18a1e3 --- /dev/null +++ b/src/themes/oscar/data/months_de.yaml @@ -0,0 +1,12 @@ +1: "Januar" +2: "Februar" +3: "März" +4: "April" +5: "Mai" +6: "Juni" +7: "Juli" +8: "August" +9: "September" +10: "Oktober" +11: "November" +12: "Dezember" diff --git a/src/themes/oscar/data/months_es.yaml b/src/themes/oscar/data/months_es.yaml new file mode 100644 index 0000000..e2fc147 --- /dev/null +++ b/src/themes/oscar/data/months_es.yaml @@ -0,0 +1,12 @@ +1: "enero" +2: "febrero" +3: "marzo" +4: "abril" +5: "mayo" +6: "junio" +7: "julio" +8: "agosto" +9: "septiembre" +10: "octubre" +11: "noviembre" +12: "diciembre" diff --git a/src/themes/oscar/data/months_fr.yaml b/src/themes/oscar/data/months_fr.yaml new file mode 100644 index 0000000..21c9088 --- /dev/null +++ b/src/themes/oscar/data/months_fr.yaml @@ -0,0 +1,12 @@ +1: "janvier" +2: "février" +3: "mars" +4: "avril" +5: "mai" +6: "juin" +7: "juillet" +8: "août" +9: "septembre" +10: "octobre" +11: "novembre" +12: "décembre" diff --git a/src/themes/oscar/data/months_it.yaml b/src/themes/oscar/data/months_it.yaml new file mode 100644 index 0000000..9f584cd --- /dev/null +++ b/src/themes/oscar/data/months_it.yaml @@ -0,0 +1,12 @@ +1: "gennaio" +2: "febbraio" +3: "marzo" +4: "aprile" +5: "maggio" +6: "giugno" +7: "luglio" +8: "agosto" +9: "settembre" +10: "ottobre" +11: "novembre" +12: "dicembre" diff --git a/src/themes/oscar/data/months_ku.yaml b/src/themes/oscar/data/months_ku.yaml new file mode 100644 index 0000000..414251d --- /dev/null +++ b/src/themes/oscar/data/months_ku.yaml @@ -0,0 +1,12 @@ +1: "Adar" +2: "Avrêl" +3: "Gulan" +4: "Pûşper" +5: "Tîrmeh" +6: "Gelawêj" +7: "Rezber" +8: "Kewçêr" +9: "Sermawez" +10: "Berfanbar" +11: "Rêbendan" +12: "Reşemî" diff --git a/src/themes/oscar/data/months_nl.yaml b/src/themes/oscar/data/months_nl.yaml new file mode 100644 index 0000000..c979892 --- /dev/null +++ b/src/themes/oscar/data/months_nl.yaml @@ -0,0 +1,12 @@ +1: "januari" +2: "februari" +3: "maart" +4: "april" +5: "mei" +6: "juni" +7: "juli" +8: "augustus" +9: "september" +10: "oktober" +11: "november" +12: "december" \ No newline at end of file diff --git a/src/themes/oscar/data/months_pl.yaml b/src/themes/oscar/data/months_pl.yaml new file mode 100644 index 0000000..d5f3756 --- /dev/null +++ b/src/themes/oscar/data/months_pl.yaml @@ -0,0 +1,12 @@ +1: "stycznia" +2: "lutego" +3: "marca" +4: "kwietnia" +5: "maja" +6: "czerwca" +7: "lipca" +8: "sierpnia" +9: "września" +10: "października" +11: "listopada" +12: "grudnia" diff --git a/src/themes/oscar/i18n/de.toml b/src/themes/oscar/i18n/de.toml new file mode 100644 index 0000000..c587b3f --- /dev/null +++ b/src/themes/oscar/i18n/de.toml @@ -0,0 +1,11 @@ +[writtenBy] +other = "Von" + +[on] +other = "am" + +[generator] +other = "Made with Hugo using the Tale theme." + +[publishdate] +other = "{{ .PublishDate.Day }}. {{ index $.Site.Data.months_de (printf \"%d\" .PublishDate.Month) }} {{ .PublishDate.Year }}" diff --git a/src/themes/oscar/i18n/en.toml b/src/themes/oscar/i18n/en.toml new file mode 100644 index 0000000..fc9961f --- /dev/null +++ b/src/themes/oscar/i18n/en.toml @@ -0,0 +1,11 @@ +[writtenBy] +other = "Written by" + +[on] +other = "on" + +[generator] +other = "Made with Hugo using the Tale theme." + +[publishdate] +other = "{{ .PublishDate.Format \"January 2, 2006\" }}" \ No newline at end of file diff --git a/src/themes/oscar/i18n/es.toml b/src/themes/oscar/i18n/es.toml new file mode 100644 index 0000000..25f657e --- /dev/null +++ b/src/themes/oscar/i18n/es.toml @@ -0,0 +1,11 @@ +[writtenBy] +other = "Escrito por" + +[on] +other = "el" + +[generator] +other = "Hecho con Hugo usando el tema Tale." + +[publishdate] +other = "{{ .PublishDate.Day }} de {{ index $.Site.Data.months_es (printf \"%d\" .PublishDate.Month) }} de {{ .PublishDate.Year }}" diff --git a/src/themes/oscar/i18n/fr.toml b/src/themes/oscar/i18n/fr.toml new file mode 100644 index 0000000..a13b993 --- /dev/null +++ b/src/themes/oscar/i18n/fr.toml @@ -0,0 +1,11 @@ +[writtenBy] +other = "Écrit par" + +[on] +other = "le" + +[generator] +other = "Fait avec Hugo, à partir du thème Tale." + +[publishdate] +other = "{{ .PublishDate.Day }} {{ index $.Site.Data.months_fr (printf \"%d\" .PublishDate.Month) }} {{ .PublishDate.Year }}" diff --git a/src/themes/oscar/i18n/it.toml b/src/themes/oscar/i18n/it.toml new file mode 100644 index 0000000..a0765a6 --- /dev/null +++ b/src/themes/oscar/i18n/it.toml @@ -0,0 +1,11 @@ +[writtenBy] +other = "Scritto da" + +[on] +other = "il" + +[generator] +other = "Creato con Hugo usando il tema Tale." + +[publishdate] +other = "{{ .PublishDate.Day }} {{ index $.Site.Data.months_it (printf \"%d\" .PublishDate.Month) }} {{ .PublishDate.Year }}" diff --git a/src/themes/oscar/i18n/ku.toml b/src/themes/oscar/i18n/ku.toml new file mode 100644 index 0000000..43bdc5f --- /dev/null +++ b/src/themes/oscar/i18n/ku.toml @@ -0,0 +1,11 @@ +[writtenBy] +other = "Nivîskar:" + +[on] +other = "li" + +[generator] +other = "Bi Hugo û Tale-ê hatiye çêkirin." + +[publishdate] +other = "{{ .PublishDate.Day }} {{ index $.Site.Data.months_ku (printf \"%d\" .PublishDate.Month) }} {{ .PublishDate.Year }}" diff --git a/src/themes/oscar/i18n/nl.toml b/src/themes/oscar/i18n/nl.toml new file mode 100644 index 0000000..8357c08 --- /dev/null +++ b/src/themes/oscar/i18n/nl.toml @@ -0,0 +1,11 @@ +[writtenBy] +other = "Geschreven door" + +[on] +other = "op" + +[generator] +other = "Gemaakt met Hugo en thema Tale." + +[publishdate] +other = "{{ .PublishDate.Day }} {{ index $.Site.Data.months_nl (printf \"%d\" .PublishDate.Month) }} {{ .PublishDate.Year }}" diff --git a/src/themes/oscar/i18n/pl.toml b/src/themes/oscar/i18n/pl.toml new file mode 100644 index 0000000..44b5ffa --- /dev/null +++ b/src/themes/oscar/i18n/pl.toml @@ -0,0 +1,11 @@ +[writtenBy] +other = "Autor" + +[on] +other = "opublikowano" + +[generator] +other = "Made with Hugo using the Tale theme." + +[publishdate] +other = "{{ .PublishDate.Day }}. {{ index $.Site.Data.months_pl (printf \"%d\" .PublishDate.Month) }} {{ .PublishDate.Year }}" diff --git a/src/themes/oscar/images/screenshot.png b/src/themes/oscar/images/screenshot.png new file mode 100644 index 0000000..032b970 Binary files /dev/null and b/src/themes/oscar/images/screenshot.png differ diff --git a/src/themes/oscar/images/tn.png b/src/themes/oscar/images/tn.png new file mode 100644 index 0000000..7538894 Binary files /dev/null and b/src/themes/oscar/images/tn.png differ diff --git a/src/themes/oscar/layouts/404.html b/src/themes/oscar/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/src/themes/oscar/layouts/_default/baseof.html b/src/themes/oscar/layouts/_default/baseof.html new file mode 100644 index 0000000..285952f --- /dev/null +++ b/src/themes/oscar/layouts/_default/baseof.html @@ -0,0 +1,9 @@ + + + {{ partial "metas.html" . }} + + {{ partial "header.html" . }} + {{ block "main" . }}{{ end }} + {{ partial "footer.html" . }} + + diff --git a/src/themes/oscar/layouts/_default/list.html b/src/themes/oscar/layouts/_default/list.html new file mode 100644 index 0000000..8caab23 --- /dev/null +++ b/src/themes/oscar/layouts/_default/list.html @@ -0,0 +1,16 @@ +{{ define "main" }} + +
+

List: Default

+
+ {{ range (.Paginate (where .Pages "Type" "posts")).Pages }} + {{ .Render "summary" }} + {{ end }} +
+ + +
+ +{{ end }} diff --git a/src/themes/oscar/layouts/_default/single.html b/src/themes/oscar/layouts/_default/single.html new file mode 100644 index 0000000..e9324cb --- /dev/null +++ b/src/themes/oscar/layouts/_default/single.html @@ -0,0 +1,11 @@ +{{ define "main" }} + +
+

Single: Default

+
+ {{ .Content }} +
+ +
+ +{{ end }} diff --git a/src/themes/oscar/layouts/_default/summary.html b/src/themes/oscar/layouts/_default/summary.html new file mode 100644 index 0000000..a673fe7 --- /dev/null +++ b/src/themes/oscar/layouts/_default/summary.html @@ -0,0 +1,11 @@ + +
+ +

{{ .Title }}

+
+ +

+ {{ if isset .Params "summary" }}{{ .Params.Summary | markdownify }}{{ else }}{{ .Summary }}{{ end }} +

+
+
diff --git a/src/themes/oscar/layouts/_default/taxonomy.html b/src/themes/oscar/layouts/_default/taxonomy.html new file mode 100644 index 0000000..4762ea8 --- /dev/null +++ b/src/themes/oscar/layouts/_default/taxonomy.html @@ -0,0 +1,24 @@ +{{ define "main" }} + +
+

{{ strings.FirstUpper .Data.Singular }} {{ .Title }}

+ Mis taxonomies +
+ {{ range (.Paginate .Pages).Pages }} + {{ .Render "summary" }} + {{ end }} +
+ + +
+ +{{ end }} diff --git a/src/themes/oscar/layouts/_default/terms.html b/src/themes/oscar/layouts/_default/terms.html new file mode 100644 index 0000000..ba1f4cf --- /dev/null +++ b/src/themes/oscar/layouts/_default/terms.html @@ -0,0 +1,25 @@ +{{ define "main" }} +
+

{{ .Title }}

+ Mis terms +
+ +
+ + +
+ +{{ end }} diff --git a/src/themes/oscar/layouts/index.html b/src/themes/oscar/layouts/index.html new file mode 100644 index 0000000..e497777 --- /dev/null +++ b/src/themes/oscar/layouts/index.html @@ -0,0 +1,17 @@ +{{ define "main" }} + +
+ +

List: Index

+
+ {{ range (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }} + {{ .Render "summary" }} + {{ end }} +
+ + +
+ +{{ end }} diff --git a/src/themes/oscar/layouts/partials/footer.html b/src/themes/oscar/layouts/partials/footer.html new file mode 100644 index 0000000..3fdfa4f --- /dev/null +++ b/src/themes/oscar/layouts/partials/footer.html @@ -0,0 +1,5 @@ + diff --git a/src/themes/oscar/layouts/partials/header.html b/src/themes/oscar/layouts/partials/header.html new file mode 100644 index 0000000..2c6bd33 --- /dev/null +++ b/src/themes/oscar/layouts/partials/header.html @@ -0,0 +1,23 @@ + diff --git a/src/themes/oscar/layouts/partials/metas.html b/src/themes/oscar/layouts/partials/metas.html new file mode 100644 index 0000000..014cd6c --- /dev/null +++ b/src/themes/oscar/layouts/partials/metas.html @@ -0,0 +1,31 @@ + + + + {{- if .IsHome }} + + {{- else if .Description }} + + {{- end }} + + {{- if .IsHome }}{{ .Site.Title }}{{- else }}{{ .Title }} · {{ .Site.Title }}{{- end }} + + + {{- $inServerMode := .Site.IsServer }} + {{- $cssTarget := "css/style.css" }} + {{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }} + {{- $style := resources.Get "scss/tale.scss" | toCSS $cssOptions }} + + + {{ range .Site.Params.css -}} + + {{ end -}} + + + + + + + + + + diff --git a/src/themes/oscar/layouts/partials/pagination.html b/src/themes/oscar/layouts/partials/pagination.html new file mode 100644 index 0000000..5f4cfe9 --- /dev/null +++ b/src/themes/oscar/layouts/partials/pagination.html @@ -0,0 +1,8 @@ +{{ if .Paginator.HasPrev }} + +{{ end }} +{{ if .Paginator.HasNext }} + +{{ end }} + +{{ .Paginator.PageNumber }} diff --git a/src/themes/oscar/layouts/partials/posts/footer.html b/src/themes/oscar/layouts/partials/posts/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/src/themes/oscar/layouts/partials/posts/header.html b/src/themes/oscar/layouts/partials/posts/header.html new file mode 100644 index 0000000..887e4b2 --- /dev/null +++ b/src/themes/oscar/layouts/partials/posts/header.html @@ -0,0 +1,4 @@ +### FIXME +{{- if .Params.image }} + +{{- end }} diff --git a/src/themes/oscar/layouts/partials/posts/info.html b/src/themes/oscar/layouts/partials/posts/info.html new file mode 100644 index 0000000..b5c8aa3 --- /dev/null +++ b/src/themes/oscar/layouts/partials/posts/info.html @@ -0,0 +1,13 @@ +
+ {{ i18n "writtenBy" }} + {{- if .Params.Author }} + {{ .Params.Author }} + {{- else }} + {{ .Site.Author.name }} + {{- end }} + + {{- if .PublishDate }} +
+ {{ i18n "on" }}  + {{- end }} +
diff --git a/src/themes/oscar/layouts/partials/posts/pagination.html b/src/themes/oscar/layouts/partials/posts/pagination.html new file mode 100644 index 0000000..fdcd30c --- /dev/null +++ b/src/themes/oscar/layouts/partials/posts/pagination.html @@ -0,0 +1,7 @@ + + {{- if .PrevPage }} + + {{- end }} + {{- if .NextPage }} + + {{- end }} diff --git a/src/themes/oscar/layouts/partials/posts/title.html b/src/themes/oscar/layouts/partials/posts/title.html new file mode 100644 index 0000000..b0c4e95 --- /dev/null +++ b/src/themes/oscar/layouts/partials/posts/title.html @@ -0,0 +1,2 @@ +

{{ .Title }}

+
diff --git a/src/themes/oscar/layouts/posts/list.html b/src/themes/oscar/layouts/posts/list.html new file mode 100644 index 0000000..51c7545 --- /dev/null +++ b/src/themes/oscar/layouts/posts/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} + +
+

List: Posts

+
+ {{ range (.Paginate .Pages).Pages }} + {{ .Render "summary" }} + {{ end }} +
+ + +
+ +{{ end }} + diff --git a/src/themes/oscar/layouts/posts/single.html b/src/themes/oscar/layouts/posts/single.html new file mode 100644 index 0000000..2706b10 --- /dev/null +++ b/src/themes/oscar/layouts/posts/single.html @@ -0,0 +1,24 @@ +{{ define "main" }} + +
+

Single one: Post

+ +
+ {{ partial "posts/info.html" . }} + {{ partial "posts/title.html" . }} + {{ partial "posts/header.html" . }} + + + {{ .Content }} + + {{ partial "posts/footer.html" . }} +
+ + +
+ +{{ end }} + diff --git a/src/themes/oscar/layouts/projects/list.html b/src/themes/oscar/layouts/projects/list.html new file mode 100644 index 0000000..5ae9f4f --- /dev/null +++ b/src/themes/oscar/layouts/projects/list.html @@ -0,0 +1,15 @@ +{{ define "main" }} + +
+Listado de proyectos..... + +
+ {{ range (.Paginate (where .Pages "Type" "projects")).Pages }} + {{ .Render "summary" }} + {{ end }} +
+ + +
+ +{{ end }} diff --git a/src/themes/oscar/layouts/projects/single.html b/src/themes/oscar/layouts/projects/single.html new file mode 100644 index 0000000..a1e364c --- /dev/null +++ b/src/themes/oscar/layouts/projects/single.html @@ -0,0 +1,8 @@ +{{ define "main" }} + +
+

{{ .Title }}

+ +
+ +{{ end }} diff --git a/src/themes/oscar/layouts/sections/single.html b/src/themes/oscar/layouts/sections/single.html new file mode 100644 index 0000000..cf139b1 --- /dev/null +++ b/src/themes/oscar/layouts/sections/single.html @@ -0,0 +1,17 @@ +{{ define "main" }} + +
+

Single: Sections

+
+ + {{ .Content }} + +
+ + +
+ +{{ end }} + diff --git a/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_33d66d0b5f8b04b1d41c1da7ba50ddae.content b/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_33d66d0b5f8b04b1d41c1da7ba50ddae.content new file mode 100644 index 0000000..cf4abca --- /dev/null +++ b/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_33d66d0b5f8b04b1d41c1da7ba50ddae.content @@ -0,0 +1 @@ +*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;line-height:1.5}html,body{color:#555;background-color:#fff;margin:0;padding:0}html{font-family:"Libre Baskerville","Times New Roman",Times,serif;font-size:14px;overflow-y:scroll}@media (min-width: 600px){html{font-size:16px}}body{-webkit-text-size-adjust:100%}h1,h2,h3,h4,h5,h6{color:#353535;font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif;line-height:normal}a{color:#4a9ae1;text-decoration:none}blockquote{border-left:0.25rem solid #e5e5e5;color:#979797;margin:.8rem 0;padding:.5rem 1rem}blockquote p:last-child{margin-bottom:0}@media (min-width: 600px){blockquote{padding:0 5rem 0 1.25rem}}img{display:block;margin:0 0 1rem;max-width:100%}td{vertical-align:top}pre,code{font-family:Menlo,Monaco,monospace}code{background-color:#f9f9f9;border-radius:3px;color:#bf616a;font-size:85%;padding:.25em .5em;white-space:pre-wrap}pre{margin:0 0 1rem}pre code{background-color:transparent;color:inherit;font-size:100%;padding:0}.highlight{background-color:#f9f9f9;border-radius:3px;line-height:1.4;margin:0 0 1rem;padding:1rem}.highlight pre{margin-bottom:0;overflow-x:auto}.highlight .lineno{color:#aaa;display:inline-block;padding:0 .75rem 0 .25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.post{padding:3rem 0}.post-info{color:#aaa;font-family:Palatino,"Palatino LT STD","Palatino Linotype","Book Antiqua","Georgia",serif;letter-spacing:0.5px;text-align:center}.post-info span{font-style:italic}.post-title{color:#353535;font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif;font-size:4rem;margin:1rem 0;text-align:center}.post-line{border-top:0.4rem solid #353535;display:block;margin:0 auto 3rem;width:4rem}.post p{margin:0 0 1rem;text-align:justify}.post a:hover{text-decoration:underline}.post img{margin:0 auto 0.5rem}.post img+em{color:#aaa;display:block;font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif;font-size:0.9rem;font-style:normal;text-align:center}.post img.emoji{display:inline-block;left:0;transform:none;width:1rem;height:1rem;vertical-align:text-top;padding:0;margin:0}.highlight .hll{background-color:#ffc}.highlight .c{color:#999}.highlight .err{color:#a00;background-color:#faa}.highlight .k{color:#069}.highlight .o{color:#555}.highlight .cm{color:#09f;font-style:italic}.highlight .cp{color:#099}.highlight .c1{color:#999}.highlight .cs{color:#999}.highlight .gd{background-color:#fcc;border:1px solid #c00}.highlight .ge{font-style:italic}.highlight .gr{color:#f00}.highlight .gh{color:#030}.highlight .gi{background-color:#cfc;border:1px solid #0c0}.highlight .go{color:#aaa}.highlight .gp{color:#009}.highlight .gu{color:#030}.highlight .gt{color:#9c6}.highlight .kc{color:#069}.highlight .kd{color:#069}.highlight .kn{color:#069}.highlight .kp{color:#069}.highlight .kr{color:#069}.highlight .kt{color:#078}.highlight .m{color:#f60}.highlight .s{color:#d44950}.highlight .na{color:#4f9fcf}.highlight .nb{color:#366}.highlight .nc{color:#0a8}.highlight .no{color:#360}.highlight .nd{color:#99f}.highlight .ni{color:#999}.highlight .ne{color:#c00}.highlight .nf{color:#c0f}.highlight .nl{color:#99f}.highlight .nn{color:#0cf}.highlight .nt{color:#2f6f9f}.highlight .nv{color:#033}.highlight .ow{color:#000}.highlight .w{color:#bbb}.highlight .mf{color:#f60}.highlight .mh{color:#f60}.highlight .mi{color:#f60}.highlight .mo{color:#f60}.highlight .sb{color:#c30}.highlight .sc{color:#c30}.highlight .sd{color:#c30;font-style:italic}.highlight .s2{color:#c30}.highlight .se{color:#c30}.highlight .sh{color:#c30}.highlight .si{color:#a00}.highlight .sx{color:#c30}.highlight .sr{color:#3aa}.highlight .s1{color:#c30}.highlight .ss{color:#fc3}.highlight .bp{color:#366}.highlight .vc{color:#033}.highlight .vg{color:#033}.highlight .vi{color:#033}.highlight .il{color:#f60}.css .o,.css .o+.nt,.css .nt+.nt{color:#999}.container{margin:0 auto;max-width:800px;width:80%}main,footer,.nav-container{display:block;margin:0 auto;max-width:800px;width:80%}.nav{box-shadow:0 2px 2px -2px rgba(0,0,0,0.2);overflow:auto}.nav-container{margin:1rem auto;position:relative;text-align:center}.nav-title{-webkit-transition:all 0.2s ease-out;-moz-transition:all 0.2s ease-out;transition:all 0.2s ease-out;color:#555;display:inline-block;margin:0;padding-right:.2rem}.nav-title:hover,.nav-title:focus{opacity:.6}.nav ul{list-style-type:none;margin:1rem 0 0;padding:0;text-align:center}.nav li{-webkit-transition:all 0.2s ease-out;-moz-transition:all 0.2s ease-out;transition:all 0.2s ease-out;color:#555;display:inline-block;opacity:.6;padding:0 2rem 0 0}.nav li:last-child{padding-right:0}.nav li:hover,.nav li:focus{opacity:1}.nav a{color:#555;font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif}@media (min-width: 600px){.nav-container{text-align:left}.nav ul{bottom:0;position:absolute;right:0}}footer{font-family:Palatino,"Palatino LT STD","Palatino Linotype","Book Antiqua","Georgia",serif;padding:2rem 0;text-align:center}footer span{color:#555;font-size:.8rem}.pagination{border-top:0.5px solid #e5e5e5;font-family:Palatino,"Palatino LT STD","Palatino Linotype","Book Antiqua","Georgia",serif;padding-top:2rem;position:relative;text-align:center}.pagination span{color:#353535;font-size:1.1rem}.pagination .top{-webkit-transition:all 0.3s ease-out;-moz-transition:all 0.3s ease-out;transition:all 0.3s ease-out;color:#555;font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif;font-size:1.1rem;opacity:.6}.pagination .top:hover{opacity:1}.pagination .arrow{-webkit-transition:all 0.3s ease-out;-moz-transition:all 0.3s ease-out;transition:all 0.3s ease-out;color:#555;position:absolute}.pagination .arrow:hover,.pagination .arrow:focus{opacity:.6;text-decoration:none}.pagination .left{left:0}.pagination .right{right:0}.catalogue-item{border-bottom:1px solid #e5e5e5;color:#555;display:block;padding:2rem 0}.catalogue-item:hover .catalogue-line,.catalogue-item:focus .catalogue-line{width:5rem}.catalogue-item:last-child{border:0}.catalogue-time{color:#aaa;font-family:Palatino,"Palatino LT STD","Palatino Linotype","Book Antiqua","Georgia",serif;letter-spacing:.5px}.catalogue-title{color:#353535;display:block;font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif;font-size:2rem;font-weight:700;margin:.5rem 0}.catalogue-line{-webkit-transition:all 0.3s ease-out;-moz-transition:all 0.3s ease-out;transition:all 0.3s ease-out;border-top:0.2rem solid #353535;display:block;width:2rem} diff --git a/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_33d66d0b5f8b04b1d41c1da7ba50ddae.json b/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_33d66d0b5f8b04b1d41c1da7ba50ddae.json new file mode 100644 index 0000000..28c014b --- /dev/null +++ b/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_33d66d0b5f8b04b1d41c1da7ba50ddae.json @@ -0,0 +1 @@ +{"Target":"css/style.css","MediaType":"text/css","Data":{}} \ No newline at end of file diff --git a/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.content b/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.content new file mode 100644 index 0000000..9c643f6 --- /dev/null +++ b/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.content @@ -0,0 +1,522 @@ +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + line-height: 1.5; } + +html, +body { + color: #555; + background-color: #fff; + margin: 0; + padding: 0; } + +html { + font-family: "Libre Baskerville", "Times New Roman", Times, serif; + font-size: 14px; + overflow-y: scroll; } + @media (min-width: 600px) { + html { + font-size: 16px; } } + +body { + -webkit-text-size-adjust: 100%; } + +h1, +h2, +h3, +h4, +h5, +h6 { + color: #353535; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + line-height: normal; } + +a { + color: #4a9ae1; + text-decoration: none; } + +blockquote { + border-left: 0.25rem solid #e5e5e5; + color: #979797; + margin: .8rem 0; + padding: .5rem 1rem; } + blockquote p:last-child { + margin-bottom: 0; } + @media (min-width: 600px) { + blockquote { + padding: 0 5rem 0 1.25rem; } } + +img { + display: block; + margin: 0 0 1rem; + max-width: 100%; } + +td { + vertical-align: top; } + +pre, +code { + font-family: Menlo, Monaco, monospace; } + +code { + background-color: #f9f9f9; + border-radius: 3px; + color: #bf616a; + font-size: 85%; + padding: .25em .5em; + white-space: pre-wrap; } + +pre { + margin: 0 0 1rem; } + +pre code { + background-color: transparent; + color: inherit; + font-size: 100%; + padding: 0; } + +.highlight { + background-color: #f9f9f9; + border-radius: 3px; + line-height: 1.4; + margin: 0 0 1rem; + padding: 1rem; } + .highlight pre { + margin-bottom: 0; + overflow-x: auto; } + .highlight .lineno { + color: #aaa; + display: inline-block; + padding: 0 .75rem 0 .25rem; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; } + +.post { + padding: 3rem 0; } + .post-info { + color: #aaa; + font-family: Palatino, "Palatino LT STD", "Palatino Linotype", "Book Antiqua", "Georgia", serif; + letter-spacing: 0.5px; + text-align: center; } + .post-info span { + font-style: italic; } + .post-title { + color: #353535; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + font-size: 4rem; + margin: 1rem 0; + text-align: center; } + .post-line { + border-top: 0.4rem solid #353535; + display: block; + margin: 0 auto 3rem; + width: 4rem; } + .post p { + margin: 0 0 1rem; + text-align: justify; } + .post a:hover { + text-decoration: underline; } + .post img { + margin: 0 auto 0.5rem; } + .post img + em { + color: #aaa; + display: block; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + font-size: 0.9rem; + font-style: normal; + text-align: center; } + .post img.emoji { + display: inline-block; + left: 0; + transform: none; + width: 1rem; + height: 1rem; + vertical-align: text-top; + padding: 0; + margin: 0; } + +.highlight .hll { + background-color: #ffc; } + +.highlight .c { + color: #999; } + +/* Comment */ +.highlight .err { + color: #a00; + background-color: #faa; } + +/* Error */ +.highlight .k { + color: #069; } + +/* Keyword */ +.highlight .o { + color: #555; } + +/* Operator */ +.highlight .cm { + color: #09f; + font-style: italic; } + +/* Comment.Multiline */ +.highlight .cp { + color: #099; } + +/* Comment.Preproc */ +.highlight .c1 { + color: #999; } + +/* Comment.Single */ +.highlight .cs { + color: #999; } + +/* Comment.Special */ +.highlight .gd { + background-color: #fcc; + border: 1px solid #c00; } + +/* Generic.Deleted */ +.highlight .ge { + font-style: italic; } + +/* Generic.Emph */ +.highlight .gr { + color: #f00; } + +/* Generic.Error */ +.highlight .gh { + color: #030; } + +/* Generic.Heading */ +.highlight .gi { + background-color: #cfc; + border: 1px solid #0c0; } + +/* Generic.Inserted */ +.highlight .go { + color: #aaa; } + +/* Generic.Output */ +.highlight .gp { + color: #009; } + +/* Generic.Prompt */ +/* Generic.Strong */ +.highlight .gu { + color: #030; } + +/* Generic.Subheading */ +.highlight .gt { + color: #9c6; } + +/* Generic.Traceback */ +.highlight .kc { + color: #069; } + +/* Keyword.Constant */ +.highlight .kd { + color: #069; } + +/* Keyword.Declaration */ +.highlight .kn { + color: #069; } + +/* Keyword.Namespace */ +.highlight .kp { + color: #069; } + +/* Keyword.Pseudo */ +.highlight .kr { + color: #069; } + +/* Keyword.Reserved */ +.highlight .kt { + color: #078; } + +/* Keyword.Type */ +.highlight .m { + color: #f60; } + +/* Literal.Number */ +.highlight .s { + color: #d44950; } + +/* Literal.String */ +.highlight .na { + color: #4f9fcf; } + +/* Name.Attribute */ +.highlight .nb { + color: #366; } + +/* Name.Builtin */ +.highlight .nc { + color: #0a8; } + +/* Name.Class */ +.highlight .no { + color: #360; } + +/* Name.Constant */ +.highlight .nd { + color: #99f; } + +/* Name.Decorator */ +.highlight .ni { + color: #999; } + +/* Name.Entity */ +.highlight .ne { + color: #c00; } + +/* Name.Exception */ +.highlight .nf { + color: #c0f; } + +/* Name.Function */ +.highlight .nl { + color: #99f; } + +/* Name.Label */ +.highlight .nn { + color: #0cf; } + +/* Name.Namespace */ +.highlight .nt { + color: #2f6f9f; } + +/* Name.Tag */ +.highlight .nv { + color: #033; } + +/* Name.Variable */ +.highlight .ow { + color: #000; } + +/* Operator.Word */ +.highlight .w { + color: #bbb; } + +/* Text.Whitespace */ +.highlight .mf { + color: #f60; } + +/* Literal.Number.Float */ +.highlight .mh { + color: #f60; } + +/* Literal.Number.Hex */ +.highlight .mi { + color: #f60; } + +/* Literal.Number.Integer */ +.highlight .mo { + color: #f60; } + +/* Literal.Number.Oct */ +.highlight .sb { + color: #c30; } + +/* Literal.String.Backtick */ +.highlight .sc { + color: #c30; } + +/* Literal.String.Char */ +.highlight .sd { + color: #c30; + font-style: italic; } + +/* Literal.String.Doc */ +.highlight .s2 { + color: #c30; } + +/* Literal.String.Double */ +.highlight .se { + color: #c30; } + +/* Literal.String.Escape */ +.highlight .sh { + color: #c30; } + +/* Literal.String.Heredoc */ +.highlight .si { + color: #a00; } + +/* Literal.String.Interpol */ +.highlight .sx { + color: #c30; } + +/* Literal.String.Other */ +.highlight .sr { + color: #3aa; } + +/* Literal.String.Regex */ +.highlight .s1 { + color: #c30; } + +/* Literal.String.Single */ +.highlight .ss { + color: #fc3; } + +/* Literal.String.Symbol */ +.highlight .bp { + color: #366; } + +/* Name.Builtin.Pseudo */ +.highlight .vc { + color: #033; } + +/* Name.Variable.Class */ +.highlight .vg { + color: #033; } + +/* Name.Variable.Global */ +.highlight .vi { + color: #033; } + +/* Name.Variable.Instance */ +.highlight .il { + color: #f60; } + +/* Literal.Number.Integer.Long */ +.css .o, +.css .o + .nt, +.css .nt + .nt { + color: #999; } + +.container { + margin: 0 auto; + max-width: 800px; + width: 80%; } + +main, +footer, +.nav-container { + display: block; + margin: 0 auto; + max-width: 800px; + width: 80%; } + +.nav { + box-shadow: 0 2px 2px -2px rgba(0, 0, 0, 0.2); + overflow: auto; } + .nav-container { + margin: 1rem auto; + position: relative; + text-align: center; } + .nav-title { + -webkit-transition: all 0.2s ease-out; + -moz-transition: all 0.2s ease-out; + transition: all 0.2s ease-out; + color: #555; + display: inline-block; + margin: 0; + padding-right: .2rem; } + .nav-title:hover, .nav-title:focus { + opacity: .6; } + .nav ul { + list-style-type: none; + margin: 1rem 0 0; + padding: 0; + text-align: center; } + .nav li { + -webkit-transition: all 0.2s ease-out; + -moz-transition: all 0.2s ease-out; + transition: all 0.2s ease-out; + color: #555; + display: inline-block; + opacity: .6; + padding: 0 2rem 0 0; } + .nav li:last-child { + padding-right: 0; } + .nav li:hover, .nav li:focus { + opacity: 1; } + .nav a { + color: #555; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; } + +@media (min-width: 600px) { + .nav-container { + text-align: left; } + .nav ul { + bottom: 0; + position: absolute; + right: 0; } } + +footer { + font-family: Palatino, "Palatino LT STD", "Palatino Linotype", "Book Antiqua", "Georgia", serif; + padding: 2rem 0; + text-align: center; } + footer span { + color: #555; + font-size: .8rem; } + +.pagination { + border-top: 0.5px solid #e5e5e5; + font-family: Palatino, "Palatino LT STD", "Palatino Linotype", "Book Antiqua", "Georgia", serif; + padding-top: 2rem; + position: relative; + text-align: center; } + .pagination span { + color: #353535; + font-size: 1.1rem; } + .pagination .top { + -webkit-transition: all 0.3s ease-out; + -moz-transition: all 0.3s ease-out; + transition: all 0.3s ease-out; + color: #555; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + font-size: 1.1rem; + opacity: .6; } + .pagination .top:hover { + opacity: 1; } + .pagination .arrow { + -webkit-transition: all 0.3s ease-out; + -moz-transition: all 0.3s ease-out; + transition: all 0.3s ease-out; + color: #555; + position: absolute; } + .pagination .arrow:hover, .pagination .arrow:focus { + opacity: .6; + text-decoration: none; } + .pagination .left { + left: 0; } + .pagination .right { + right: 0; } + +.catalogue-item { + border-bottom: 1px solid #e5e5e5; + color: #555; + display: block; + padding: 2rem 0; } + .catalogue-item:hover .catalogue-line, + .catalogue-item:focus .catalogue-line { + width: 5rem; } + .catalogue-item:last-child { + border: 0; } + +.catalogue-time { + color: #aaa; + font-family: Palatino, "Palatino LT STD", "Palatino Linotype", "Book Antiqua", "Georgia", serif; + letter-spacing: .5px; } + +.catalogue-title { + color: #353535; + display: block; + font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; + font-size: 2rem; + font-weight: 700; + margin: .5rem 0; } + +.catalogue-line { + -webkit-transition: all 0.3s ease-out; + -moz-transition: all 0.3s ease-out; + transition: all 0.3s ease-out; + border-top: 0.2rem solid #353535; + display: block; + width: 2rem; } + +/*# sourceMappingURL=style.css.map */ \ No newline at end of file diff --git a/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.json b/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.json new file mode 100644 index 0000000..28c014b --- /dev/null +++ b/src/themes/oscar/resources/_gen/assets/scss/scss/tale.scss_5ad6f408b0e3e473c748aac88af0ea18.json @@ -0,0 +1 @@ +{"Target":"css/style.css","MediaType":"text/css","Data":{}} \ No newline at end of file diff --git a/src/themes/oscar/static/css/fonts.css b/src/themes/oscar/static/css/fonts.css new file mode 100644 index 0000000..141d32a --- /dev/null +++ b/src/themes/oscar/static/css/fonts.css @@ -0,0 +1,41 @@ +/* libre-baskerville-regular - latin */ +@font-face { + font-family: 'Libre Baskerville'; + font-style: normal; + font-weight: 400; + src: url('../fonts/libre-baskerville-v7-latin-regular.eot'); /* IE9 Compat Modes */ + src: local('Libre Baskerville'), local('LibreBaskerville-Regular'), + url('../fonts/libre-baskerville-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/libre-baskerville-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ + url('../fonts/libre-baskerville-v7-latin-regular.woff') format('woff'), /* Modern Browsers */ + url('../fonts/libre-baskerville-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ + url('../fonts/libre-baskerville-v7-latin-regular.svg#LibreBaskerville') format('svg'); /* Legacy iOS */ +} + +/* libre-baskerville-700 - latin */ +@font-face { + font-family: 'Libre Baskerville'; + font-style: normal; + font-weight: 700; + src: url('../fonts/libre-baskerville-v7-latin-700.eot'); /* IE9 Compat Modes */ + src: local('Libre Baskerville Bold'), local('LibreBaskerville-Bold'), + url('../fonts/libre-baskerville-v7-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/libre-baskerville-v7-latin-700.woff2') format('woff2'), /* Super Modern Browsers */ + url('../fonts/libre-baskerville-v7-latin-700.woff') format('woff'), /* Modern Browsers */ + url('../fonts/libre-baskerville-v7-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */ + url('../fonts/libre-baskerville-v7-latin-700.svg#LibreBaskerville') format('svg'); /* Legacy iOS */ +} + +/* libre-baskerville-italic - latin */ +@font-face { + font-family: 'Libre Baskerville'; + font-style: italic; + font-weight: 400; + src: url('../fonts/libre-baskerville-v7-latin-italic.eot'); /* IE9 Compat Modes */ + src: local('Libre Baskerville Italic'), local('LibreBaskerville-Italic'), + url('../fonts/libre-baskerville-v7-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + url('../fonts/libre-baskerville-v7-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */ + url('../fonts/libre-baskerville-v7-latin-italic.woff') format('woff'), /* Modern Browsers */ + url('../fonts/libre-baskerville-v7-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */ + url('../fonts/libre-baskerville-v7-latin-italic.svg#LibreBaskerville') format('svg'); /* Legacy iOS */ +} diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.eot b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.eot new file mode 100644 index 0000000..b99bedc Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.eot differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.svg b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.svg new file mode 100644 index 0000000..2ebde49 --- /dev/null +++ b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.svg @@ -0,0 +1,443 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.ttf b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.ttf new file mode 100644 index 0000000..20c6897 Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.ttf differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.woff b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.woff new file mode 100644 index 0000000..11e39d5 Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.woff differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.woff2 b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.woff2 new file mode 100644 index 0000000..bcaee8b Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-700.woff2 differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.eot b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.eot new file mode 100644 index 0000000..36fb1b0 Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.eot differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.svg b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.svg new file mode 100644 index 0000000..638670c --- /dev/null +++ b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.svg @@ -0,0 +1,482 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.ttf b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.ttf new file mode 100644 index 0000000..64778f3 Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.ttf differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.woff b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.woff new file mode 100644 index 0000000..98aa98a Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.woff differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.woff2 b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.woff2 new file mode 100644 index 0000000..9881894 Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-italic.woff2 differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.eot b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.eot new file mode 100644 index 0000000..9cf3f9a Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.eot differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.svg b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.svg new file mode 100644 index 0000000..5e483f2 --- /dev/null +++ b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.svg @@ -0,0 +1,450 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.ttf b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.ttf new file mode 100644 index 0000000..71223c6 Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.ttf differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.woff b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.woff new file mode 100644 index 0000000..e31c31a Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.woff differ diff --git a/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.woff2 b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.woff2 new file mode 100644 index 0000000..4606355 Binary files /dev/null and b/src/themes/oscar/static/fonts/libre-baskerville-v7-latin-regular.woff2 differ diff --git a/src/themes/oscar/static/images/apple-touch-icon.png b/src/themes/oscar/static/images/apple-touch-icon.png new file mode 100644 index 0000000..f4a8c65 Binary files /dev/null and b/src/themes/oscar/static/images/apple-touch-icon.png differ diff --git a/src/themes/oscar/static/images/favicon-16x16.png b/src/themes/oscar/static/images/favicon-16x16.png new file mode 100644 index 0000000..cfc9142 Binary files /dev/null and b/src/themes/oscar/static/images/favicon-16x16.png differ diff --git a/src/themes/oscar/static/images/favicon-32x32.png b/src/themes/oscar/static/images/favicon-32x32.png new file mode 100644 index 0000000..21634dd Binary files /dev/null and b/src/themes/oscar/static/images/favicon-32x32.png differ diff --git a/src/themes/oscar/theme.toml b/src/themes/oscar/theme.toml new file mode 100644 index 0000000..5e56938 --- /dev/null +++ b/src/themes/oscar/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Tale" +license = "MIT" +licenselink = "https://github.com/EmielH/tale-hugo/blob/master/LICENSE" +description = "A port of the Tale theme for Hugo. Tale is a minimal Jekyll theme curated for storytellers." +homepage = "https://github.com/EmielH/tale-hugo" +tags = ["minimal", "clean", "responsive", "simple", "personal", "blog", "starter", "light", "typography"] +features = ["pagination"] +min_version = "0.50" + +[author] + name = "Emiel Hollander" + homepage = "https://www.emielhollander.nl" + +# If porting an existing theme +[original] + name = "Chester How" + homepage = "https://github.com/chesterhow/tale" + repo = "https://github.com/chesterhow/tale"