From d477c50e6c8fc1784752193f3039f1f090042ecf Mon Sep 17 00:00:00 2001 From: Baptiste Jacquemet Date: Mon, 6 May 2019 19:01:14 +0200 Subject: change folder structure and add basic help posts --- LICENSE | 20 ++ README.md | 3 + archetypes/default.md | 5 + archetypes/portfolio.md | 16 ++ archetypes/post.md | 6 + assets/sass/_mixins.sass | 29 +++ assets/sass/_variables.sass | 55 +++++ assets/sass/custom.sass | 188 ++++++++++++++++ assets/sass/scaffold.sass | 246 +++++++++++++++++++++ assets/syntax.css | 59 +++++ config.toml | 94 -------- content/_index.md | 13 -- content/about.md | 10 - content/portfolio/sample-project/index.md | 25 --- content/portfolio/sample-project/john.jpg | Bin 4965 -> 0 bytes content/portfolio/sample-project/sample.jpg | Bin 85860 -> 0 bytes content/post/_index.md | 6 - content/post/archetypes.md | 30 --- content/post/config-file.md | 107 --------- content/post/define-specific-og-image.md | 13 -- content/post/getting-started.md | 15 -- content/post/images/portfolio-example.png | Bin 1083052 -> 0 bytes content/post/images/sample_image.jpg | Bin 66575 -> 0 bytes content/post/manage-your-menu.md | 38 ---- content/post/portfolio-definition.md | 31 --- content/post/shortcodes.md | 30 --- exampleSite/config.toml | 8 +- exampleSite/content/_index.md | 13 ++ exampleSite/content/about.md | 10 + exampleSite/content/portfolio/_index.md | 6 + .../content/portfolio/sample-project/index.md | 25 +++ .../content/portfolio/sample-project/john.jpg | Bin 0 -> 4965 bytes .../content/portfolio/sample-project/sample.jpg | Bin 0 -> 85860 bytes exampleSite/content/post/archetypes.md | 30 +++ exampleSite/content/post/config-file.md | 176 +++++++++++++++ exampleSite/content/post/config_file.md | 100 --------- .../content/post/define-specific-og-image.md | 13 ++ exampleSite/content/post/getting-started.md | 18 ++ .../content/post/images/portfolio-example.png | Bin 0 -> 1083052 bytes exampleSite/content/post/images/sample_image.jpg | Bin 0 -> 66575 bytes exampleSite/content/post/manage-your-menu.md | 39 ++++ exampleSite/content/post/portfolio-definition.md | 41 ++++ exampleSite/content/post/shortcodes.md | 31 ++- exampleSite/static/images/gopher.png | Bin 0 -> 60711 bytes exampleSite/static/images/sample.jpg | Bin 0 -> 85860 bytes layouts/404.html | 22 ++ layouts/_default/baseof.html | 11 + layouts/_default/li.html | 4 + layouts/_default/list.html | 11 + layouts/_default/single.html | 6 + layouts/designs/list.html | 8 + layouts/designs/terms.html | 12 + layouts/index.html | 14 ++ layouts/partials/breadcrumb.html | 14 ++ layouts/partials/footer.html | 12 + layouts/partials/head/head.html | 8 + layouts/partials/head/meta.html | 10 + layouts/partials/head/style.html | 11 + layouts/partials/header.html | 13 ++ layouts/partials/portfolio/item.html | 14 ++ layouts/partials/portfolio/tags.html | 39 ++++ layouts/partials/portfolio/testimonial.html | 6 + layouts/partials/post/information.html | 9 + layouts/partials/post/item.html | 10 + layouts/partials/sidebar/menu.html | 8 + layouts/partials/sidebar/sidebar.html | 29 +++ layouts/partials/sidebar/social.html | 5 + layouts/partials/sidebar/style.html | 3 + layouts/partials/svg.html | 27 +++ layouts/portfolio/list.html | 10 + layouts/portfolio/single.html | 21 ++ layouts/post/list.html | 12 + layouts/post/single.html | 8 + layouts/robots.txt | 1 + layouts/shortcodes/emoji.html | 1 + layouts/shortcodes/tweet-single.html | 10 + layouts/techs/list.html | 8 + layouts/techs/terms.html | 12 + package-lock.json | 5 + package.json | 12 + static/images/default-sidebar.jpg | Bin 0 -> 77847 bytes static/images/edna-west.jpg | Bin 0 -> 3473 bytes static/images/gohper.png | Bin 0 -> 61765 bytes static/images/sample.jpg | Bin 85860 -> 0 bytes theme.toml | 2 +- themes/LICENSE | 20 -- themes/README.md | 2 - themes/archetypes/default.md | 5 - themes/archetypes/portfolio.md | 16 -- themes/archetypes/post.md | 6 - themes/assets/sass/_mixins.sass | 29 --- themes/assets/sass/_variables.sass | 55 ----- themes/assets/sass/custom.sass | 188 ---------------- themes/assets/sass/scaffold.sass | 246 --------------------- themes/assets/syntax.css | 59 ----- themes/layouts/404.html | 22 -- themes/layouts/_default/baseof.html | 11 - themes/layouts/_default/li.html | 4 - themes/layouts/_default/list.html | 11 - themes/layouts/_default/single.html | 6 - themes/layouts/designs/list.html | 8 - themes/layouts/designs/terms.html | 12 - themes/layouts/index.html | 14 -- themes/layouts/partials/breadcrumb.html | 14 -- themes/layouts/partials/footer.html | 12 - themes/layouts/partials/head/head.html | 8 - themes/layouts/partials/head/meta.html | 10 - themes/layouts/partials/head/style.html | 11 - themes/layouts/partials/header.html | 13 -- themes/layouts/partials/portfolio/item.html | 14 -- themes/layouts/partials/portfolio/tags.html | 39 ---- themes/layouts/partials/portfolio/testimonial.html | 6 - themes/layouts/partials/post/information.html | 9 - themes/layouts/partials/post/item.html | 10 - themes/layouts/partials/sidebar/menu.html | 8 - themes/layouts/partials/sidebar/sidebar.html | 29 --- themes/layouts/partials/sidebar/social.html | 5 - themes/layouts/partials/sidebar/style.html | 3 - themes/layouts/partials/svg.html | 27 --- themes/layouts/portfolio/list.html | 10 - themes/layouts/portfolio/single.html | 21 -- themes/layouts/post/list.html | 12 - themes/layouts/post/single.html | 8 - themes/layouts/robots.txt | 1 - themes/layouts/shortcodes/emoji.html | 1 - themes/layouts/shortcodes/tweet-single.html | 10 - themes/layouts/techs/list.html | 8 - themes/layouts/techs/terms.html | 12 - themes/package-lock.json | 5 - themes/package.json | 12 - themes/static/images/default-sidebar.jpg | Bin 77847 -> 0 bytes themes/static/images/edna-west.jpg | Bin 3473 -> 0 bytes themes/static/images/gohper.png | Bin 61765 -> 0 bytes 133 files changed, 1432 insertions(+), 1557 deletions(-) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 archetypes/default.md create mode 100644 archetypes/portfolio.md create mode 100644 archetypes/post.md create mode 100644 assets/sass/_mixins.sass create mode 100644 assets/sass/_variables.sass create mode 100644 assets/sass/custom.sass create mode 100644 assets/sass/scaffold.sass create mode 100644 assets/syntax.css delete mode 100644 config.toml delete mode 100644 content/_index.md delete mode 100644 content/about.md delete mode 100644 content/portfolio/sample-project/index.md delete mode 100644 content/portfolio/sample-project/john.jpg delete mode 100644 content/portfolio/sample-project/sample.jpg delete mode 100644 content/post/_index.md delete mode 100644 content/post/archetypes.md delete mode 100644 content/post/config-file.md delete mode 100644 content/post/define-specific-og-image.md delete mode 100644 content/post/getting-started.md delete mode 100644 content/post/images/portfolio-example.png delete mode 100644 content/post/images/sample_image.jpg delete mode 100644 content/post/manage-your-menu.md delete mode 100644 content/post/portfolio-definition.md delete mode 100644 content/post/shortcodes.md create mode 100644 exampleSite/content/_index.md create mode 100644 exampleSite/content/about.md create mode 100644 exampleSite/content/portfolio/_index.md create mode 100644 exampleSite/content/portfolio/sample-project/index.md create mode 100644 exampleSite/content/portfolio/sample-project/john.jpg create mode 100644 exampleSite/content/portfolio/sample-project/sample.jpg create mode 100644 exampleSite/content/post/archetypes.md create mode 100644 exampleSite/content/post/config-file.md delete mode 100644 exampleSite/content/post/config_file.md create mode 100644 exampleSite/content/post/define-specific-og-image.md create mode 100644 exampleSite/content/post/getting-started.md create mode 100644 exampleSite/content/post/images/portfolio-example.png create mode 100644 exampleSite/content/post/images/sample_image.jpg create mode 100644 exampleSite/content/post/manage-your-menu.md create mode 100644 exampleSite/content/post/portfolio-definition.md create mode 100644 exampleSite/static/images/gopher.png create mode 100644 exampleSite/static/images/sample.jpg create mode 100644 layouts/404.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/li.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/designs/list.html create mode 100644 layouts/designs/terms.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/breadcrumb.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head/head.html create mode 100644 layouts/partials/head/meta.html create mode 100644 layouts/partials/head/style.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/portfolio/item.html create mode 100644 layouts/partials/portfolio/tags.html create mode 100644 layouts/partials/portfolio/testimonial.html create mode 100644 layouts/partials/post/information.html create mode 100644 layouts/partials/post/item.html create mode 100644 layouts/partials/sidebar/menu.html create mode 100644 layouts/partials/sidebar/sidebar.html create mode 100644 layouts/partials/sidebar/social.html create mode 100644 layouts/partials/sidebar/style.html create mode 100644 layouts/partials/svg.html create mode 100644 layouts/portfolio/list.html create mode 100644 layouts/portfolio/single.html create mode 100644 layouts/post/list.html create mode 100644 layouts/post/single.html create mode 100644 layouts/robots.txt create mode 100644 layouts/shortcodes/emoji.html create mode 100644 layouts/shortcodes/tweet-single.html create mode 100644 layouts/techs/list.html create mode 100644 layouts/techs/terms.html create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 static/images/default-sidebar.jpg create mode 100644 static/images/edna-west.jpg create mode 100644 static/images/gohper.png delete mode 100644 static/images/sample.jpg delete mode 100644 themes/LICENSE delete mode 100644 themes/README.md delete mode 100644 themes/archetypes/default.md delete mode 100644 themes/archetypes/portfolio.md delete mode 100644 themes/archetypes/post.md delete mode 100644 themes/assets/sass/_mixins.sass delete mode 100644 themes/assets/sass/_variables.sass delete mode 100644 themes/assets/sass/custom.sass delete mode 100644 themes/assets/sass/scaffold.sass delete mode 100644 themes/assets/syntax.css delete mode 100644 themes/layouts/404.html delete mode 100644 themes/layouts/_default/baseof.html delete mode 100644 themes/layouts/_default/li.html delete mode 100644 themes/layouts/_default/list.html delete mode 100644 themes/layouts/_default/single.html delete mode 100644 themes/layouts/designs/list.html delete mode 100644 themes/layouts/designs/terms.html delete mode 100644 themes/layouts/index.html delete mode 100644 themes/layouts/partials/breadcrumb.html delete mode 100644 themes/layouts/partials/footer.html delete mode 100644 themes/layouts/partials/head/head.html delete mode 100644 themes/layouts/partials/head/meta.html delete mode 100644 themes/layouts/partials/head/style.html delete mode 100644 themes/layouts/partials/header.html delete mode 100644 themes/layouts/partials/portfolio/item.html delete mode 100644 themes/layouts/partials/portfolio/tags.html delete mode 100644 themes/layouts/partials/portfolio/testimonial.html delete mode 100644 themes/layouts/partials/post/information.html delete mode 100644 themes/layouts/partials/post/item.html delete mode 100644 themes/layouts/partials/sidebar/menu.html delete mode 100644 themes/layouts/partials/sidebar/sidebar.html delete mode 100644 themes/layouts/partials/sidebar/social.html delete mode 100644 themes/layouts/partials/sidebar/style.html delete mode 100644 themes/layouts/partials/svg.html delete mode 100644 themes/layouts/portfolio/list.html delete mode 100644 themes/layouts/portfolio/single.html delete mode 100644 themes/layouts/post/list.html delete mode 100644 themes/layouts/post/single.html delete mode 100644 themes/layouts/robots.txt delete mode 100644 themes/layouts/shortcodes/emoji.html delete mode 100644 themes/layouts/shortcodes/tweet-single.html delete mode 100644 themes/layouts/techs/list.html delete mode 100644 themes/layouts/techs/terms.html delete mode 100644 themes/package-lock.json delete mode 100644 themes/package.json delete mode 100644 themes/static/images/default-sidebar.jpg delete mode 100644 themes/static/images/edna-west.jpg delete mode 100644 themes/static/images/gohper.png diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c3e1456 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2019 Baptiste Jacquemet + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..fca36c5 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Personal Web + +Personal Web is a simple Hugo template to build a personal website including portfolio and blog sections. It will mainly suit freelancers who want to showcase their work. diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..1151933 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: "{{ .Date }}" +description: +--- diff --git a/archetypes/portfolio.md b/archetypes/portfolio.md new file mode 100644 index 0000000..44fc903 --- /dev/null +++ b/archetypes/portfolio.md @@ -0,0 +1,16 @@ +--- +title: +description: +date: "{{ .Date }}" +jobDate: 201 +work: [] +techs: [] +designs: [] +thumbnail: +projectUrl: +testimonial: + name: + role: + image: + text: +--- \ No newline at end of file diff --git a/archetypes/post.md b/archetypes/post.md new file mode 100644 index 0000000..0cb07c1 --- /dev/null +++ b/archetypes/post.md @@ -0,0 +1,6 @@ +--- +title: +description: +date: "{{ .Date }}" +publishDate: "{{ .Date }}" +--- diff --git a/assets/sass/_mixins.sass b/assets/sass/_mixins.sass new file mode 100644 index 0000000..a5d575c --- /dev/null +++ b/assets/sass/_mixins.sass @@ -0,0 +1,29 @@ +=transform($property) + -webkit-transform: $property + -ms-transform: $property + transform: $property + +=transition($transition) + -webkit-transition: $transition + -moz-transition: $transition + -ms-transition: $transition + -o-transition: $transition + transition: $transition + +// MEDIA QUERIES +=smartphone + @media (max-width: #{$tablet-width - 1px}) + @content + +=tablet + @media (min-width: #{$tablet-width}) and (max-width: #{$desktop-width - 1px}) + @content + +=desktop + @media (min-width: #{$desktop-width}) + @content + +=rounded + width: 150px + height: 150px + border-radius: 50% \ No newline at end of file diff --git a/assets/sass/_variables.sass b/assets/sass/_variables.sass new file mode 100644 index 0000000..c3deae8 --- /dev/null +++ b/assets/sass/_variables.sass @@ -0,0 +1,55 @@ +$primary-color: #F6EB0F +$secondary-color: #FD3519 +$dark-blue: #112F41 + +$grey-900: hsl(210, 15%, 25%) // #364049 +$grey-800: hsl(210, 15%, 28%) // #3D4752 +$grey-700: hsl(210, 15%, 43%) // #5D6E7E +$grey-600: hsl(210, 15%, 58%) // #8494A4 +$grey-500: hsl(210, 15%, 76%) // #B9C2CB +$grey-400: hsl(210, 15%, 88%) // #DCE0E5 +$grey-300: hsl(210, 15%, 93%) // #EAEDF0 +$grey-200: hsl(210, 15%, 96%) // #F3F5F6 +$grey-100: hsl(210, 15%, 99%) // #FCFCFD + +$font-family_header: "Montserrat", "Helvetica Neue", sans-serif +$letter-spacing_header: 0.02em +$font-family_main: "Raleway", "Helvetica Neue", sans-serif +$line-height_main: 1.5em +$line-height_main_mobile: 1.7em +$line-height_menu: 1.9em +$line-height_h: 1.5em + +$sidebar-width: 30% +$content-width: 70% +$sidebar-width-tablet: 40% +$content-width-tablet: 60% +$padding-content: 35px 45px +$padding-content_mobile: 0px 45px 35px + +$margin-blocks: 30px + +$font-size_small: 13px +$font-size_medium: 14px +$font-size_main: 16px +$font-size_main_large: 18px +$font-size_h4: 20px +$font-size_h3: 24px +$font-size_h2: 30px +$font-size_h1: 36px +$font-size_h0: 48px + +$font-weight_main: 400 +$font-weight_h1: 600 +$font-weight_h2: 600 +$font-weight_h3: 500 +$font-weight_h4: 500 + +$footer-background-color: $dark-blue + +$box-shadow: 0 0 5px $dark-blue +$max-width-content: 35em + +// Media Query sizes +$tablet-width: 768px +$desktop-width: 1024px diff --git a/assets/sass/custom.sass b/assets/sass/custom.sass new file mode 100644 index 0000000..48f2b8d --- /dev/null +++ b/assets/sass/custom.sass @@ -0,0 +1,188 @@ +.small + font-size: $font-size_small + +.active + font-weight: 500 + + +#content, header + .icon + margin-right: 5px + display: inline-block + svg + width: auto + +header + .icon + fill: white + margin-right: 10px +#content + .icon + fill: $dark-blue + +#content:not(.portfolio) + img + width: 110% + display: block + margin: 0 -5% + + +.published-date, .reading-time + display: inline-block + margin-bottom: 20px + +.reading-time + margin-right: 20px + +.img-caption + margin-bottom: $margin-blocks/6 !important + +.portfolio + img + max-width: 100% + margin-bottom: $margin-blocks + box-shadow: $box-shadow + + .rounded-img + +rounded + + .testimonial-list + margin: 0 auto + display: flex + + .testimonial-container + display: inline-block + text-align: center + + .testimonial-name, .testimonial-role + text-align: center + font-weight: $font-weight_h1 + font-size: $font-size_main_large + margin-top: -2/3*$margin-blocks + .testimonial-role + font-weight: $font-weight_main + + .testimonial-text + position: relative + z-index: 0 + + + .portfolio-tags + margin-top: $margin-blocks/5 + span + font-weight: $font-weight_h1 + a + overflow-wrap: break-word + .tags + margin-bottom: $margin-blocks/3 + +#content + .portfolio-list + h2 + margin: 0 + + a, a:hover, a:link, a:active, a:visited, a:focus + border-bottom: none + color: inherit + + img + max-width: 100% + border-radius: 2px + display: block + box-shadow: $box-shadow + margin: inherit + + .portfolio-container + position: relative + max-width: $max-width-content + margin-bottom: $margin-blocks + + .portfolio-details + opacity: 0 + display: none + width: 100% + padding: 2em 1em + color: $primary-color + +transition(opacity 0.4s ease) + + p, h2 + text-align: center + margin-bottom: 0 + position: relative + + + .img-overlay + position: absolute + top: 0 + bottom: 0 + left: 0 + right: 0 + height: 100% + width: 100% + opacity: 0 + +transition(0.4s ease) + background-color: $dark-blue + + &:hover + .img-overlay + opacity: 0.7 + + .portfolio-details + opacity: 1 + display: block + position: absolute + top: 50% + left: 50% + +transform(translate(-50%, -50%)) + + img::hover + linear-gradient: $dark-blue, $dark-blue + + .portfolio-container + +smartphone + img + margin-bottom: 0 + + .img-overlay + display: none + + .portfolio-details + display: block + opacity: 1 + width: 100% + padding: 0px + color: $grey-900 + + h2 + font-size: $font-size_h3 + line-height: $line-height_main + + span + background-image: linear-gradient(180deg, transparent 60%, $primary-color 0) + padding: 0 0.2em + + p, h2 + text-align: center + margin-bottom: 0 + position: relative + + &:hover + .portfolio-details + +transform(none) + position: relative + left: 0 + + +.designs, .techs + display: inline-block + +.designs + margin-right: 20px + +.read-more + margin-top: -$margin-blocks/3 + text-align: right + display: block + +.chroma + padding: 10px \ No newline at end of file diff --git a/assets/sass/scaffold.sass b/assets/sass/scaffold.sass new file mode 100644 index 0000000..b061886 --- /dev/null +++ b/assets/sass/scaffold.sass @@ -0,0 +1,246 @@ +@import 'variables' +@import 'mixins' + +* + box-sizing: border-box + +html + background-color: $primary-color + +body + background-color: white + margin: 0 + min-height: 100% + font-family: $font-family_main + color: $dark-blue + font-size: $font-size_main + + +smartphone + line-height: $line-height_main_mobile + +ul + margin-top: -$margin-blocks/2 + +li + line-height: $line-height_main + +p::selection + background-color: $grey-300 + color: $grey-900 + +p + display: block + font-weight: $font-weight_main + font-size: 1em + margin-top: 0 + margin-bottom: $margin-blocks/2 + line-height: $line-height_main + text-align: justify + +h1, h2, h3, h4, h5 + font-family: $font-family_header + letter-spacing: $letter-spacing_header + margin-bottom: $margin-blocks/3 + margin-top: $margin-blocks + line-height: $line-height_h + +h1 + font-size: $font-size_h1 + font-weight: $font-weight_h1 +h2 + font-size: $font-size_h2 + font-weight: $font-weight_h2 +h3 + font-size: $font-size_h3 + font-weight: $font-weight_h3 +h4 + font-size: $font-size_h4 + font-weight: $font-weight_h4 + +blockquote + margin: 0 $margin-blocks/6 + font-size: 1em + line-height: $line-height_main + text-align: justify + font-style: italic + &:before + font-family: Georgia, serif + content: '\201C' + position: absolute + top: 0.15em + left: -0.18em + color: $grey-400 + font-size: 7em + z-index: -1 + font-style: italic + +header, #content + height: 100% + +figure + margin: 0 + img + margin-bottom: $margin-blocks/5 !important + figcaption + p + font-size: $font-size_medium + text-align: center + +header + width: $sidebar-width + background-size: cover + background-position: top center + position: fixed + color: $grey-100 + + h2 + font-size: $font-size_h1 + font-weight: $font-weight_h1 + + .menu + text-align: left + p + margin-bottom: 0px + + .socials + padding: $padding-content + bottom: 0px + position: fixed + border: 0 + + .social-link a, a:visited, a:focus, a:active + svg + fill: white + + .social-link a:focus, a:active, a:hover + svg + +transition(fill 0.7s) + fill: $grey-500 + + a, a:link, a:visited + color: white + border-bottom: 0 + font-weight: $font-weight_main + +transition(all 0.25s) + line-height: $line-height_menu + &:not(.social-link) + border-bottom: $grey-100 1px dashed + + a:hover, a:focus, a:active + font-weight: $font-weight_h1 + color: $secondary-color + &:not(.social-link) + border-bottom: $grey-100 1px dashed + + .intro + padding: $padding-content + position: absolute + bottom: 100px + + .rounded-logo + +rounded + margin-bottom: 4/3*$margin-blocks + display: block + box-shadow: $box-shadow + + +tablet + width: $sidebar-width-tablet + + +smartphone + position: relative + width: 100% + background: $dark-blue !important + display: block + height: auto + p + padding-top: $margin-blocks/3 + + .socials + padding: $padding-content_mobile + position: relative + + .rounded-logo + text-align: center + margin: 0 auto + + .intro + bottom: inherit + display: block + position: relative + +#content, .breadcrumb + max-width: $max-width-content + margin: 0 auto + display: block + +a + line-height: $line-height_main+0.1 + +a, a:visited, a:link + text-decoration: none + color: inherit + font-weight: 600 + border-bottom: $grey-600 1px dashed + padding-bottom: 1px + +transition(all 0.2s) + svg + fill: inherit + +transition(all 0.2s) + +a:hover, a:focus, a:active + color: $secondary-color + text-decoration: none + font-weight: 600 + border-bottom: $grey-600 1px dashed + padding-bottom: 1px + svg + fill: $secondary-color + +.content-wrapper + padding: $padding-content + position: static + width: $content-width + margin-left: $sidebar-width + float: none + clear: none + display: block + min-height: 88vh + + +tablet + width: $content-width-tablet + margin-left: $sidebar-width-tablet + + +smartphone + position: relative + width: 100% + margin-left: 0 + +footer + position: absolute + width: $content-width + left: $sidebar-width + background-color: $footer-background-color + color: $grey-100 + padding: $padding-content + + .footer-wrapper + max-width: $max-width-content + margin: 0 auto + display: block + + +tablet + width: $content-width-tablet + left: $sidebar-width-tablet + + +smartphone + position: relative + width: 100% + left: 0px + + p + margin-bottom: 0 + +img.gopher + margin: 0 auto $margin-blocks !important + max-width: 200px + diff --git a/assets/syntax.css b/assets/syntax.css new file mode 100644 index 0000000..681758d --- /dev/null +++ b/assets/syntax.css @@ -0,0 +1,59 @@ +/* Background */ .chroma { color: #f8f8f2; background-color: #272822 } +/* Error */ .chroma .err { color: #960050; background-color: #1e0010 } +/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } +/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } +/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } +/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; } +/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; } +/* Keyword */ .chroma .k { color: #66d9ef } +/* KeywordConstant */ .chroma .kc { color: #66d9ef } +/* KeywordDeclaration */ .chroma .kd { color: #66d9ef } +/* KeywordNamespace */ .chroma .kn { color: #f92672 } +/* KeywordPseudo */ .chroma .kp { color: #66d9ef } +/* KeywordReserved */ .chroma .kr { color: #66d9ef } +/* KeywordType */ .chroma .kt { color: #66d9ef } +/* NameAttribute */ .chroma .na { color: #a6e22e } +/* NameClass */ .chroma .nc { color: #a6e22e } +/* NameConstant */ .chroma .no { color: #66d9ef } +/* NameDecorator */ .chroma .nd { color: #a6e22e } +/* NameException */ .chroma .ne { color: #a6e22e } +/* NameFunction */ .chroma .nf { color: #a6e22e } +/* NameOther */ .chroma .nx { color: #a6e22e } +/* NameTag */ .chroma .nt { color: #f92672 } +/* Literal */ .chroma .l { color: #ae81ff } +/* LiteralDate */ .chroma .ld { color: #e6db74 } +/* LiteralString */ .chroma .s { color: #e6db74 } +/* LiteralStringAffix */ .chroma .sa { color: #e6db74 } +/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 } +/* LiteralStringChar */ .chroma .sc { color: #e6db74 } +/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 } +/* LiteralStringDoc */ .chroma .sd { color: #e6db74 } +/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 } +/* LiteralStringEscape */ .chroma .se { color: #ae81ff } +/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 } +/* LiteralStringInterpol */ .chroma .si { color: #e6db74 } +/* LiteralStringOther */ .chroma .sx { color: #e6db74 } +/* LiteralStringRegex */ .chroma .sr { color: #e6db74 } +/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 } +/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 } +/* LiteralNumber */ .chroma .m { color: #ae81ff } +/* LiteralNumberBin */ .chroma .mb { color: #ae81ff } +/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff } +/* LiteralNumberHex */ .chroma .mh { color: #ae81ff } +/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff } +/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff } +/* LiteralNumberOct */ .chroma .mo { color: #ae81ff } +/* Operator */ .chroma .o { color: #f92672 } +/* OperatorWord */ .chroma .ow { color: #f92672 } +/* Comment */ .chroma .c { color: #75715e } +/* CommentHashbang */ .chroma .ch { color: #75715e } +/* CommentMultiline */ .chroma .cm { color: #75715e } +/* CommentSingle */ .chroma .c1 { color: #75715e } +/* CommentSpecial */ .chroma .cs { color: #75715e } +/* CommentPreproc */ .chroma .cp { color: #75715e } +/* CommentPreprocFile */ .chroma .cpf { color: #75715e } +/* GenericDeleted */ .chroma .gd { color: #f92672 } +/* GenericEmph */ .chroma .ge { font-style: italic } +/* GenericInserted */ .chroma .gi { color: #a6e22e } +/* GenericStrong */ .chroma .gs { font-weight: bold } +/* GenericSubheading */ .chroma .gu { color: #75715e } diff --git a/config.toml b/config.toml deleted file mode 100644 index fc7f912..0000000 --- a/config.toml +++ /dev/null @@ -1,94 +0,0 @@ -baseURL = "https://example.com/" -languageCode = "en-us" -title = "Edna West" -theme = "" -copyright="© Edna West" -googleAnalytics = "" -enableEmoji=true -enableRobotsTXT=true -pygmentsUseClasses=true -pygmentsCodeFences=true - -[params.intro] - main = "Hi, I'm Edna :wave:" - sub = "I'm a Web Developer and Entrepreneur" - -[taxonomies] - design = "designs" - tech = "techs" - -[blackfriday] - hrefTargetBlank = true - -[params] - breadcrumb = true - accentColor = "#FD3519" - -[params.notFound] - gopher = "/images/gopher.png" # checkout https://gopherize.me/ - h1 = 'Bummer!' - p = "It seems that this page doesn't exist." - mainSection = 'portfolio' # values: [post, portfolio] only accept one section, to be displayed bellow 404 - -[params.sections] - # Define how your sections will be called - # when automatically pulled. For instance in the 404 page - post = "article" - portfolio = "project" - -[params.sidebar] - backgroundImage = '' # header background image - default "/images/default_sidebar.jpg" - Photo by Tim Marshall on Unsplash - gradientOverlay = '' # default: rgba(0,0,0,0.4),rgba(0,0,0,0.4) - logo = "" # - default "/images/edna-west.jpg" -[params.assets] - favicon = "" - customCSS = "" - -[params.social] - github = "https://github.com/" - twitter = "https://twitter.com/" - linkedin = "https://www.linkedin.com/in/" - -[params.contact] - email = "" - text= "" # text of the contact link in the sidebar. If email params.contact.email is defined - - -[menu] - -[[menu.main]] - identifier = "about" - name = "About" - title = "About section" - url = "/about/" - weight = -120 - -[[menu.main]] - identifier = "portfolio" - name = "Portfolio" - title = "Portfolio" - url = "/portfolio/" - weight = -110 - -[[menu.main]] - identifier = "blog" - name = "Post" - title = "Blog section" - url = "/post/" - weight = -100 - -[sitemap] - changefreq = "monthly" - filename = "sitemap.xml" - priority = 0.5 - -[privacy] - [privacy.googleAnalytics] - anonymizeIP = true - disable = true - respectDoNotTrack = true - useSessionStorage = false - [privacy.twitter] - disable = false - enableDNT = true - simple = false \ No newline at end of file diff --git a/content/_index.md b/content/_index.md deleted file mode 100644 index 9fd0aa2..0000000 --- a/content/_index.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: HOME -description: Welcome to this sample project -images: ["/images/sample.jpg"] ---- - -Hey, - -I'm Edna West, a Web Developer and Entrepreneur. - -Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus error cumque quisquam necessitatibus libero dolore porro, quo at molestiae modi voluptatibus iusto alias corporis. Accusamus, debitis, atque. Maiores, distinctio, neque. - -[Get to know me better](/about "Get to know me better") \ No newline at end of file diff --git a/content/about.md b/content/about.md deleted file mode 100644 index 76fb758..0000000 --- a/content/about.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: ABOUT -description: Hey, I'm Edna West -images: ["/images/sample.jpg"] ---- - - -This is my about page. :wave: - -Lorem ipsum dolor sit amet, :smile: consectetur adipisicing elit. Voluptates aut, tenetur distinctio voluptatibus ab. Nihil id dignissimos unde, tenetur iusto facilis suscipit corporis, ipsam necessitatibus, eaque iste deleniti consequuntur reprehenderit? :earth_africa: \ No newline at end of file diff --git a/content/portfolio/sample-project/index.md b/content/portfolio/sample-project/index.md deleted file mode 100644 index 0b1fb42..0000000 --- a/content/portfolio/sample-project/index.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: Sample project -description: This is the description of our sample project -date: "2019-05-02T19:47:09+02:00" -jobDate: 2019 -work: [design, architecture] -techs: [javascript, D3] -designs: [Photoshop] -thumbnail: sample-project/sample.jpg -projectUrl: https://www.sampleorganization.org -testimonial: - name: John Doe - role: CEO @Example - image: sample-project/john.jpg - text: Prow scuttle parrel provost Sail ho shrouds spirits boom mizzenmast yardarm. Pinnace holystone mizzenmast quarter crow's nest nipperkin ---- - -This would be a description of your sample project. You can add any content you'd like. - -Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod -tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, -quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo -consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse -cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non -proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \ No newline at end of file diff --git a/content/portfolio/sample-project/john.jpg b/content/portfolio/sample-project/john.jpg deleted file mode 100644 index a6a39bf..0000000 Binary files a/content/portfolio/sample-project/john.jpg and /dev/null differ diff --git a/content/portfolio/sample-project/sample.jpg b/content/portfolio/sample-project/sample.jpg deleted file mode 100644 index 928d3f5..0000000 Binary files a/content/portfolio/sample-project/sample.jpg and /dev/null differ diff --git a/content/post/_index.md b/content/post/_index.md deleted file mode 100644 index ed1dc5f..0000000 --- a/content/post/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: POST -description: 'Posts Section' ---- - -You'll add here a general introduction of your posts. \ No newline at end of file diff --git a/content/post/archetypes.md b/content/post/archetypes.md deleted file mode 100644 index e5f3a57..0000000 --- a/content/post/archetypes.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: Archetypes management -description: How the Archetypes are defined -date: "2019-05-02T19:25:30+02:00" -publishDate: "2019-05-02T19:25:30+02:00" ---- - -The archetypes are defined in the `archetypes` folder, for both post and portfolio. - -The archetypes are defined in YAML, so Front matter is formatted in YAML too. You can easily change them to TOML in your own `archetypes` is you wish to. - -For example: - -```YAML ---- -title: title -description: desc -date: "2019-05-02T19:47:09+02:00" ---- -``` - -to - -```TOML -+++ -title = "title" -description: "desc" -date: "2019-05-02T19:47:09+02:00" -+++ -``` \ No newline at end of file diff --git a/content/post/config-file.md b/content/post/config-file.md deleted file mode 100644 index 1c5de24..0000000 --- a/content/post/config-file.md +++ /dev/null @@ -1,107 +0,0 @@ ---- -title: "Config File" -date: 2019-04-20T16:18:12+01:00 -publishDate: 2019-04-20T19:12:12+01:00 ---- - -Here is the basic config file used for personal_web. - -You can use it as a base for your website. - - - -```TOML -baseURL = "https://example.com/" -languageCode = "en-us" -title = "Edna West" -theme = "personal_web" -copyright="© Edna West" -googleAnalytics = "" -enableEmoji=true -enableRobotsTXT=true -pygmentsUseClasses=true -pygmentsCodeFences=true - -[params.intro] - main = "Hi, I'm Edna :wave:" - sub = "I'm a Web Developer and Entrepreneur" - -[taxonomies] - design = "designs" - tech = "techs" - -[blackfriday] - hrefTargetBlank = true - -[params] - breadcrumb = true - accentColor = "#FD3519" - -[params.notFound] - gopher = "/images/gopher.png" - h1 = 'Bummer!' - p = "It seems that this page doesn't exist." - mainSection = 'portfolio' - -[params.sections] - post = "article" - portfolio = "project" - -[params.sidebar] - backgroundImage = '' - gradientOverlay = '' - logo = "" -[params.assets] - favicon = "" - customCSS = "" - -[params.social] - github = "https://github.com/" - twitter = "https://twitter.com/" - linkedin = "https://www.linkedin.com/in/" - -[params.contact] - email = "" - text= "" - - -[menu] - -[[menu.main]] - identifier = "about" - name = "About" - title = "About section" - url = "/about/" - weight = -120 - -[[menu.main]] - identifier = "portfolio" - name = "Portfolio" - title = "Portfolio" - url = "/portfolio/" - weight = -110 - -[[menu.main]] - identifier = "blog" - name = "Post" - title = "Blog section" - url = "/post/" - weight = -100 - -[sitemap] - changefreq = "monthly" - filename = "sitemap.xml" - priority = 0.5 - -[privacy] - [privacy.googleAnalytics] - anonymizeIP = true - disable = true - respectDoNotTrack = true - useSessionStorage = false - [privacy.twitter] - disable = false - enableDNT = true - simple = false - -``` \ No newline at end of file diff --git a/content/post/define-specific-og-image.md b/content/post/define-specific-og-image.md deleted file mode 100644 index 0b03312..0000000 --- a/content/post/define-specific-og-image.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: Open Graph image -description: Define a specific Open Graph image for a page -date: "2019-04-20T11:14:59+02:00" -publishDate: "2019-04-20T11:14:59+02:00" ---- - -Within any page, you can add in the FrontMatter a images array that will be used to define a specific Open Graph image. - -For example, see `content/_index.md` page: -```YAML -images: ["/images/sample.jpg"] -``` \ No newline at end of file diff --git a/content/post/getting-started.md b/content/post/getting-started.md deleted file mode 100644 index afb1371..0000000 --- a/content/post/getting-started.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: -description: -date: "2019-05-03T09:37:55+02:00" -publishDate: "2019-05-03T09:37:55+02:00" ---- - - - -- copy content from exampleSite for structure -- create config file from sample -- write home -- create project -- create first blog post -- define menu diff --git a/content/post/images/portfolio-example.png b/content/post/images/portfolio-example.png deleted file mode 100644 index e6e24e1..0000000 Binary files a/content/post/images/portfolio-example.png and /dev/null differ diff --git a/content/post/images/sample_image.jpg b/content/post/images/sample_image.jpg deleted file mode 100644 index a3475cd..0000000 Binary files a/content/post/images/sample_image.jpg and /dev/null differ diff --git a/content/post/manage-your-menu.md b/content/post/manage-your-menu.md deleted file mode 100644 index 5a11a8e..0000000 --- a/content/post/manage-your-menu.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -title: "Manage Your Menu" -date: 2019-05-02T19:06:29+02:00 -draft: true ---- - -Menu in the sidebar can be defined within the `config.toml` or directly in the files. -I prefer the config file approach, as this menu is pretty simple. - - - -The following setup will define 3 URLs in your sidebar menu, in order of weight. - -```TOML -[menu] - -[[menu.main]] - identifier = "about" - name = "About" - title = "About section" - url = "/about/" - weight = -120 - -[[menu.main]] - identifier = "portfolio" - name = "Portfolio" - title = "Portfolio" - url = "/portfolio/" - weight = -110 - -[[menu.main]] - identifier = "blog" - name = "Post" - title = "Blog section" - url = "/post/" - weight = -100 - -``` \ No newline at end of file diff --git a/content/post/portfolio-definition.md b/content/post/portfolio-definition.md deleted file mode 100644 index bea8e90..0000000 --- a/content/post/portfolio-definition.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: Portfolio Definition -description: How to define your portfolio in FrontMatter -date: "2019-05-02T19:49:05+02:00" -publishDate: "2019-05-02T19:49:05+02:00" ---- - -A portfolio - -{{< figure src="/post/images/portfolio-example.png" caption="Exaxmple of Portfolio page" >}} - - - -```YAML ---- -title: -description: -date: "2019-05-02T19:47:09+02:00" -jobDate: 201 -work: [] -techs: [] -designs: [] -thumbnail: -projectUrl: -testimonial: - name: - role: - image: - text: ---- -``` \ No newline at end of file diff --git a/content/post/shortcodes.md b/content/post/shortcodes.md deleted file mode 100644 index 5629ec1..0000000 --- a/content/post/shortcodes.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: Shortcodes -date: 2019-04-29T16:18:12+01:00 -publishDate: 2019-04-29T19:12:12+01:00 ---- - -Introduction of the shortcodes defined in the personal_web theme. - - - -## Add a figure -{{}} - -results in - -{{< figure src="/post/images/sample_image.jpg" caption="Photo by Tim Mossholder on Unsplash" >}} - -**Note:** files are kept in a `images` folder, directly in the post/portfolio folder. - - -## Add a single Tweet -{{}} - -results in -{{< tweet-single 1120412132036706305 >}} - -This shortcode is useful in case of multiple tweets in a thread. If you want to show a single tweet, use this shortcode, with the ID of the Tweet. The ID is the end of the tweet link. - -For example: \ -https://twitter.com/BarackObama/status/**1120412132036706305** diff --git a/exampleSite/config.toml b/exampleSite/config.toml index bf5d98a..1623d24 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -6,6 +6,8 @@ copyright="© Edna West" googleAnalytics = "" enableEmoji=true enableRobotsTXT=true +pygmentsUseClasses=true +pygmentsCodeFences=true [params.intro] main = "Hi, I'm Edna :wave:" @@ -43,9 +45,9 @@ enableRobotsTXT=true customCSS = "" [params.social] - github = "https://github.com/bjacquemet" - twitter = "https://twitter.com/jacquemetb" - linkedin = "https://www.linkedin.com/in/baptistej" + github = "https://github.com/" + twitter = "https://twitter.com/" + linkedin = "https://www.linkedin.com/in/" [params.contact] email = "" diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md new file mode 100644 index 0000000..9fd0aa2 --- /dev/null +++ b/exampleSite/content/_index.md @@ -0,0 +1,13 @@ +--- +title: HOME +description: Welcome to this sample project +images: ["/images/sample.jpg"] +--- + +Hey, + +I'm Edna West, a Web Developer and Entrepreneur. + +Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus error cumque quisquam necessitatibus libero dolore porro, quo at molestiae modi voluptatibus iusto alias corporis. Accusamus, debitis, atque. Maiores, distinctio, neque. + +[Get to know me better](/about "Get to know me better") \ No newline at end of file diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md new file mode 100644 index 0000000..76fb758 --- /dev/null +++ b/exampleSite/content/about.md @@ -0,0 +1,10 @@ +--- +title: ABOUT +description: Hey, I'm Edna West +images: ["/images/sample.jpg"] +--- + + +This is my about page. :wave: + +Lorem ipsum dolor sit amet, :smile: consectetur adipisicing elit. Voluptates aut, tenetur distinctio voluptatibus ab. Nihil id dignissimos unde, tenetur iusto facilis suscipit corporis, ipsam necessitatibus, eaque iste deleniti consequuntur reprehenderit? :earth_africa: \ No newline at end of file diff --git a/exampleSite/content/portfolio/_index.md b/exampleSite/content/portfolio/_index.md new file mode 100644 index 0000000..ac007cc --- /dev/null +++ b/exampleSite/content/portfolio/_index.md @@ -0,0 +1,6 @@ +--- +title: PORTFOLIO +description: 'Portfolio Section' +--- + +You'll add here a general introduction of your portfolio page. \ No newline at end of file diff --git a/exampleSite/content/portfolio/sample-project/index.md b/exampleSite/content/portfolio/sample-project/index.md new file mode 100644 index 0000000..0b1fb42 --- /dev/null +++ b/exampleSite/content/portfolio/sample-project/index.md @@ -0,0 +1,25 @@ +--- +title: Sample project +description: This is the description of our sample project +date: "2019-05-02T19:47:09+02:00" +jobDate: 2019 +work: [design, architecture] +techs: [javascript, D3] +designs: [Photoshop] +thumbnail: sample-project/sample.jpg +projectUrl: https://www.sampleorganization.org +testimonial: + name: John Doe + role: CEO @Example + image: sample-project/john.jpg + text: Prow scuttle parrel provost Sail ho shrouds spirits boom mizzenmast yardarm. Pinnace holystone mizzenmast quarter crow's nest nipperkin +--- + +This would be a description of your sample project. You can add any content you'd like. + +Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod +tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, +quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo +consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse +cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non +proident, sunt in culpa qui officia deserunt mollit anim id est laborum. \ No newline at end of file diff --git a/exampleSite/content/portfolio/sample-project/john.jpg b/exampleSite/content/portfolio/sample-project/john.jpg new file mode 100644 index 0000000..a6a39bf Binary files /dev/null and b/exampleSite/content/portfolio/sample-project/john.jpg differ diff --git a/exampleSite/content/portfolio/sample-project/sample.jpg b/exampleSite/content/portfolio/sample-project/sample.jpg new file mode 100644 index 0000000..928d3f5 Binary files /dev/null and b/exampleSite/content/portfolio/sample-project/sample.jpg differ diff --git a/exampleSite/content/post/archetypes.md b/exampleSite/content/post/archetypes.md new file mode 100644 index 0000000..e5f3a57 --- /dev/null +++ b/exampleSite/content/post/archetypes.md @@ -0,0 +1,30 @@ +--- +title: Archetypes management +description: How the Archetypes are defined +date: "2019-05-02T19:25:30+02:00" +publishDate: "2019-05-02T19:25:30+02:00" +--- + +The archetypes are defined in the `archetypes` folder, for both post and portfolio. + +The archetypes are defined in YAML, so Front matter is formatted in YAML too. You can easily change them to TOML in your own `archetypes` is you wish to. + +For example: + +```YAML +--- +title: title +description: desc +date: "2019-05-02T19:47:09+02:00" +--- +``` + +to + +```TOML ++++ +title = "title" +description: "desc" +date: "2019-05-02T19:47:09+02:00" ++++ +``` \ No newline at end of file diff --git a/exampleSite/content/post/config-file.md b/exampleSite/content/post/config-file.md new file mode 100644 index 0000000..090d707 --- /dev/null +++ b/exampleSite/content/post/config-file.md @@ -0,0 +1,176 @@ +--- +title: "Config File" +description: Some basics on the configuration of the theme +date: 2019-04-20T16:18:12+01:00 +publishDate: 2019-04-20T19:12:12+01:00 +--- + +Here is the basic config file used for personal_web. + +You can use it as a base for your website. + + + +```TOML +baseURL = "https://example.com/" +languageCode = "en-us" +title = "Edna West" +theme = "personal_web" +copyright="© Edna West" +googleAnalytics = "" +enableEmoji=true +enableRobotsTXT=true +pygmentsUseClasses=true +pygmentsCodeFences=true + +[params.intro] + main = "Hi, I'm Edna :wave:" + sub = "I'm a Web Developer and Entrepreneur" + +[taxonomies] + design = "designs" + tech = "techs" + +[blackfriday] + hrefTargetBlank = true + +[params] + breadcrumb = true + accentColor = "#FD3519" + +[params.notFound] + gopher = "/images/gopher.png" + h1 = 'Bummer!' + p = "It seems that this page doesn't exist." + mainSection = 'portfolio' + +[params.sections] + post = "article" + portfolio = "project" + +[params.sidebar] + backgroundImage = '' + gradientOverlay = '' + logo = "" + +[params.assets] + favicon = "" + customCSS = "" + +[params.social] + github = "https://github.com/" + twitter = "https://twitter.com/" + linkedin = "https://www.linkedin.com/in/" + +[params.contact] + email = "" + text= "" + + +[menu] + +[[menu.main]] + identifier = "about" + name = "About" + title = "About section" + url = "/about/" + weight = -120 + +[[menu.main]] + identifier = "portfolio" + name = "Portfolio" + title = "Portfolio" + url = "/portfolio/" + weight = -110 + +[[menu.main]] + identifier = "blog" + name = "Post" + title = "Blog section" + url = "/post/" + weight = -100 + +[sitemap] + changefreq = "monthly" + filename = "sitemap.xml" + priority = 0.5 + +[privacy] + [privacy.googleAnalytics] + anonymizeIP = true + disable = true + respectDoNotTrack = true + useSessionStorage = false + [privacy.twitter] + disable = false + enableDNT = true + simple = false + +``` + +## Sidebar + +The sidebar header is defined within the `params.intro` section. The `main` being the top header and `sub` the subheader + +```TOML +[params.intro] + main = "Hi, I'm Edna :wave:" + sub = "I'm a Web Developer and Entrepreneur" +``` + +You can also customize the params with the `params.sidebar` parameters. The `config.toml` file contains the default values as examples. +```TOML +[params.sidebar] + backgroundImage = '' + gradientOverlay = '' + logo = '' +``` + +## 404 + +The 404 page is defined within the `params.notFound` section. +The `gopher`, `h1` and `p` params define the image and texts displayed on the page. The `mainSection` params possible values are 'portfolio' or 'post': it defines the section highlighted on the page. + +NB: to see the 404 page from your development env, check `/404.html`. + +```TOML +[params.notFound] + gopher = "/images/gopher.png" + h1 = 'Bummer!' + p = "It seems that this page doesn't exist." + mainSection = 'portfolio' +``` + +You can also define how the post and portfolio sections will be named on the 404 page, thanks to the `params.sections` params. + +```TOML +[params.sections] + post = "article" + portfolio = "project" +``` + +## Customization + +You can define a custom CSS file in the `customCSS` param and a favicon. +```TOML +[params.assets] + favicon = "" + customCSS = "" +``` + +## Social + +You can define your social media usernames in the `params.social` and the `params.contact` paramaters. + +In this last section, the email expects your email address and the text is what will be displayed on the sidebar, right below the last item of the menu. If blank, nothing is displayed. + +```TOML +[params.social] + github = "https://github.com/" + twitter = "https://twitter.com/" + linkedin = "https://www.linkedin.com/in/" + +[params.contact] + email = "" + text= "" +``` \ No newline at end of file diff --git a/exampleSite/content/post/config_file.md b/exampleSite/content/post/config_file.md deleted file mode 100644 index 9fa886a..0000000 --- a/exampleSite/content/post/config_file.md +++ /dev/null @@ -1,100 +0,0 @@ ---- -title: "Config File" -date: 2019-04-20T16:18:12+01:00 -publishDate: 2019-04-20T19:12:12+01:00 ---- - -``` -baseURL = "https://example.com/" -languageCode = "en-us" -title = "Edna West" -theme = "personal_web" -copyright="© Edna West" -googleAnalytics = "" -enableEmoji=true -enableRobotsTXT=true - -[params.intro] - main = "Hi, I'm Edna :wave:" - sub = "I'm a Web Developer and Entrepreneur" - -[taxonomies] - design = "designs" - tech = "techs" - -[blackfriday] - hrefTargetBlank = true - -[params] - breadcrumb = true - accentColor = "#FD3519" - -[params.notFound] - gopher = "/images/gopher.png" # checkout https://gopherize.me/ - h1 = 'Bummer!' - p = "It seems that this page doesn't exist." - mainSection = 'portfolio' # values: [post, portfolio] only accept one section, to be displayed bellow 404 - -[params.sections] - # Define how your sections will be called - # when automatically pulled. For instance in the 404 page - post = "article" - portfolio = "project" - -[params.sidebar] - backgroundImage = '' # header background image - default "/images/default_sidebar.jpg" - Photo by Tim Marshall on Unsplash - gradientOverlay = '' # default: rgba(0,0,0,0.4),rgba(0,0,0,0.4) - logo = "" # - default "/images/edna-west.jpg" -[params.assets] - favicon = "" - customCSS = "" - -[params.social] - github = "https://github.com/bjacquemet" - twitter = "https://twitter.com/jacquemetb" - linkedin = "https://www.linkedin.com/in/baptistej" - -[params.contact] - email = "" - text= "" # text of the contact link in the sidebar. If email params.contact.email is defined - - -[menu] - -[[menu.main]] - identifier = "about" - name = "About" - title = "About section" - url = "/about/" - weight = -120 - -[[menu.main]] - identifier = "portfolio" - name = "Portfolio" - title = "Portfolio" - url = "/portfolio/" - weight = -110 - -[[menu.main]] - identifier = "blog" - name = "Post" - title = "Blog section" - url = "/post/" - weight = -100 - -[sitemap] - changefreq = "monthly" - filename = "sitemap.xml" - priority = 0.5 - -[privacy] - [privacy.googleAnalytics] - anonymizeIP = true - disable = true - respectDoNotTrack = true - useSessionStorage = false - [privacy.twitter] - disable = false - enableDNT = true - simple = false -``` \ No newline at end of file diff --git a/exampleSite/content/post/define-specific-og-image.md b/exampleSite/content/post/define-specific-og-image.md new file mode 100644 index 0000000..0b03312 --- /dev/null +++ b/exampleSite/content/post/define-specific-og-image.md @@ -0,0 +1,13 @@ +--- +title: Open Graph image +description: Define a specific Open Graph image for a page +date: "2019-04-20T11:14:59+02:00" +publishDate: "2019-04-20T11:14:59+02:00" +--- + +Within any page, you can add in the FrontMatter a images array that will be used to define a specific Open Graph image. + +For example, see `content/_index.md` page: +```YAML +images: ["/images/sample.jpg"] +``` \ No newline at end of file diff --git a/exampleSite/content/post/getting-started.md b/exampleSite/content/post/getting-started.md new file mode 100644 index 0000000..6b5c126 --- /dev/null +++ b/exampleSite/content/post/getting-started.md @@ -0,0 +1,18 @@ +--- +title: Getting started +description: Getting started with personal_web +date: "2019-05-03T09:37:55+02:00" +publishDate: "2019-05-03T09:37:55+02:00" +--- + +We'll assume here that you have a good understanding of Hugo and its structure. If you have any doubt, check the (https://gohugo.io/documentation/)[Hugo documentation]; it is pretty good and the community quite active! (thanks so much by the way! :muscle:) + +The first thing to do when starting your own website is to **copy the content of exampleSite** in your own root folder. This way, you can have a sample of `config.toml` file and a first structure. + +Browse the articles in the `content/post` folder to get any help during setup or using the theme. Please, (https://baptistej.com)[contact me] if you have any problem using the them. + +Then **configure the `config.toml` file** to match your need. + +You should then write you home (`/content/_index.md`), create your first project (see `/content/post/portfolio-definition.md`) and your first blogpost. + +Lastly, define the menu in the sidebar; you can get some help in the `/content/post/manage-your-menu.md` file. \ No newline at end of file diff --git a/exampleSite/content/post/images/portfolio-example.png b/exampleSite/content/post/images/portfolio-example.png new file mode 100644 index 0000000..e6e24e1 Binary files /dev/null and b/exampleSite/content/post/images/portfolio-example.png differ diff --git a/exampleSite/content/post/images/sample_image.jpg b/exampleSite/content/post/images/sample_image.jpg new file mode 100644 index 0000000..a3475cd Binary files /dev/null and b/exampleSite/content/post/images/sample_image.jpg differ diff --git a/exampleSite/content/post/manage-your-menu.md b/exampleSite/content/post/manage-your-menu.md new file mode 100644 index 0000000..8bc4bad --- /dev/null +++ b/exampleSite/content/post/manage-your-menu.md @@ -0,0 +1,39 @@ +--- +title: "Manage Your Menu" +description: Define a sidebar menu +date: 2019-05-02T19:06:29+02:00 +draft: true +--- + +Menu in the sidebar can be defined within the `config.toml` or directly in the files. +I prefer the config file approach, as this menu is pretty simple. + + + +The following setup will define 3 URLs in your sidebar menu, in order of weight. + +```TOML +[menu] + +[[menu.main]] + identifier = "about" + name = "About" + title = "About section" + url = "/about/" + weight = -120 + +[[menu.main]] + identifier = "portfolio" + name = "Portfolio" + title = "Portfolio" + url = "/portfolio/" + weight = -110 + +[[menu.main]] + identifier = "blog" + name = "Post" + title = "Blog section" + url = "/post/" + weight = -100 + +``` \ No newline at end of file diff --git a/exampleSite/content/post/portfolio-definition.md b/exampleSite/content/post/portfolio-definition.md new file mode 100644 index 0000000..c7c3dd6 --- /dev/null +++ b/exampleSite/content/post/portfolio-definition.md @@ -0,0 +1,41 @@ +--- +title: Portfolio Definition +description: How to define your portfolio in FrontMatter +date: "2019-05-02T19:49:05+02:00" +publishDate: "2019-05-02T19:49:05+02:00" +--- + +A portfolio + +{{< figure src="/post/images/portfolio-example.png" caption="Example of Portfolio page" >}} + + + +```YAML +--- +title: +description: +date: "2019-05-02T19:47:09+02:00" +jobDate: 201 +work: [] +techs: [] +designs: [] +thumbnail: +projectUrl: +testimonial: + name: + role: + image: + text: +--- +``` + +Here are some explanations about the portfolio FrontMatter: +- `jobDate` is the year displayed on the list and show of your project +- `work` is displayed on the list of projects. It is an array of type of job that you did on the project. +- `techs` and `designs` are displayed on the show page of your project. It is an array of tools you used on the project +- `thumbnail` is a image file displayed both for the list and show of the project +- `projectUrl` is the URL to the project. +- The `testimonial` params define the person giving your a testimonial as well as the text of the testimonial. + +NB: if `techs`, `designs` or `projectUrl` is not defined, it will not be displayed at all. diff --git a/exampleSite/content/post/shortcodes.md b/exampleSite/content/post/shortcodes.md index 9c43147..060f704 100644 --- a/exampleSite/content/post/shortcodes.md +++ b/exampleSite/content/post/shortcodes.md @@ -1,18 +1,31 @@ --- -title: "Shortcodes" -date: 2019-04-19T16:18:12+01:00 -publishDate: 2019-04-19T19:12:12+01:00 +title: Shortcodes +description: Exaplanation on the shortcodes with personal_web +date: 2019-04-29T16:18:12+01:00 +publishDate: 2019-04-29T19:12:12+01:00 --- -Introduction of the shortcodes +Introduction of the shortcodes defined in the personal_web theme. -## Figure -check it -{{< figure src="/post/images/banner_etc.jpg" caption="Will you take the challenge?!">}} +## Add a figure +{{}} +results in -## Tweet Single -{{< tweet-single 1072826999562035200 >}} +{{< figure src="/post/images/sample_image.jpg" caption="Photo by Tim Mossholder on Unsplash" >}} +**Note:** files are kept in a `images` folder, directly in the post/portfolio folder. + + +## Add a single Tweet +{{}} + +results in +{{< tweet-single 1120412132036706305 >}} + +This shortcode is useful in case of multiple tweets in a thread. If you want to show a single tweet, use this shortcode, with the ID of the Tweet. The ID is the end of the tweet link. + +For example: \ +https://twitter.com/BarackObama/status/**1120412132036706305** diff --git a/exampleSite/static/images/gopher.png b/exampleSite/static/images/gopher.png new file mode 100644 index 0000000..4fe5d6f Binary files /dev/null and b/exampleSite/static/images/gopher.png differ diff --git a/exampleSite/static/images/sample.jpg b/exampleSite/static/images/sample.jpg new file mode 100644 index 0000000..928d3f5 Binary files /dev/null and b/exampleSite/static/images/sample.jpg differ diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..ddc4b8e --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,22 @@ +{{ partial "header" .}} + +

