diff --git a/config.toml b/config.toml index ad28c51..df18c5a 100644 --- a/config.toml +++ b/config.toml @@ -19,7 +19,8 @@ summaryLength = 20 [markup.goldmark.renderer] unsafe= true -[params] +[params] + level = 35 description = "Retro game thoughts" copyright = "No © reserved - sharing is caring.
An integral part of Brain Baking." diff --git a/static/img/avatar.jpg b/static/img/avatar.jpg new file mode 100644 index 0000000..1cbdff4 Binary files /dev/null and b/static/img/avatar.jpg differ diff --git a/themes/jefklak-creative-portfolio/assets/sass/_codex.sass b/themes/jefklak-creative-portfolio/assets/sass/_codex.sass index b358a54..4a40705 100644 --- a/themes/jefklak-creative-portfolio/assets/sass/_codex.sass +++ b/themes/jefklak-creative-portfolio/assets/sass/_codex.sass @@ -31,6 +31,24 @@ body html body, h1, h2, h3, h4, h5, h6 font-family: $font-stack +.meel + cursor: pointer + +.support + font-size: 1rem + margin-bottom: 4rem + noscript + border-left: 5px solid darkred + padding: 0.5rem + +.avatar + float: right + margin-top: 0rem + margin-left: 1.5rem + img + border-radius: 50% + + .rfloat float: right diff --git a/themes/jefklak-creative-portfolio/layouts/_default/single.html b/themes/jefklak-creative-portfolio/layouts/_default/single.html index 6274077..0448463 100644 --- a/themes/jefklak-creative-portfolio/layouts/_default/single.html +++ b/themes/jefklak-creative-portfolio/layouts/_default/single.html @@ -51,21 +51,7 @@ - {{ if (not .Params.disableComments) }} -
- - - {{- if (ne hugo.Environment "development") }} - - - {{- else }} - (localhost, commento not loaded) - {{- end }} -
- - {{ end }} + {{ partial "single-comments" . }} diff --git a/themes/jefklak-creative-portfolio/layouts/partials/single-comments.html b/themes/jefklak-creative-portfolio/layouts/partials/single-comments.html new file mode 100644 index 0000000..f0e0c2d --- /dev/null +++ b/themes/jefklak-creative-portfolio/layouts/partials/single-comments.html @@ -0,0 +1,26 @@ +{{ if (not .Params.disableComments) }} +
+ + +
+ + Me! +
+
+

+ I'm Wouter, a level {{ .Site.Params.level }} Retro Gamer, and I love the sight of experience points on old and forgotten hardware. I sometimes convince others join in on the nostalgic grind. + Read more about me here. +

+

+ If you found this article amusing and/or helpful, you can buy me a coffee - although I'm more of a tea fan myself. I also like to hear your feedback via e-mail: say hello. Thanks! +

+ +
+{{ end }} diff --git a/themes/jefklak-creative-portfolio/static/js/codex.js b/themes/jefklak-creative-portfolio/static/js/codex.js index 7da4e7f..b1d2054 100644 --- a/themes/jefklak-creative-portfolio/static/js/codex.js +++ b/themes/jefklak-creative-portfolio/static/js/codex.js @@ -68,6 +68,17 @@ $(function() { $('.sidebar-game-platform').height($('.sidebar-content .img-inactive').height()); }; + var obfuscateMail = function() { + var meel = document.querySelector('.meel'); + var enc = "kcihsf@pfowbpoywbu.qca " + + if(meel) { + meel.addEventListener('click', function() { + meel.innerHTML = enc.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+12)?c:c-26);}); + }) + } + } + var animateActiveGameImagesIfFound = function() { var animate = function() { var active = $(this).find('.img-active'); @@ -93,4 +104,5 @@ $(function() { setSideBarPlatformHeight(); addRandomImageToSideBarMenus(); enableScrollToTopOnInternalLinks(); + obfuscateMail(); });