diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..899ec976 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,18 @@ +kind: pipeline +name: default + +steps: +- name: hugo + image: cbrgm/drone-hugo:latest + settings: + validate: true + output: public + url: https://jk.nipponalba.scot +- name: deploy + image: appleboy/drone-scp + settings: + host: 192.168.1.33 + port: 9439 + username: jk + target: /var/www/nipponalba/jk + source: public/ diff --git a/archetypes/default.md b/archetypes/default.md index 00e77bd7..a7c9b226 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -2,5 +2,7 @@ title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} draft: true +Blog: [] +Categories: [] +Tags: [] --- - diff --git a/config.toml b/config.toml index e4b74182..60b8a31a 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,76 @@ -baseURL = "http://example.org/" -languageCode = "en-us" -title = "My New Hugo Site" +baseURL = "https://jk.nipponalba.scot" +languageCode = "en-gb" +title = "JK's homepage" +theme="anatole" +summarylength=10 +enableEmoji=true + +[markup] + [markup.goldmark] + [markup.goldmark.extensions] + definitionList = true + footnote = true + linkify = true + strikethrough = true + table = true + taskList = true + typographer = true + [markup.goldmark.parser] + attribute = true + autoHeadingID = true + autoHeadingIDType = "github" + [markup.goldmark.renderer] + hardWraps = false + unsafe = false + xhtml = false + +[taxonomies] +blog = "blog" + +[params] +title = "I'm JK" +author = "JK" +description = "work in progress" +profilePicture = "images/profile.jpg" +keywords = "" +favicon = "favicons/" + +## Social Links +[[params.socialIcons]] +icon = "fa-pleroma" +title = "Pleroma" +url = "https://social.nipponalba.scot/jk" + +[[params.socialIcons]] +icon = "fa-pixelfed" +title = "Pixelfed" +url = "https://px.nipponalba.scot/jk" + +[[params.socialIcons]] +icon = "fa-xmpp" +title = "XMPP" +url = "xmpp:jk@nipponalba.scot" + +[[params.socialIcons]] +icon = "fa-matrix-org" +title = "Matrix" +url = "https://matrix.to/#/@jk:nipponalba.scot" + +[[params.socialIcons]] +icon = "fa-envelope-o" +title = "e-mail" +url = "mailto:jk@nipponalba.scot" + +[menu] + +[[menu.main]] +name="Home" +identifier="home" +weight= 100 +url = "/" + +[[menu.main]] +name = "Blogs" +identifier = "blogs" +weight = 200 +url = "/blog/" diff --git a/content/css/style.css b/content/css/style.css new file mode 100644 index 00000000..b889de0e --- /dev/null +++ b/content/css/style.css @@ -0,0 +1,737 @@ +@charset "UTF-8"; +html { + background-color: #fff; + -webkit-font-smoothing: antialiased; +} + +body { + color: rgba(0, 0, 0, 0.5); + font-family: 'Verdana', sans-serif; + font-size: 15px; + width: 100%; + margin: 0 auto 30px auto; + background-color: #2b2b2b; +} + +p { + line-height: 1.9em; + font-weight: 400; + font-size: 14px; +} + +a { + text-decoration: none; +} + +.category { + padding: 4px 6px; + border-radius: 3px; + color: #fff; + background-color: #f9f9fd; + border: 1px solid #f2f2f2; +} + +.tag::before { + content: "#"; + opacity: .5; +} + +.tag, .category { + display: inline-block; + font-size: 15px; + line-height: 1; + margin: 5px 8px 5px 0; +} + +pre { + background-color: #f9f9fd; + padding: 5px; +} + +.info i{ + opacity: 0.5; + margin-right: 5px; +} + +a:link, a:visited { + opacity: 1; + -webkit-transition: all .15s linear; + -moz-transition: all .15s linear; + -o-transition: all .15s linear; + -ms-transition: all .15s linear; + transition: all .15s linear; + color: #424242; +} + +a:hover, a:active { + color: #4786D6; +} + +/*basic styles ends*/ +/*animation starts*/ +.animated { + -webkit-animation-fill-mode: both; + -moz-animation-fill-mode: both; + -ms-animation-fill-mode: both; + -o-animation-fill-mode: both; + animation-fill-mode: both; + -webkit-animation-duration: 1s; + -moz-animation-duration: 1s; + -ms-animation-duration: 1s; + -o-animation-duration: 1s; + animation-duration: 1s; +} + +.animated.hinge { + -webkit-animation-duration: 1s; + -moz-animation-duration: 1s; + -ms-animation-duration: 1s; + -o-animation-duration: 1s; + animation-duration: 1s; +} + +@-webkit-keyframes fadeInDown { + 0% { + opacity: 0; + -webkit-transform: translateY(-20px); + } + 100% { + opacity: 1; + -webkit-transform: translateY(0); + } +} +@-moz-keyframes fadeInDown { + 0% { + opacity: 0; + -moz-transform: translateY(-20px); + } + 100% { + opacity: 1; + -moz-transform: translateY(0); + } +} +@-o-keyframes fadeInDown { + 0% { + opacity: 0; + -o-transform: translateY(-20px); + } + 100% { + opacity: 1; + -o-transform: translateY(0); + } +} +@keyframes fadeInDown { + 0% { + opacity: 0; + transform: translateY(-20px); + } + 100% { + opacity: 1; + transform: translateY(0); + } +} +.fadeInDown { + -webkit-animation-name: fadeInDown; + -moz-animation-name: fadeInDown; + -o-animation-name: fadeInDown; + animation-name: fadeInDown; +} + +/*animation ends*/ +.content { + height: auto; + float: right; + width: 60%; + margin-top: 60px; +} + +.page-top { + width: 60%; + position: fixed; + right: 0; + z-index: 3; + background-color: #fff; + height: 60px; + border-bottom: 1px solid #f2f2f2; +} +.page-top .nav { + list-style: none; + padding: 18px 30px; + float: left; + font-size: 12px; +} +.page-top .nav li { + position: relative; + display: initial; + padding-right: 20px; +} +.page-top .nav a { + color: #5A5A5A; +} +.page-top .nav a:hover { + color: #4786D6; +} +.page-top .nav a.current { + color: #5A5A5A; + padding-bottom: 22px; + border-bottom: 1px solid #5A5A5A; +} +.page-top .information { + float: right; + padding-top: 12px; + padding-right: 20px; +} +.page-top .information .avatar { + float: right; +} +.page-top .information .avatar img { + width: 32px; + height: 32px; + border-radius: 300px; +} +.page-top .information .back_btn { + float: left; + padding-top: 5px; + margin-right: -10px; +} +.page-top .information .back_btn li { + display: initial; + padding-right: 40px; +} + +.sidebar { + width: 40%; + -webkit-background-size: cover; + background-size: cover; + background-color: #fff; + height: 100%; + transition: 0.8s; + top: 0; + left: 0; + position: fixed; + z-index: 4; + border-right: 1px solid #f2f2f2; +} +.sidebar .logo-title { + text-align: center; + padding-top: 240px; +} +.sidebar .logo-title .description { + font-size: 14px; + color: #565654; +} +.sidebar .logo-title .logo { + margin: 0 auto; +} +.sidebar .logo-title .title h3 { + text-transform: uppercase; + font-size: 2rem; + font-weight: bold; + letter-spacing: 2px; + line-height: 1; + margin: 1em; +} +.sidebar .logo-title .title a { + text-decoration: none; + color: #464646; + font-size: 2rem; + font-weight: bold; +} +.sidebar .social-links { + list-style: none; + padding: 0; + font-size: 14px; + text-align: center; +} +.sidebar .social-links i { + margin-right: 3px; +} +.sidebar .social-links li { + display: inline; + padding: 0 4px; + line-height: 0; +} +.sidebar .social-links a { + color: #565654; +} +.sidebar .social-links a:hover { + color: #4786D6; +} + +.post { + background-color: #FFF; + margin: 30px; +} +.post .post-title h1 { + text-transform: uppercase; + font-size: 30px; + letter-spacing: 5px; + line-height: 1; +} +.post .post-title h2 { + text-transform: uppercase; + letter-spacing: 1px; + font-size: 28px; + line-height: 1; + font-weight: 600; + color: #5f5f5f; +} +.post .post-title h3 { + text-transform: uppercase; + letter-spacing: 1px; + line-height: 1; + font-weight: 600; + color: #464646; + font-size: 22px; + margin: 0; +} +.post .post-title a { + text-decoration: none; + letter-spacing: 1px; + color: #5f5f5f; +} +.post .post-title a:hover { + text-decoration: underline; +} +.post .post-content a { + text-decoration: none; + letter-spacing: 1px; + color: #4786D6; +} +.post .post-content a:hover { + color: #2F69B3; +} +.post .post-content h3 { + color: #5F5F5F; + font-size: 22px; + font-weight: 600; +} +.post .post-content h4 { + color: #5F5F5F; + font-size: 16px; +} +.post .post-content img { + max-width: 100%; +} +.post .post-footer { + padding: 0 0 30px 0; + border-bottom: 1px solid #f2f2f2; +} +.post .post-footer .meta { + max-width: 100%; + height: 25px; + color: #bbbbbb; +} +.post .post-footer .meta .info { + float: left; + font-size: 12px; + margin-bottom: 1em; +} +.post .post-footer .info .separator a { + margin-right: 0.2em; +} +.post .post-footer .meta .info .date { + margin-right: 10px; +} +.info { + margin: 1em; +} +.post .post-footer .meta a { + text-decoration: none; + color: #bbbbbb; + padding-right: 10px; +} +.post .post-footer .meta a:hover { + color: #4786D6; +} +.post .post-footer .meta i { + margin-right: 6px; +} +.post .post-footer .tags { + padding-bottom: 15px; + font-size: 13px; +} +.post .post-footer .tags ul { + list-style-type: none; + display: inline; + margin: 0; + padding: 0; +} +.post .post-footer .tags ul li { + list-style-type: none; + margin: 0; + padding-right: 5px; + display: inline; +} +.post .post-footer .tags a { + text-decoration: none; + color: rgba(0, 0, 0, 0.44); + font-weight: 400; +} +.post .post-footer .tags a:hover { + text-decoration: none; +} + +.pagination { + margin: 30px; + padding: 0px 0 56px 0; + border-bottom: 1px solid #f2f2f2; +} +.pagination ul { + list-style: none; + margin: 0; + padding: 0; + height: 13px; +} +.pagination ul li { + margin: 0 2px 0 2px; + display: inline; + line-height: 1; +} +.pagination ul li a { + text-decoration: none; +} +.pagination .pre { + float: left; +} +.pagination .next { + float: right; +} + +.like-reblog-buttons { + float: right; +} + +.like-button { + float: right; + padding: 0 0 0 10px; +} + +.reblog-button { + float: right; + padding: 0; +} + +#install-btn { + position: fixed; + bottom: 0px; + right: 6px; +} + +#disqus_thread { + margin: 30px; + border-bottom: 1px solid #f2f2f2; +} + +.footer { + clear: both; + text-align: center; + font-size: 10px; + margin: 0 auto; + bottom: 0; + position: absolute; + width: 100%; + padding-bottom: 20px; + background: #fff; +} +.footer a { + color: #A6A6A6; +} +.footer a:hover { + color: #4786D6; +} + +/*for archive*/ +.archive { + width: 100%; +} + +.list-with-title { + font-size: 14px; + margin: 30px; + padding: 0; +} +.list-with-title li { + list-style-type: none; + padding: 0; +} +.list-with-title .listing-title { + font-size: 24px; + color: #666666; + font-weight: 600; + line-height: 2.2em; +} +.list-with-title .listing { + padding: 0; +} +.list-with-title .listing .listing-post { + padding-bottom: 5px; +} +.list-with-title .listing .listing-post .post-time { + float: right; + color: #C5C5C5; +} +.list-with-title .listing .listing-post a { + color: #8F8F8F; +} +.list-with-title .listing .listing-post a:hover { + color: #4786D6; +} + +/* share */ +.share { + margin: 0px 30px; + display: inline-flex; +} + +.evernote { + width: 32px; + height: 32px; + border-radius: 300px; + background-color: #3E3E3E; + margin-right: 5px; +} +.evernote a { + color: #fff; + padding: 11px; + font-size: 12px; +} +.evernote a:hover { + color: #ED6243; + padding: 11px; +} + +.weibo { + width: 32px; + height: 32px; + border-radius: 300px; + background-color: #ED6243; + margin-right: 5px; +} +.weibo a { + color: #fff; + padding: 9px; +} +.weibo a:hover { + color: #BD4226; +} + +.twitter { + width: 32px; + height: 32px; + border-radius: 300px; + background-color: #59C0FD; + margin-right: 5px; +} +.twitter a { + color: #fff; + padding: 9px; +} +.twitter a:hover { + color: #4B9ECE; +} + +/* about */ +.about { + margin: 30px; +} +.about h3 { + font-size: 22px; +} + +/* links*/ +.links { + margin: 30px; +} +.links h3 { + font-size: 22px; +} +.links a { + cursor: pointer; +} + +/* Comments */ +.comment-count { + color: #666; +} + +.tab-community { + color: #666; +} + +.read_more { + font-size: 14px; +} + +.back-button { + padding-top: 30px; + max-width: 100px; + padding-left: 40px; + float: left; +} + +/* Facebook Comments */ +#fb_comments_container { + margin: 30px; +} + +/* Buttons */ +a.btn { + color: #868686; + font-weight: 400; +} + +.btn { + display: inline-block; + position: relative; + outline: 0; + color: rgba(0, 0, 0, 0.44); + background: transparent; + font-size: 14px; + text-align: center; + text-decoration: none; + cursor: pointer; + border: 1px solid rgba(0, 0, 0, 0.15); + white-space: nowrap; + font-weight: 400; + font-style: normal; + border-radius: 999em; +} + +.btn:hover { + display: inline-block; + position: relative; + outline: 0px; + color: #464545; + background: transparent; + font-size: 14px; + text-align: center; + text-decoration: none; + cursor: pointer; + border: 1px solid #464545; + white-space: nowrap; + font-weight: 400; + font-style: normal; + border-radius: 999em; +} + +[role="back"] { + padding: 0.5em 1.25em; + line-height: 1.666em; +} + +[role="home"] { + padding: 0.5em 1.25em; + line-height: 1.666em; +} + +[role="navigation"] { + padding: 0.5em 1.25em; + line-height: 1.666em; +} + +[role="tags"] { + padding: 6px 12px; +} + +/* Menu */ +.menu { + float: right; + padding-top: 30px; +} +.menu .btn-down { + margin: 0px; +} +.menu .btn-down li { + list-style: none; + width: 100px; +} +.menu .btn-down li a { + display: inline-block; + position: relative; + padding: 0.5em 1.25em; + outline: 0; + color: rgba(0, 0, 0, 0.44); + background: transparent; + font-size: 14px; + text-align: center; + text-decoration: none; + cursor: pointer; + border: 1px solid rgba(0, 0, 0, 0.15); + white-space: nowrap; + font-weight: 400; + font-style: normal; + border-radius: 999em; + margin-top: 5px; +} +.menu .btn-down li a:hover { + position: relative; + padding: 0.5em 1.25em; + outline: 0; + color: #fff; + background: #3CBD10; + font-size: 14px; + text-align: center; + text-decoration: none; + cursor: pointer; + border: 1px solid rgba(0, 0, 0, 0.15); + white-space: nowrap; + font-weight: 400; + font-style: normal; + border-radius: 999em; + margin-top: 5px; +} +.menu .btn-down div { + position: absolute; + visibility: hidden; + width: 100px; + float: right; +} + +.page_404 { + text-align: center; + padding-top: 50px; +} + + + +@media screen and (max-width: 960px) { + .sidebar { + width: 100%; + position: absolute; + border-right: none; + z-index: 1; + } + .sidebar .logo-title { + padding-top: 120px; + } + .sidebar .logo-title .title img { + width: 100px; + } + .sidebar .logo-title .title h3 { + font-size: 20px; + } + + .page-top { + width: 100%; + } + + .post-title h3 { + line-height: 1.6; + } + + .content { + margin-top: 420px; + width: 100%; + z-index: 2; + position: absolute; + } + + .footer { + display: none; + } + + .share { + display: grid; + } +} diff --git a/content/images/profile.jpg b/content/images/profile.jpg new file mode 100644 index 00000000..e77835c1 Binary files /dev/null and b/content/images/profile.jpg differ diff --git a/content/post/test-post2/index.md b/content/post/test-post2/index.md new file mode 100644 index 00000000..4651ebae --- /dev/null +++ b/content/post/test-post2/index.md @@ -0,0 +1,8 @@ +--- +title: "Test Post2" +date: 2020-04-29T13:29:30+01:00 +draft: false +Blog: ["Brewshido","BushidoDreams","The Whitabootery"] +Categories: [] +Tags: [] +--- diff --git a/content/posts.md b/content/posts.md new file mode 100644 index 00000000..b710d685 --- /dev/null +++ b/content/posts.md @@ -0,0 +1,28 @@ +--- +title: "Posts" +description: "Hugo, the world’s fastest framework for building websites" +date: "2018-02-11" +aliases: ["about-us","about-hugo","contact"] +author: "Hugo Authors" +menu: main +name: "Posts" +weight: 300 +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/russross/blackfriday +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. + +Learn more and contribute on [GitHub](https://github.com/gohugoio). diff --git a/content/snaps.md b/content/snaps.md new file mode 100644 index 00000000..4a0620f3 --- /dev/null +++ b/content/snaps.md @@ -0,0 +1,28 @@ +--- +title: "Snaps" +description: "Hugo, the world’s fastest framework for building websites" +date: "2018-02-11" +aliases: ["about-us","about-hugo","contact"] +author: "Hugo Authors" +menu: main +name: "Snaps" +weight: 300 +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/russross/blackfriday +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. + +Learn more and contribute on [GitHub](https://github.com/gohugoio). diff --git a/themes/anatole/.gitattributes b/themes/anatole/.gitattributes new file mode 100644 index 00000000..dfe07704 --- /dev/null +++ b/themes/anatole/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/themes/anatole/.gitignore b/themes/anatole/.gitignore new file mode 100644 index 00000000..ee4d8952 --- /dev/null +++ b/themes/anatole/.gitignore @@ -0,0 +1,4 @@ +**/themes/ +demo/ +.hugo/* +!.hugo/version \ No newline at end of file diff --git a/themes/anatole/LICENSE b/themes/anatole/LICENSE new file mode 100644 index 00000000..635021b5 --- /dev/null +++ b/themes/anatole/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2020 lxndrblz + +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/anatole/README.md b/themes/anatole/README.md new file mode 100644 index 00000000..2270e225 --- /dev/null +++ b/themes/anatole/README.md @@ -0,0 +1,102 @@ +# Anatole ![](https://img.shields.io/badge/license-MIT-blue.svg) [![Netlify Status](https://api.netlify.com/api/v1/badges/ee7a5df4-b944-4e03-853d-39219c96d484/deploy-status)](https://alexbilz.com/) + +Anatole is a beautiful minimalist two-column [hugo](https://gohugo.io/) theme based on farbox-theme-Anatole. + +![Screenshot Anatole Theme](https://raw.githubusercontent.com/lxndrblz/anatole/master/images/screenshot.png) + +## Features +Anatole's aims to be minimalistic and sleek, but still brings some great functionality. + +Features include: +* Profile picture and slogan +* Navigation items +* Google Analytics +* Comments powered by Disqus +* Katex support +* MIT License +* Fontawesome icons + +## Preview the exampleSite +``` +git clone https://github.com/lxndrblz/anatole.git anatole +cd anatole/exampleSite +hugo server --themesDir ../.. +``` + +## Quick Start +1. Add the repository into your Hugo Project repository as a submodule: `git submodule add https://github.com/lxndrblz/anatole.git themes/anatole`. +2. Configure your `config.toml`. Feel free to copy the demo `config.toml` and some content from the exampleSite. +3. Build your site with `hugo serve` and admire the result at `http://localhost:1313/`. + +## Update your installation +If you want to get the latest update of the `Anatole` theme please execute this command: +``` +git submodule update --remote --merge +``` + +## Modifying the config.toml +Ìn this section I'll discuss the custom parameters available within the `config.toml`. The complete [sample](https://github.com/lxndrblz/anatole/blob/master/exampleSite/config.toml) can be found in the exampleSite folder. + +### Profile picture and slogan +``` +[params] +title = "I'm Jane Doe" +author = "Jane Doe" +description = "Call me Jane" +profilePicture = "images/profile.jpg" +``` +### Navigation items +Non-content entries can be added right from the `config.toml` file. +``` +[menu] + + [[menu.main]] + name = "Home" + identifier = "home" + weight = 100 + url = "/" + + [[menu.main]] + name = "Posts" + weight = 200 + identifier = "posts" + url = "/post/" +``` +If you want to add content to menus, please see the `about.md` file as an example. +``` +menu: main +name: "About" +weight: 300 +``` +### Comments powered by Disqus +No comment section is shown on the `single.html`, unless a disqus code is specified in the `config.toml` file. +``` +disqusShortname = "XXX" +``` +### Google Analytics +To use Google Analytics, a valid tracking code has to be added. If you don't want to load the code, then commend out the parameter. +``` +googleAnalytics = "UA-123-45" +``` + +### Beautiful math functions +``` +## Math settings +[params.math] +enable = false # options: true, false. Enable math support globally, default: false. You can always enable math on per page. +use = "katex" # options: "katex", "mathjax". default is "katex". +``` +## License + +Anatole is licensed under the [MIT license](https://github.com/lxndrblz/anatole/blob/master/LICENSE). + +## Maintenance + +This theme is maintained by its author [Alexander Bilz](https://github.com/lxndrblz). Please open an issue/pull request if you want to contribute in making this theme better and more feature-complete. + +## Special Thanks 🎁 + +* Go to [Cai Cai](https://github.com/hi-caicai), for the great Anatole Farbox theme that formed the foundation for this theme. +* Go to [Kareya Saleh](https://unsplash.com/photos/tLKOj6cNwe0) for providing the profile picture in the exampleSite. + + diff --git a/themes/anatole/archetypes/post.md b/themes/anatole/archetypes/post.md new file mode 100644 index 00000000..e1215905 --- /dev/null +++ b/themes/anatole/archetypes/post.md @@ -0,0 +1,9 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +Description: "" +Blog: [] +Tags: [] +Categories: [] +DisableComments: false +--- diff --git a/themes/anatole/exampleSite/config.toml b/themes/anatole/exampleSite/config.toml new file mode 100644 index 00000000..6d649323 --- /dev/null +++ b/themes/anatole/exampleSite/config.toml @@ -0,0 +1,63 @@ +baseURL = "https://example.com" +languageCode = "en" +DefaultContentLanguage = "en" +title = "Website of Jane Doe" +theme = "anatole" +summarylength = 10 +enableEmoji = true + +# Enable Disqus +#disqusShortname = "" + +# Google Analytics +#googleAnalytics = "UA-123-45" + +[params] +title = "I'm Jane Doe" +author = "Jane Doe" +description = "Call me Jane" +profilePicture = "images/profile.jpg" +keywords = "" +favicon = "favicons/" + +## Math settings +[params.math] +enable = false # options: true, false. Enable math support globally, default: false. You can always enable math on per page. +use = "katex" # options: "katex", "mathjax". default is "katex". + +## Social links +[[params.socialIcons]] +icon = "fa-linkedin" +title = "Linkedin" +url = "https://de.linkedin.com/" + +[[params.socialIcons]] +icon = "fa-github" +title = "GitHub" +url = "https://github.com/lxndrblz/anatole/" + +[[params.socialIcons]] +icon = "fa-instagram" +title = "instagram" +url = "https://www.instagram.com/" + +[[params.socialIcons]] +icon = "fa-envelope" +title = "e-mail" +url = "mailto:mail@alexbilz.com" + +## Menu items + +[menu] + + [[menu.main]] + name = "Home" + identifier = "home" + weight = 100 + url = "/post/" + + [[menu.main]] + name = "Posts" + weight = 200 + identifier = "posts" + url = "/post/" diff --git a/themes/anatole/exampleSite/content/about.md b/themes/anatole/exampleSite/content/about.md new file mode 100644 index 00000000..d3a9f01f --- /dev/null +++ b/themes/anatole/exampleSite/content/about.md @@ -0,0 +1,28 @@ +--- +title: "About" +description: "Hugo, the world’s fastest framework for building websites" +date: "2018-02-11" +aliases: ["about-us","about-hugo","contact"] +author: "Hugo Authors" +menu: main +name: "About" +weight: 300 +--- + +Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows. + +Hugo makes use of a variety of open source projects including: + +* https://github.com/russross/blackfriday +* https://github.com/alecthomas/chroma +* https://github.com/muesli/smartcrop +* https://github.com/spf13/cobra +* https://github.com/spf13/viper + +Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages. + +Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases. + +Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider. + +Learn more and contribute on [GitHub](https://github.com/gohugoio). \ No newline at end of file diff --git a/themes/anatole/exampleSite/content/post/_index.md b/themes/anatole/exampleSite/content/post/_index.md new file mode 100644 index 00000000..f8374e6f --- /dev/null +++ b/themes/anatole/exampleSite/content/post/_index.md @@ -0,0 +1,6 @@ ++++ +aliases = ["posts","articles","blog","showcase","docs"] +title = "Posts" +author = "Hugo Authors" +tags = ["index"] ++++ \ No newline at end of file diff --git a/themes/anatole/exampleSite/content/post/emoji-support.md b/themes/anatole/exampleSite/content/post/emoji-support.md new file mode 100644 index 00000000..ecf6c861 --- /dev/null +++ b/themes/anatole/exampleSite/content/post/emoji-support.md @@ -0,0 +1,47 @@ ++++ +author = "Hugo Authors" +title = "Emoji Support" +date = "2019-03-05" +description = "Guide to emoji usage in Hugo" +tags = [ + "emoji", +] ++++ + +Emoji can be enabled in a Hugo project in a number of ways. + +The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). + +To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. + + +
🙈 :see_no_evil:
🙉 :hear_no_evil:
🙊 :speak_no_evil:
Test
+ + +``` +#### Code block indented with four spaces + + + + + +Test
+ + + +#### Code block with Hugo's internal highlight shortcode +{{< highlight html >}} + + + + +Test
+ + +{{< /highlight >}} + +## List Types + +#### Ordered List + +1. First item +2. Second item +3. Third item + +#### Unordered List + +* List item +* Another item +* And another item + +#### Nested list + +* Item +1. First Sub-item +2. Second Sub-item + +## Other Elements — abbr, sub, sup, kbd, mark + +GIF is a bitmap image format. + +H2O + +Xn + Yn = Zn + +Press CTRL+ALT+Delete to end the session. + +Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. + diff --git a/themes/anatole/exampleSite/content/post/math-typesetting.mmark b/themes/anatole/exampleSite/content/post/math-typesetting.mmark new file mode 100644 index 00000000..7f421ae1 --- /dev/null +++ b/themes/anatole/exampleSite/content/post/math-typesetting.mmark @@ -0,0 +1,46 @@ +--- +author: Hugo Authors +title: Math Typesetting +date: 2019-03-08 +description: A brief guide to setup KaTeX +markup: mmark +math: true +--- + +Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. + + +In this example we will be using [KaTeX](https://katex.org/) + +- Create a partial under `/layouts/partials/math.html` +- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. +- Include the partial in your templates like so: + +``` +{{ if or .Params.math .Site.Params.math }} +{{ partial "math.html" . }} +{{ end }} +``` +- To enable KaTex globally set the parameter `math` to `true` in a project's configuration +- To enable KaTex on a per page basis include the parameter `math: true` in content files. + +**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) +{{< math.inline >}} +{{ if or .Page.Params.math .Site.Params.math }} + + + + +{{ end }} +{{ math.inline >}} + +### Examples + +Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$ + +Block math: + +$$ + \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } +$$ + diff --git a/themes/anatole/exampleSite/content/post/placeholder-text.md b/themes/anatole/exampleSite/content/post/placeholder-text.md new file mode 100644 index 00000000..378b9954 --- /dev/null +++ b/themes/anatole/exampleSite/content/post/placeholder-text.md @@ -0,0 +1,58 @@ ++++ +author = "Hugo Authors" +title = "Placeholder Text" +date = "2019-03-09" +description = "Lorem Ipsum Dolor Si Amet" +tags = [ + "markdown", + "text", +] ++++ + +Lorem est tota propiore conpellat pectoribus de +pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice +subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc +caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis +lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. + +1. Exierant elisi ambit vivere dedere +2. Duce pollice +3. Eris modo +4. Spargitque ferrea quos palude + +Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus +silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria +tractus malis. + +1. Comas hunc haec pietate fetum procerum dixit +2. Post torum vates letum Tiresia +3. Flumen querellas +4. Arcanaque montibus omnes +5. Quidem et + +# Vagus elidunt + + + +[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) + +## Mane refeci capiebant unda mulcebat + +Victa caducifer, malo vulnere contra +dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere +furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. + +Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli +Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare +Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert +ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae +vulnus haerentia iuste et exercebat, sui et. + +Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem +Propoetides **parte**. + +{{< css.inline >}} + +{{< /css.inline >}} diff --git a/themes/anatole/exampleSite/content/post/rich-content.md b/themes/anatole/exampleSite/content/post/rich-content.md new file mode 100644 index 00000000..b7c81d30 --- /dev/null +++ b/themes/anatole/exampleSite/content/post/rich-content.md @@ -0,0 +1,42 @@ ++++ +author = "Hugo Authors" +title = "Rich Content" +date = "2018-03-10" +description = "A brief description of Hugo Shortcodes" +tags = [ + "shortcodes", + "privacy", +] ++++ + +Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. + +--- + +## Instagram Simple Shortcode + +{{< instagram_simple BGvuInzyFAe hidecaption >}} + +The page you are looking for is missing
+