{{ .Site.Params.notFound.h1 }}

+

{{ .Site.Params.notFound.p }}

+gopher + +{{ if .Site.Params.notFound.mainSection }} + {{ $scratch := newScratch }} + {{ if eq .Site.Params.notFound.mainSection "portfolio" }} + {{ $scratch.Set "section" .Site.Params.sections.portfolio }} + {{ else }} + {{ $scratch.Set "section" (.Site.Params.sections.post) }} + {{ end }} + +

While you're here, you can check out my last {{ $scratch.Get "section" }}:

+ {{ $pages := where site.RegularPages.ByPublishDate.Reverse "Type" "in" .Site.Params.notFound.mainSection }} + {{ range first 1 $pages }} + {{ partial (printf "%s/item.html" .Site.Params.notFound.mainSection) . }} + {{end}} +{{end}} + +{{ partial "footer" .}} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/layouts/_default/li.html b/layouts/_default/li.html new file mode 100644 index 0000000..91cbd22 --- /dev/null +++ b/layouts/_default/li.html @@ -0,0 +1,4 @@ +
  • + {{ .Title }} +
    {{ .Date.Format "Mon, Jan 2, 2006" }}
    +
  • \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..9aff636 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,11 @@ +{{ partial "header" .}} + +

    {{ .Title }}

    +

    {{ .Content }}

    + + +{{ partial "footer" .}} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..5e27f0a --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,6 @@ +{{ partial "header" .}} + +

    {{ .Title | markdownify }}

    +{{ .Content | markdownify }} + +{{ partial "footer" .}} diff --git a/layouts/designs/list.html b/layouts/designs/list.html new file mode 100644 index 0000000..09b0af5 --- /dev/null +++ b/layouts/designs/list.html @@ -0,0 +1,8 @@ +{{ partial "header" .}} + +

    {{ .Data.Term | humanize }}

    +{{ range .Data.Pages }} + {{ partial "portfolio/item" .}} +{{ end }} + +{{ partial "footer" .}} \ No newline at end of file diff --git a/layouts/designs/terms.html b/layouts/designs/terms.html new file mode 100644 index 0000000..fd63e78 --- /dev/null +++ b/layouts/designs/terms.html @@ -0,0 +1,12 @@ +{{ partial "header" .}} + + {{ .Content }} + + +{{ partial "footer" .}} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..ecb4b02 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,14 @@ +{{ partial "header" .}} + +

    {{ .Title | markdownify }}

    +{{ .Content }} + +

    My Latest Job

    + {{ $pages := where site.RegularPages "Type" "in" "portfolio"}} + {{ range first 1 $pages }} +
    + {{ partial "portfolio/item" .}} +
    + {{ end }} + +{{ partial "footer" .}} diff --git a/layouts/partials/breadcrumb.html b/layouts/partials/breadcrumb.html new file mode 100644 index 0000000..f752b5e --- /dev/null +++ b/layouts/partials/breadcrumb.html @@ -0,0 +1,14 @@ + +{{ define "breadcrumbnav" }} +{{ if .p1.Parent }} +{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} +{{ else if not .p1.IsHome }} +{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} +{{ end }} + + {{ .p1.Title }} + {{ if ne .p1 .p2 }} / {{ end }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..b990df8 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,12 @@ + + + + + {{ template "_internal/google_analytics.html" . }} + + \ No newline at end of file diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html new file mode 100644 index 0000000..92f9da1 --- /dev/null +++ b/layouts/partials/head/head.html @@ -0,0 +1,8 @@ + + {{.Params.title}} - {{ $.Site.Title}} + + {{ partial "head/meta" .}} + {{ partial "head/style" .}} + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/schema.html" . }} + diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html new file mode 100644 index 0000000..a5c2753 --- /dev/null +++ b/layouts/partials/head/meta.html @@ -0,0 +1,10 @@ + + + + + {{ if .Site.Params.assets.favicon }} + + + {{ end }} + + {{ .Hugo.Generator }} diff --git a/layouts/partials/head/style.html b/layouts/partials/head/style.html new file mode 100644 index 0000000..c5a3586 --- /dev/null +++ b/layouts/partials/head/style.html @@ -0,0 +1,11 @@ +{{ $variables := resources.Get "sass/_variables.sass" }} +{{ $scaffold := resources.Get "sass/scaffold.sass" }} +{{ $custom := resources.Get "sass/custom.sass" }} +{{ $style := slice $variables $scaffold $custom | resources.Concat "sass/style.sass" | toCSS | minify | fingerprint }} +{{ $syntax := resources.Get "syntax.css" | minify }} + + + +{{ if .Site.Params.assets.customCSS }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..934ca5c --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,13 @@ + + +{{- partial "head/head" . -}} + + + + {{ partialCached "sidebar/sidebar" .}} + +
    + {{ if .Site.Params.breadcrumb }} + {{ partial "breadcrumb" .}} + {{ end }} +
    \ No newline at end of file diff --git a/layouts/partials/portfolio/item.html b/layouts/partials/portfolio/item.html new file mode 100644 index 0000000..255c3c2 --- /dev/null +++ b/layouts/partials/portfolio/item.html @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/layouts/partials/portfolio/tags.html b/layouts/partials/portfolio/tags.html new file mode 100644 index 0000000..276c064 --- /dev/null +++ b/layouts/partials/portfolio/tags.html @@ -0,0 +1,39 @@ +{{ if .Params.designs }} +
    + {{ partial "svg" (dict "iconName" "pencil" "size" "18px")}} + {{ range $i, $e := .Params.designs }} + + {{- with $.Site.GetPage "taxonomyTerm" (printf "designs/%s" ( urlize .)) -}} + {{- if $i -}}- {{ end }} + {{ .Title }} + {{ end }} + + {{ end }} +
    +{{end}} + +{{ if .Params.techs }} +
    + {{ partial "svg" (dict "iconName" "tech" "size" "18px")}} + + {{ range $i, $e := .Params.techs }} + {{- with $.Site.GetPage "taxonomyTerm" (printf "techs/%s" ( urlize .)) -}} + {{- if $i -}}- {{ end }} + {{ .Title }} + {{ end }} + {{ end }} + +
    +{{ end }} + +{{ if .Params.projectUrl }} +
    + {{ partial "svg" (dict "iconName" "hyperlink" "size" "18px")}} + {{.Params.projectUrl}} +
    +{{ end }} + +
    + {{ partial "svg" (dict "iconName" "calendar" "size" "18px")}} + {{ .Params.jobDate }} +
    \ No newline at end of file diff --git a/layouts/partials/portfolio/testimonial.html b/layouts/partials/portfolio/testimonial.html new file mode 100644 index 0000000..2170cf4 --- /dev/null +++ b/layouts/partials/portfolio/testimonial.html @@ -0,0 +1,6 @@ +
    + {{.name}} +

    {{ .name }}

    +

    {{ .role }}

    +
    {{ .text }}
    +
    diff --git a/layouts/partials/post/information.html b/layouts/partials/post/information.html new file mode 100644 index 0000000..60928c2 --- /dev/null +++ b/layouts/partials/post/information.html @@ -0,0 +1,9 @@ +
    + {{ partial "svg" (dict "iconName" "clock" "size" "18px")}} + {{ .ReadingTime }} {{ "minute" | pluralize }} +
    + +
    + {{ partial "svg" (dict "iconName" "calendar" "size" "18px")}} + {{ .PublishDate.Format "January 2, 2006" }} +
    \ No newline at end of file diff --git a/layouts/partials/post/item.html b/layouts/partials/post/item.html new file mode 100644 index 0000000..634cbbc --- /dev/null +++ b/layouts/partials/post/item.html @@ -0,0 +1,10 @@ +
    +

    + {{ .Title }} +

    +

    {{ .Summary }}

    + +
    \ No newline at end of file diff --git a/layouts/partials/sidebar/menu.html b/layouts/partials/sidebar/menu.html new file mode 100644 index 0000000..464fb92 --- /dev/null +++ b/layouts/partials/sidebar/menu.html @@ -0,0 +1,8 @@ +{{ $currentPage := . }} +{{ range .Site.Menus.main }} +

    + + {{ .Name }} + +

    +{{ end }} \ No newline at end of file diff --git a/layouts/partials/sidebar/sidebar.html b/layouts/partials/sidebar/sidebar.html new file mode 100644 index 0000000..b4829d6 --- /dev/null +++ b/layouts/partials/sidebar/sidebar.html @@ -0,0 +1,29 @@ +
    + +
    +
    + + + +
    +

    {{ .Site.Params.intro.main | default "Welcome, I'm John Doe" | emojify }}

    +

    {{ .Site.Params.intro.sub | default "This is my personal website" | emojify }}

    + + +
    + +
    + {{ partial "sidebar/social" .}} +
    + +
    \ No newline at end of file diff --git a/layouts/partials/sidebar/social.html b/layouts/partials/sidebar/social.html new file mode 100644 index 0000000..21dccdf --- /dev/null +++ b/layouts/partials/sidebar/social.html @@ -0,0 +1,5 @@ +{{ range $name, $url := .Site.Params.social }} + {{ if $url }} + + {{end}} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/sidebar/style.html b/layouts/partials/sidebar/style.html new file mode 100644 index 0000000..43318c9 --- /dev/null +++ b/layouts/partials/sidebar/style.html @@ -0,0 +1,3 @@ +background-image:linear-gradient( + {{ .Site.Params.sidebar.gradientOverlay | default "rgba(0,0,0,0.4),rgba(0,0,0,0.4)" | safeCSS }} + ),url('{{ .Site.Params.sidebar.backgroundImage | default "images/default-sidebar.jpg" | absURL }}') \ No newline at end of file diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html new file mode 100644 index 0000000..cc06b37 --- /dev/null +++ b/layouts/partials/svg.html @@ -0,0 +1,27 @@ +
    + +
    diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html new file mode 100644 index 0000000..a411a39 --- /dev/null +++ b/layouts/portfolio/list.html @@ -0,0 +1,10 @@ +{{ partial "header" .}} + +

    {{ .Title }}

    + {{ .Content }} + + {{ range .Pages.ByDate.Reverse }} + {{ partial "portfolio/item" .}} + {{ end }} + +{{ partial "footer" .}} \ No newline at end of file diff --git a/layouts/portfolio/single.html b/layouts/portfolio/single.html new file mode 100644 index 0000000..953b3bd --- /dev/null +++ b/layouts/portfolio/single.html @@ -0,0 +1,21 @@ +{{ partial "header" .}} + +

    {{ .Title }}

    +
    + {{ partial "portfolio/tags" .}} +
    + +{{.Title}} + +{{ .Content }} + +{{ if .Params.testimonial }} +

    Testimonial

    +
    + {{ with .Params.testimonial }} + {{ partial "portfolio/testimonial" . }} + {{ end }} +
    +{{ end }} + +{{ partial "footer" .}} diff --git a/layouts/post/list.html b/layouts/post/list.html new file mode 100644 index 0000000..3cc3cd8 --- /dev/null +++ b/layouts/post/list.html @@ -0,0 +1,12 @@ +{{ partial "header" .}} + +

    {{ .Title }}

    + {{ .Content }} + +
    + {{ range .Pages.ByPublishDate.Reverse }} + {{ partial "post/item" .}} + {{ end }} +
    + +{{ partial "footer" .}} \ No newline at end of file diff --git a/layouts/post/single.html b/layouts/post/single.html new file mode 100644 index 0000000..f9a6dcc --- /dev/null +++ b/layouts/post/single.html @@ -0,0 +1,8 @@ +{{ partial "header" .}} + +

    {{ .Title }}

    +{{ partial "post/information" . }} + +{{ .Content }} + +{{ partial "footer" .}} diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..7d329b1 --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1 @@ +User-agent: * diff --git a/layouts/shortcodes/emoji.html b/layouts/shortcodes/emoji.html new file mode 100644 index 0000000..4eb8053 --- /dev/null +++ b/layouts/shortcodes/emoji.html @@ -0,0 +1 @@ +{{ .Get 0 | emojify }} \ No newline at end of file diff --git a/layouts/shortcodes/tweet-single.html b/layouts/shortcodes/tweet-single.html new file mode 100644 index 0000000..cb59946 --- /dev/null +++ b/layouts/shortcodes/tweet-single.html @@ -0,0 +1,10 @@ +{{- $pc := .Page.Site.Config.Privacy.Twitter -}} +{{- if not $pc.Disable -}} +{{- if $pc.Simple -}} +{{ template "_internal/shortcodes/twitter_simple.html" . }} +{{- else -}} +{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?hide_thread=1&id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT -}} +{{- $json := getJSON $url -}} +{{ $json.html | safeHTML }} +{{- end -}} +{{- end -}} diff --git a/layouts/techs/list.html b/layouts/techs/list.html new file mode 100644 index 0000000..09b0af5 --- /dev/null +++ b/layouts/techs/list.html @@ -0,0 +1,8 @@ +{{ partial "header" .}} + +

    {{ .Data.Term | humanize }}

    +{{ range .Data.Pages }} + {{ partial "portfolio/item" .}} +{{ end }} + +{{ partial "footer" .}} \ No newline at end of file diff --git a/layouts/techs/terms.html b/layouts/techs/terms.html new file mode 100644 index 0000000..2ef9be6 --- /dev/null +++ b/layouts/techs/terms.html @@ -0,0 +1,12 @@ +{{ partial "header" .}} + + {{ .Content }} +
      + {{ range $name, $taxonomy := .Site.Taxonomies.techs }} + {{ with $.Site.GetPage (printf "/techs/%s" $name) }} +
    • {{ $name | humanize }}
    • + {{ end }} + {{ end }} +
    + +{{ partial "footer" .}} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..822a9c3 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "personal_web", + "version": "0.0.1", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..82af49a --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "name": "personal_web", + "description": "Simple Personal website theme for Hugo", + "version": "0.0.1", + "author": { + "name": "Baptiste Jacquemet", + "url": "https://baptistej.com" + }, + "repository": "bjacquemet/personal_web", + "license": "MIT", + "dependencies": {} +} diff --git a/static/images/default-sidebar.jpg b/static/images/default-sidebar.jpg new file mode 100644 index 0000000..a6d8bc0 Binary files /dev/null and b/static/images/default-sidebar.jpg differ diff --git a/static/images/edna-west.jpg b/static/images/edna-west.jpg new file mode 100644 index 0000000..d4ec655 Binary files /dev/null and b/static/images/edna-west.jpg differ diff --git a/static/images/gohper.png b/static/images/gohper.png new file mode 100644 index 0000000..84f30ce Binary files /dev/null and b/static/images/gohper.png differ diff --git a/static/images/sample.jpg b/static/images/sample.jpg deleted file mode 100644 index 928d3f5..0000000 Binary files a/static/images/sample.jpg and /dev/null differ diff --git a/theme.toml b/theme.toml index 2d090fb..964a58f 100644 --- a/theme.toml +++ b/theme.toml @@ -4,7 +4,7 @@ name = "Personal_web" license = "MIT" licenselink = "https://github.com/bjacquemet/personal-web/blob/master/LICENSE" -description = "Personal Web is a simple Hugo template to build a personal website including portfolio and blog sections" +description = "Personal Web is a simple Hugo template to build a personal website including portfolio and blog sections. It will mainly suit freelancers who want to showcase their work." homepage = "http://example.com/" tags = ["portfolio", "blog", "post", "personal", "freelancer", "developer"] features = [] diff --git a/themes/LICENSE b/themes/LICENSE deleted file mode 100644 index c3e1456..0000000 --- a/themes/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2019 Baptiste Jacquemet - -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/README.md b/themes/README.md deleted file mode 100644 index 56ba6ca..0000000 --- a/themes/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Personal Web -Personal Web Template for Hugo diff --git a/themes/archetypes/default.md b/themes/archetypes/default.md deleted file mode 100644 index 1151933..0000000 --- a/themes/archetypes/default.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: "{{ .Date }}" -description: ---- diff --git a/themes/archetypes/portfolio.md b/themes/archetypes/portfolio.md deleted file mode 100644 index 44fc903..0000000 --- a/themes/archetypes/portfolio.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -title: -description: -date: "{{ .Date }}" -jobDate: 201 -work: [] -techs: [] -designs: [] -thumbnail: -projectUrl: -testimonial: - name: - role: - image: - text: ---- \ No newline at end of file diff --git a/themes/archetypes/post.md b/themes/archetypes/post.md deleted file mode 100644 index 0cb07c1..0000000 --- a/themes/archetypes/post.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: -description: -date: "{{ .Date }}" -publishDate: "{{ .Date }}" ---- diff --git a/themes/assets/sass/_mixins.sass b/themes/assets/sass/_mixins.sass deleted file mode 100644 index a5d575c..0000000 --- a/themes/assets/sass/_mixins.sass +++ /dev/null @@ -1,29 +0,0 @@ -=transform($property) - -webkit-transform: $property - -ms-transform: $property - transform: $property - -=transition($transition) - -webkit-transition: $transition - -moz-transition: $transition - -ms-transition: $transition - -o-transition: $transition - transition: $transition - -// MEDIA QUERIES -=smartphone - @media (max-width: #{$tablet-width - 1px}) - @content - -=tablet - @media (min-width: #{$tablet-width}) and (max-width: #{$desktop-width - 1px}) - @content - -=desktop - @media (min-width: #{$desktop-width}) - @content - -=rounded - width: 150px - height: 150px - border-radius: 50% \ No newline at end of file diff --git a/themes/assets/sass/_variables.sass b/themes/assets/sass/_variables.sass deleted file mode 100644 index c3deae8..0000000 --- a/themes/assets/sass/_variables.sass +++ /dev/null @@ -1,55 +0,0 @@ -$primary-color: #F6EB0F -$secondary-color: #FD3519 -$dark-blue: #112F41 - -$grey-900: hsl(210, 15%, 25%) // #364049 -$grey-800: hsl(210, 15%, 28%) // #3D4752 -$grey-700: hsl(210, 15%, 43%) // #5D6E7E -$grey-600: hsl(210, 15%, 58%) // #8494A4 -$grey-500: hsl(210, 15%, 76%) // #B9C2CB -$grey-400: hsl(210, 15%, 88%) // #DCE0E5 -$grey-300: hsl(210, 15%, 93%) // #EAEDF0 -$grey-200: hsl(210, 15%, 96%) // #F3F5F6 -$grey-100: hsl(210, 15%, 99%) // #FCFCFD - -$font-family_header: "Montserrat", "Helvetica Neue", sans-serif -$letter-spacing_header: 0.02em -$font-family_main: "Raleway", "Helvetica Neue", sans-serif -$line-height_main: 1.5em -$line-height_main_mobile: 1.7em -$line-height_menu: 1.9em -$line-height_h: 1.5em - -$sidebar-width: 30% -$content-width: 70% -$sidebar-width-tablet: 40% -$content-width-tablet: 60% -$padding-content: 35px 45px -$padding-content_mobile: 0px 45px 35px - -$margin-blocks: 30px - -$font-size_small: 13px -$font-size_medium: 14px -$font-size_main: 16px -$font-size_main_large: 18px -$font-size_h4: 20px -$font-size_h3: 24px -$font-size_h2: 30px -$font-size_h1: 36px -$font-size_h0: 48px - -$font-weight_main: 400 -$font-weight_h1: 600 -$font-weight_h2: 600 -$font-weight_h3: 500 -$font-weight_h4: 500 - -$footer-background-color: $dark-blue - -$box-shadow: 0 0 5px $dark-blue -$max-width-content: 35em - -// Media Query sizes -$tablet-width: 768px -$desktop-width: 1024px diff --git a/themes/assets/sass/custom.sass b/themes/assets/sass/custom.sass deleted file mode 100644 index 48f2b8d..0000000 --- a/themes/assets/sass/custom.sass +++ /dev/null @@ -1,188 +0,0 @@ -.small - font-size: $font-size_small - -.active - font-weight: 500 - - -#content, header - .icon - margin-right: 5px - display: inline-block - svg - width: auto - -header - .icon - fill: white - margin-right: 10px -#content - .icon - fill: $dark-blue - -#content:not(.portfolio) - img - width: 110% - display: block - margin: 0 -5% - - -.published-date, .reading-time - display: inline-block - margin-bottom: 20px - -.reading-time - margin-right: 20px - -.img-caption - margin-bottom: $margin-blocks/6 !important - -.portfolio - img - max-width: 100% - margin-bottom: $margin-blocks - box-shadow: $box-shadow - - .rounded-img - +rounded - - .testimonial-list - margin: 0 auto - display: flex - - .testimonial-container - display: inline-block - text-align: center - - .testimonial-name, .testimonial-role - text-align: center - font-weight: $font-weight_h1 - font-size: $font-size_main_large - margin-top: -2/3*$margin-blocks - .testimonial-role - font-weight: $font-weight_main - - .testimonial-text - position: relative - z-index: 0 - - - .portfolio-tags - margin-top: $margin-blocks/5 - span - font-weight: $font-weight_h1 - a - overflow-wrap: break-word - .tags - margin-bottom: $margin-blocks/3 - -#content - .portfolio-list - h2 - margin: 0 - - a, a:hover, a:link, a:active, a:visited, a:focus - border-bottom: none - color: inherit - - img - max-width: 100% - border-radius: 2px - display: block - box-shadow: $box-shadow - margin: inherit - - .portfolio-container - position: relative - max-width: $max-width-content - margin-bottom: $margin-blocks - - .portfolio-details - opacity: 0 - display: none - width: 100% - padding: 2em 1em - color: $primary-color - +transition(opacity 0.4s ease) - - p, h2 - text-align: center - margin-bottom: 0 - position: relative - - - .img-overlay - position: absolute - top: 0 - bottom: 0 - left: 0 - right: 0 - height: 100% - width: 100% - opacity: 0 - +transition(0.4s ease) - background-color: $dark-blue - - &:hover - .img-overlay - opacity: 0.7 - - .portfolio-details - opacity: 1 - display: block - position: absolute - top: 50% - left: 50% - +transform(translate(-50%, -50%)) - - img::hover - linear-gradient: $dark-blue, $dark-blue - - .portfolio-container - +smartphone - img - margin-bottom: 0 - - .img-overlay - display: none - - .portfolio-details - display: block - opacity: 1 - width: 100% - padding: 0px - color: $grey-900 - - h2 - font-size: $font-size_h3 - line-height: $line-height_main - - span - background-image: linear-gradient(180deg, transparent 60%, $primary-color 0) - padding: 0 0.2em - - p, h2 - text-align: center - margin-bottom: 0 - position: relative - - &:hover - .portfolio-details - +transform(none) - position: relative - left: 0 - - -.designs, .techs - display: inline-block - -.designs - margin-right: 20px - -.read-more - margin-top: -$margin-blocks/3 - text-align: right - display: block - -.chroma - padding: 10px \ No newline at end of file diff --git a/themes/assets/sass/scaffold.sass b/themes/assets/sass/scaffold.sass deleted file mode 100644 index b061886..0000000 --- a/themes/assets/sass/scaffold.sass +++ /dev/null @@ -1,246 +0,0 @@ -@import 'variables' -@import 'mixins' - -* - box-sizing: border-box - -html - background-color: $primary-color - -body - background-color: white - margin: 0 - min-height: 100% - font-family: $font-family_main - color: $dark-blue - font-size: $font-size_main - - +smartphone - line-height: $line-height_main_mobile - -ul - margin-top: -$margin-blocks/2 - -li - line-height: $line-height_main - -p::selection - background-color: $grey-300 - color: $grey-900 - -p - display: block - font-weight: $font-weight_main - font-size: 1em - margin-top: 0 - margin-bottom: $margin-blocks/2 - line-height: $line-height_main - text-align: justify - -h1, h2, h3, h4, h5 - font-family: $font-family_header - letter-spacing: $letter-spacing_header - margin-bottom: $margin-blocks/3 - margin-top: $margin-blocks - line-height: $line-height_h - -h1 - font-size: $font-size_h1 - font-weight: $font-weight_h1 -h2 - font-size: $font-size_h2 - font-weight: $font-weight_h2 -h3 - font-size: $font-size_h3 - font-weight: $font-weight_h3 -h4 - font-size: $font-size_h4 - font-weight: $font-weight_h4 - -blockquote - margin: 0 $margin-blocks/6 - font-size: 1em - line-height: $line-height_main - text-align: justify - font-style: italic - &:before - font-family: Georgia, serif - content: '\201C' - position: absolute - top: 0.15em - left: -0.18em - color: $grey-400 - font-size: 7em - z-index: -1 - font-style: italic - -header, #content - height: 100% - -figure - margin: 0 - img - margin-bottom: $margin-blocks/5 !important - figcaption - p - font-size: $font-size_medium - text-align: center - -header - width: $sidebar-width - background-size: cover - background-position: top center - position: fixed - color: $grey-100 - - h2 - font-size: $font-size_h1 - font-weight: $font-weight_h1 - - .menu - text-align: left - p - margin-bottom: 0px - - .socials - padding: $padding-content - bottom: 0px - position: fixed - border: 0 - - .social-link a, a:visited, a:focus, a:active - svg - fill: white - - .social-link a:focus, a:active, a:hover - svg - +transition(fill 0.7s) - fill: $grey-500 - - a, a:link, a:visited - color: white - border-bottom: 0 - font-weight: $font-weight_main - +transition(all 0.25s) - line-height: $line-height_menu - &:not(.social-link) - border-bottom: $grey-100 1px dashed - - a:hover, a:focus, a:active - font-weight: $font-weight_h1 - color: $secondary-color - &:not(.social-link) - border-bottom: $grey-100 1px dashed - - .intro - padding: $padding-content - position: absolute - bottom: 100px - - .rounded-logo - +rounded - margin-bottom: 4/3*$margin-blocks - display: block - box-shadow: $box-shadow - - +tablet - width: $sidebar-width-tablet - - +smartphone - position: relative - width: 100% - background: $dark-blue !important - display: block - height: auto - p - padding-top: $margin-blocks/3 - - .socials - padding: $padding-content_mobile - position: relative - - .rounded-logo - text-align: center - margin: 0 auto - - .intro - bottom: inherit - display: block - position: relative - -#content, .breadcrumb - max-width: $max-width-content - margin: 0 auto - display: block - -a - line-height: $line-height_main+0.1 - -a, a:visited, a:link - text-decoration: none - color: inherit - font-weight: 600 - border-bottom: $grey-600 1px dashed - padding-bottom: 1px - +transition(all 0.2s) - svg - fill: inherit - +transition(all 0.2s) - -a:hover, a:focus, a:active - color: $secondary-color - text-decoration: none - font-weight: 600 - border-bottom: $grey-600 1px dashed - padding-bottom: 1px - svg - fill: $secondary-color - -.content-wrapper - padding: $padding-content - position: static - width: $content-width - margin-left: $sidebar-width - float: none - clear: none - display: block - min-height: 88vh - - +tablet - width: $content-width-tablet - margin-left: $sidebar-width-tablet - - +smartphone - position: relative - width: 100% - margin-left: 0 - -footer - position: absolute - width: $content-width - left: $sidebar-width - background-color: $footer-background-color - color: $grey-100 - padding: $padding-content - - .footer-wrapper - max-width: $max-width-content - margin: 0 auto - display: block - - +tablet - width: $content-width-tablet - left: $sidebar-width-tablet - - +smartphone - position: relative - width: 100% - left: 0px - - p - margin-bottom: 0 - -img.gopher - margin: 0 auto $margin-blocks !important - max-width: 200px - diff --git a/themes/assets/syntax.css b/themes/assets/syntax.css deleted file mode 100644 index 681758d..0000000 --- a/themes/assets/syntax.css +++ /dev/null @@ -1,59 +0,0 @@ -/* Background */ .chroma { color: #f8f8f2; background-color: #272822 } -/* Error */ .chroma .err { color: #960050; background-color: #1e0010 } -/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } -/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; } -/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } -/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; } -/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; } -/* Keyword */ .chroma .k { color: #66d9ef } -/* KeywordConstant */ .chroma .kc { color: #66d9ef } -/* KeywordDeclaration */ .chroma .kd { color: #66d9ef } -/* KeywordNamespace */ .chroma .kn { color: #f92672 } -/* KeywordPseudo */ .chroma .kp { color: #66d9ef } -/* KeywordReserved */ .chroma .kr { color: #66d9ef } -/* KeywordType */ .chroma .kt { color: #66d9ef } -/* NameAttribute */ .chroma .na { color: #a6e22e } -/* NameClass */ .chroma .nc { color: #a6e22e } -/* NameConstant */ .chroma .no { color: #66d9ef } -/* NameDecorator */ .chroma .nd { color: #a6e22e } -/* NameException */ .chroma .ne { color: #a6e22e } -/* NameFunction */ .chroma .nf { color: #a6e22e } -/* NameOther */ .chroma .nx { color: #a6e22e } -/* NameTag */ .chroma .nt { color: #f92672 } -/* Literal */ .chroma .l { color: #ae81ff } -/* LiteralDate */ .chroma .ld { color: #e6db74 } -/* LiteralString */ .chroma .s { color: #e6db74 } -/* LiteralStringAffix */ .chroma .sa { color: #e6db74 } -/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 } -/* LiteralStringChar */ .chroma .sc { color: #e6db74 } -/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 } -/* LiteralStringDoc */ .chroma .sd { color: #e6db74 } -/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 } -/* LiteralStringEscape */ .chroma .se { color: #ae81ff } -/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 } -/* LiteralStringInterpol */ .chroma .si { color: #e6db74 } -/* LiteralStringOther */ .chroma .sx { color: #e6db74 } -/* LiteralStringRegex */ .chroma .sr { color: #e6db74 } -/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 } -/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 } -/* LiteralNumber */ .chroma .m { color: #ae81ff } -/* LiteralNumberBin */ .chroma .mb { color: #ae81ff } -/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff } -/* LiteralNumberHex */ .chroma .mh { color: #ae81ff } -/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff } -/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff } -/* LiteralNumberOct */ .chroma .mo { color: #ae81ff } -/* Operator */ .chroma .o { color: #f92672 } -/* OperatorWord */ .chroma .ow { color: #f92672 } -/* Comment */ .chroma .c { color: #75715e } -/* CommentHashbang */ .chroma .ch { color: #75715e } -/* CommentMultiline */ .chroma .cm { color: #75715e } -/* CommentSingle */ .chroma .c1 { color: #75715e } -/* CommentSpecial */ .chroma .cs { color: #75715e } -/* CommentPreproc */ .chroma .cp { color: #75715e } -/* CommentPreprocFile */ .chroma .cpf { color: #75715e } -/* GenericDeleted */ .chroma .gd { color: #f92672 } -/* GenericEmph */ .chroma .ge { font-style: italic } -/* GenericInserted */ .chroma .gi { color: #a6e22e } -/* GenericStrong */ .chroma .gs { font-weight: bold } -/* GenericSubheading */ .chroma .gu { color: #75715e } diff --git a/themes/layouts/404.html b/themes/layouts/404.html deleted file mode 100644 index ddc4b8e..0000000 --- a/themes/layouts/404.html +++ /dev/null @@ -1,22 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Site.Params.notFound.h1 }}

    -

    {{ .Site.Params.notFound.p }}

    -gopher - -{{ if .Site.Params.notFound.mainSection }} - {{ $scratch := newScratch }} - {{ if eq .Site.Params.notFound.mainSection "portfolio" }} - {{ $scratch.Set "section" .Site.Params.sections.portfolio }} - {{ else }} - {{ $scratch.Set "section" (.Site.Params.sections.post) }} - {{ end }} - -

    While you're here, you can check out my last {{ $scratch.Get "section" }}:

    - {{ $pages := where site.RegularPages.ByPublishDate.Reverse "Type" "in" .Site.Params.notFound.mainSection }} - {{ range first 1 $pages }} - {{ partial (printf "%s/item.html" .Site.Params.notFound.mainSection) . }} - {{end}} -{{end}} - -{{ partial "footer" .}} diff --git a/themes/layouts/_default/baseof.html b/themes/layouts/_default/baseof.html deleted file mode 100644 index 5f8e2ec..0000000 --- a/themes/layouts/_default/baseof.html +++ /dev/null @@ -1,11 +0,0 @@ - - - {{- partial "head.html" . -}} - - {{- partial "header.html" . -}} -
    - {{- block "main" . }}{{- end }} -
    - {{- partial "footer.html" . -}} - - diff --git a/themes/layouts/_default/li.html b/themes/layouts/_default/li.html deleted file mode 100644 index 91cbd22..0000000 --- a/themes/layouts/_default/li.html +++ /dev/null @@ -1,4 +0,0 @@ -
  • - {{ .Title }} -
    {{ .Date.Format "Mon, Jan 2, 2006" }}
    -
  • \ No newline at end of file diff --git a/themes/layouts/_default/list.html b/themes/layouts/_default/list.html deleted file mode 100644 index 9aff636..0000000 --- a/themes/layouts/_default/list.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Title }}

    -

    {{ .Content }}

    -
      - {{ range .Pages }} - {{ .Render "li" }} - {{ end }} -
    - -{{ partial "footer" .}} \ No newline at end of file diff --git a/themes/layouts/_default/single.html b/themes/layouts/_default/single.html deleted file mode 100644 index 5e27f0a..0000000 --- a/themes/layouts/_default/single.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Title | markdownify }}

    -{{ .Content | markdownify }} - -{{ partial "footer" .}} diff --git a/themes/layouts/designs/list.html b/themes/layouts/designs/list.html deleted file mode 100644 index 09b0af5..0000000 --- a/themes/layouts/designs/list.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Data.Term | humanize }}

    -{{ range .Data.Pages }} - {{ partial "portfolio/item" .}} -{{ end }} - -{{ partial "footer" .}} \ No newline at end of file diff --git a/themes/layouts/designs/terms.html b/themes/layouts/designs/terms.html deleted file mode 100644 index fd63e78..0000000 --- a/themes/layouts/designs/terms.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "header" .}} - - {{ .Content }} -
      - {{ range $name, $taxonomy := .Site.Taxonomies.designs }} - {{ with $.Site.GetPage (printf "/designs/%s" $name) }} -
    • {{ $name | humanize }}
    • - {{ end }} - {{ end }} -
    - -{{ partial "footer" .}} \ No newline at end of file diff --git a/themes/layouts/index.html b/themes/layouts/index.html deleted file mode 100644 index ecb4b02..0000000 --- a/themes/layouts/index.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Title | markdownify }}

    -{{ .Content }} - -

    My Latest Job

    - {{ $pages := where site.RegularPages "Type" "in" "portfolio"}} - {{ range first 1 $pages }} -
    - {{ partial "portfolio/item" .}} -
    - {{ end }} - -{{ partial "footer" .}} diff --git a/themes/layouts/partials/breadcrumb.html b/themes/layouts/partials/breadcrumb.html deleted file mode 100644 index f752b5e..0000000 --- a/themes/layouts/partials/breadcrumb.html +++ /dev/null @@ -1,14 +0,0 @@ - -{{ define "breadcrumbnav" }} -{{ if .p1.Parent }} -{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} -{{ else if not .p1.IsHome }} -{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} -{{ end }} - - {{ .p1.Title }} - {{ if ne .p1 .p2 }} / {{ end }} - -{{ end }} \ No newline at end of file diff --git a/themes/layouts/partials/footer.html b/themes/layouts/partials/footer.html deleted file mode 100644 index b990df8..0000000 --- a/themes/layouts/partials/footer.html +++ /dev/null @@ -1,12 +0,0 @@ -
    -
    - - - {{ template "_internal/google_analytics.html" . }} - - \ No newline at end of file diff --git a/themes/layouts/partials/head/head.html b/themes/layouts/partials/head/head.html deleted file mode 100644 index 92f9da1..0000000 --- a/themes/layouts/partials/head/head.html +++ /dev/null @@ -1,8 +0,0 @@ - - {{.Params.title}} - {{ $.Site.Title}} - - {{ partial "head/meta" .}} - {{ partial "head/style" .}} - {{ template "_internal/opengraph.html" . }} - {{ template "_internal/schema.html" . }} - diff --git a/themes/layouts/partials/head/meta.html b/themes/layouts/partials/head/meta.html deleted file mode 100644 index a5c2753..0000000 --- a/themes/layouts/partials/head/meta.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - {{ if .Site.Params.assets.favicon }} - - - {{ end }} - - {{ .Hugo.Generator }} diff --git a/themes/layouts/partials/head/style.html b/themes/layouts/partials/head/style.html deleted file mode 100644 index c5a3586..0000000 --- a/themes/layouts/partials/head/style.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ $variables := resources.Get "sass/_variables.sass" }} -{{ $scaffold := resources.Get "sass/scaffold.sass" }} -{{ $custom := resources.Get "sass/custom.sass" }} -{{ $style := slice $variables $scaffold $custom | resources.Concat "sass/style.sass" | toCSS | minify | fingerprint }} -{{ $syntax := resources.Get "syntax.css" | minify }} - - - -{{ if .Site.Params.assets.customCSS }} - -{{ end }} \ No newline at end of file diff --git a/themes/layouts/partials/header.html b/themes/layouts/partials/header.html deleted file mode 100644 index 934ca5c..0000000 --- a/themes/layouts/partials/header.html +++ /dev/null @@ -1,13 +0,0 @@ - - -{{- partial "head/head" . -}} - - - - {{ partialCached "sidebar/sidebar" .}} - -
    - {{ if .Site.Params.breadcrumb }} - {{ partial "breadcrumb" .}} - {{ end }} -
    \ No newline at end of file diff --git a/themes/layouts/partials/portfolio/item.html b/themes/layouts/partials/portfolio/item.html deleted file mode 100644 index 255c3c2..0000000 --- a/themes/layouts/partials/portfolio/item.html +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/themes/layouts/partials/portfolio/tags.html b/themes/layouts/partials/portfolio/tags.html deleted file mode 100644 index 276c064..0000000 --- a/themes/layouts/partials/portfolio/tags.html +++ /dev/null @@ -1,39 +0,0 @@ -{{ if .Params.designs }} -
    - {{ partial "svg" (dict "iconName" "pencil" "size" "18px")}} - {{ range $i, $e := .Params.designs }} - - {{- with $.Site.GetPage "taxonomyTerm" (printf "designs/%s" ( urlize .)) -}} - {{- if $i -}}- {{ end }} - {{ .Title }} - {{ end }} - - {{ end }} -
    -{{end}} - -{{ if .Params.techs }} -
    - {{ partial "svg" (dict "iconName" "tech" "size" "18px")}} - - {{ range $i, $e := .Params.techs }} - {{- with $.Site.GetPage "taxonomyTerm" (printf "techs/%s" ( urlize .)) -}} - {{- if $i -}}- {{ end }} - {{ .Title }} - {{ end }} - {{ end }} - -
    -{{ end }} - -{{ if .Params.projectUrl }} -
    - {{ partial "svg" (dict "iconName" "hyperlink" "size" "18px")}} - {{.Params.projectUrl}} -
    -{{ end }} - -
    - {{ partial "svg" (dict "iconName" "calendar" "size" "18px")}} - {{ .Params.jobDate }} -
    \ No newline at end of file diff --git a/themes/layouts/partials/portfolio/testimonial.html b/themes/layouts/partials/portfolio/testimonial.html deleted file mode 100644 index 2170cf4..0000000 --- a/themes/layouts/partials/portfolio/testimonial.html +++ /dev/null @@ -1,6 +0,0 @@ -
    - {{.name}} -

    {{ .name }}

    -

    {{ .role }}

    -
    {{ .text }}
    -
    diff --git a/themes/layouts/partials/post/information.html b/themes/layouts/partials/post/information.html deleted file mode 100644 index 60928c2..0000000 --- a/themes/layouts/partials/post/information.html +++ /dev/null @@ -1,9 +0,0 @@ -
    - {{ partial "svg" (dict "iconName" "clock" "size" "18px")}} - {{ .ReadingTime }} {{ "minute" | pluralize }} -
    - -
    - {{ partial "svg" (dict "iconName" "calendar" "size" "18px")}} - {{ .PublishDate.Format "January 2, 2006" }} -
    \ No newline at end of file diff --git a/themes/layouts/partials/post/item.html b/themes/layouts/partials/post/item.html deleted file mode 100644 index 634cbbc..0000000 --- a/themes/layouts/partials/post/item.html +++ /dev/null @@ -1,10 +0,0 @@ -
    -

    - {{ .Title }} -

    -

    {{ .Summary }}

    - -
    \ No newline at end of file diff --git a/themes/layouts/partials/sidebar/menu.html b/themes/layouts/partials/sidebar/menu.html deleted file mode 100644 index 464fb92..0000000 --- a/themes/layouts/partials/sidebar/menu.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ $currentPage := . }} -{{ range .Site.Menus.main }} -

    - - {{ .Name }} - -

    -{{ end }} \ No newline at end of file diff --git a/themes/layouts/partials/sidebar/sidebar.html b/themes/layouts/partials/sidebar/sidebar.html deleted file mode 100644 index b4829d6..0000000 --- a/themes/layouts/partials/sidebar/sidebar.html +++ /dev/null @@ -1,29 +0,0 @@ -
    - -
    -
    - - - -
    -

    {{ .Site.Params.intro.main | default "Welcome, I'm John Doe" | emojify }}

    -

    {{ .Site.Params.intro.sub | default "This is my personal website" | emojify }}

    - - -
    - -
    - {{ partial "sidebar/social" .}} -
    - -
    \ No newline at end of file diff --git a/themes/layouts/partials/sidebar/social.html b/themes/layouts/partials/sidebar/social.html deleted file mode 100644 index 21dccdf..0000000 --- a/themes/layouts/partials/sidebar/social.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ range $name, $url := .Site.Params.social }} - {{ if $url }} - - {{end}} -{{ end }} \ No newline at end of file diff --git a/themes/layouts/partials/sidebar/style.html b/themes/layouts/partials/sidebar/style.html deleted file mode 100644 index 43318c9..0000000 --- a/themes/layouts/partials/sidebar/style.html +++ /dev/null @@ -1,3 +0,0 @@ -background-image:linear-gradient( - {{ .Site.Params.sidebar.gradientOverlay | default "rgba(0,0,0,0.4),rgba(0,0,0,0.4)" | safeCSS }} - ),url('{{ .Site.Params.sidebar.backgroundImage | default "images/default-sidebar.jpg" | absURL }}') \ No newline at end of file diff --git a/themes/layouts/partials/svg.html b/themes/layouts/partials/svg.html deleted file mode 100644 index cc06b37..0000000 --- a/themes/layouts/partials/svg.html +++ /dev/null @@ -1,27 +0,0 @@ -
    - -
    diff --git a/themes/layouts/portfolio/list.html b/themes/layouts/portfolio/list.html deleted file mode 100644 index a411a39..0000000 --- a/themes/layouts/portfolio/list.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Title }}

    - {{ .Content }} - - {{ range .Pages.ByDate.Reverse }} - {{ partial "portfolio/item" .}} - {{ end }} - -{{ partial "footer" .}} \ No newline at end of file diff --git a/themes/layouts/portfolio/single.html b/themes/layouts/portfolio/single.html deleted file mode 100644 index 953b3bd..0000000 --- a/themes/layouts/portfolio/single.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Title }}

    -
    - {{ partial "portfolio/tags" .}} -
    - -{{.Title}} - -{{ .Content }} - -{{ if .Params.testimonial }} -

    Testimonial

    -
    - {{ with .Params.testimonial }} - {{ partial "portfolio/testimonial" . }} - {{ end }} -
    -{{ end }} - -{{ partial "footer" .}} diff --git a/themes/layouts/post/list.html b/themes/layouts/post/list.html deleted file mode 100644 index 3cc3cd8..0000000 --- a/themes/layouts/post/list.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Title }}

    - {{ .Content }} - -
    - {{ range .Pages.ByPublishDate.Reverse }} - {{ partial "post/item" .}} - {{ end }} -
    - -{{ partial "footer" .}} \ No newline at end of file diff --git a/themes/layouts/post/single.html b/themes/layouts/post/single.html deleted file mode 100644 index f9a6dcc..0000000 --- a/themes/layouts/post/single.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Title }}

    -{{ partial "post/information" . }} - -{{ .Content }} - -{{ partial "footer" .}} diff --git a/themes/layouts/robots.txt b/themes/layouts/robots.txt deleted file mode 100644 index 7d329b1..0000000 --- a/themes/layouts/robots.txt +++ /dev/null @@ -1 +0,0 @@ -User-agent: * diff --git a/themes/layouts/shortcodes/emoji.html b/themes/layouts/shortcodes/emoji.html deleted file mode 100644 index 4eb8053..0000000 --- a/themes/layouts/shortcodes/emoji.html +++ /dev/null @@ -1 +0,0 @@ -{{ .Get 0 | emojify }} \ No newline at end of file diff --git a/themes/layouts/shortcodes/tweet-single.html b/themes/layouts/shortcodes/tweet-single.html deleted file mode 100644 index cb59946..0000000 --- a/themes/layouts/shortcodes/tweet-single.html +++ /dev/null @@ -1,10 +0,0 @@ -{{- $pc := .Page.Site.Config.Privacy.Twitter -}} -{{- if not $pc.Disable -}} -{{- if $pc.Simple -}} -{{ template "_internal/shortcodes/twitter_simple.html" . }} -{{- else -}} -{{- $url := printf "https://api.twitter.com/1/statuses/oembed.json?hide_thread=1&id=%s&dnt=%t" (index .Params 0) $pc.EnableDNT -}} -{{- $json := getJSON $url -}} -{{ $json.html | safeHTML }} -{{- end -}} -{{- end -}} diff --git a/themes/layouts/techs/list.html b/themes/layouts/techs/list.html deleted file mode 100644 index 09b0af5..0000000 --- a/themes/layouts/techs/list.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ partial "header" .}} - -

    {{ .Data.Term | humanize }}

    -{{ range .Data.Pages }} - {{ partial "portfolio/item" .}} -{{ end }} - -{{ partial "footer" .}} \ No newline at end of file diff --git a/themes/layouts/techs/terms.html b/themes/layouts/techs/terms.html deleted file mode 100644 index 2ef9be6..0000000 --- a/themes/layouts/techs/terms.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "header" .}} - - {{ .Content }} -
      - {{ range $name, $taxonomy := .Site.Taxonomies.techs }} - {{ with $.Site.GetPage (printf "/techs/%s" $name) }} -
    • {{ $name | humanize }}
    • - {{ end }} - {{ end }} -
    - -{{ partial "footer" .}} \ No newline at end of file diff --git a/themes/package-lock.json b/themes/package-lock.json deleted file mode 100644 index 822a9c3..0000000 --- a/themes/package-lock.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "personal_web", - "version": "0.0.1", - "lockfileVersion": 1 -} diff --git a/themes/package.json b/themes/package.json deleted file mode 100644 index 82af49a..0000000 --- a/themes/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "personal_web", - "description": "Simple Personal website theme for Hugo", - "version": "0.0.1", - "author": { - "name": "Baptiste Jacquemet", - "url": "https://baptistej.com" - }, - "repository": "bjacquemet/personal_web", - "license": "MIT", - "dependencies": {} -} diff --git a/themes/static/images/default-sidebar.jpg b/themes/static/images/default-sidebar.jpg deleted file mode 100644 index a6d8bc0..0000000 Binary files a/themes/static/images/default-sidebar.jpg and /dev/null differ diff --git a/themes/static/images/edna-west.jpg b/themes/static/images/edna-west.jpg deleted file mode 100644 index d4ec655..0000000 Binary files a/themes/static/images/edna-west.jpg and /dev/null differ diff --git a/themes/static/images/gohper.png b/themes/static/images/gohper.png deleted file mode 100644 index 84f30ce..0000000 Binary files a/themes/static/images/gohper.png and /dev/null differ -- cgit v1.2.3