diff --git a/assets/js/staticman.js b/assets/js/staticman.js new file mode 100644 index 00000000..1906416b --- /dev/null +++ b/assets/js/staticman.js @@ -0,0 +1,105 @@ +// Static comments +// from: https://github.com/eduardoboucas/popcorn/blob/gh-pages/js/main.js +$(document).ready(function() { + $('.post-new-comment').submit(function () { + var form = this; + + $(form).addClass('loading'); + $('input[type="submit"]:enabled').addClass('hidden'); // hide "submit" + $('input[type="submit"]:disabled').removeClass('hidden'); // show "submitted" + + // Construct form action URL form JS to avoid spam + var api = '{{ .api | default "staticman3.herokuapp.com" }}'; + var gitProvider = '{{ .gitprovider }}'; + var username = '{{ .username }}'; + var repo = '{{ .repo }}'; + var branch = '{{ .branch }}'; + + $.ajax({ + type: $(this).attr('method'), + url: ['https:/', api, 'v3/entry', gitProvider, username, repo, branch, 'comments'].join('/'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + showAlert('success'); + setTimeout(function(){ clearForm() }, 3000); // display success message for 3s + $(form).removeClass('loading'); + }, + error: function (err) { + console.log(err); + showAlert('failed'); + $(form).removeClass('loading'); + } + }); + + return false; + }); + + function showAlert(msg) { + if (msg == 'success') { + $('.post-new-comment .submit-success').removeClass('hidden'); // show submit success message + $('.post-new-comment .submit-failed').addClass('hidden'); // hide submit failed message + } else { + $('.post-new-comment .submit-success').addClass('hidden'); // hide submit success message + $('.post-new-comment .submit-failed').removeClass('hidden'); // show submit failed message + } + $('input[type="submit"]:enabled').removeClass('hidden'); // show "submit" + $('input[type="submit"]:disabled').addClass('hidden'); // hide "submitted" + } + + function clearForm() { + resetReplyTarget(); + $('.post-new-comment input') + .filter(function() { + return this.name.match(/^fields\[.*\]$/); + }) + .val(''); // empty all text & hidden fields but not options + $('.post-new-comment textarea').val(''); // empty text area + $('.post-new-comment .submit-success').addClass('hidden'); // hide submission status + $('.post-new-comment .submit-failed').addClass('hidden'); // hide submission status + } + + function resetReplyTarget() { + $('.post-new-comment .post-reply-notice .post-reply-name').text(''); + $('.post-new-comment .post-reply-notice .post-comment-avatar').remove(); + $('.post-new-comment .post-reply-notice .post-reply-close-btn').remove(); + $('.post-new-comment .post-reply-notice').addClass('hidden'); // hide reply target display + $('.post-new-comment input[type="hidden"]') + .filter(function() { + return this.name.match(/^fields\[reply[a-zA-Z]*\]$/); + }) + .val(''); // empty all hidden fields whose name starts from "reply" + } + + // record reply target when "reply to this comment" is pressed + $('.post-comment').on('click', '.post-comment-reply-btn', function (evt){ + resetReplyTarget(); + var cmt = $(evt.delegateTarget); + var replyThread = cmt.find('.post-comment-threadID').text(); + $('.post-new-comment input[name="fields[replyThread]"]').val(replyThread); + $('.post-new-comment input[name="fields[replyID]"]').val(cmt.attr("id")); + authorTag = cmt.find('.post-comment-author'); + replyName = authorTag.text(); + $('.post-new-comment input[name="fields[replyName]"]').val(replyName); + + // display reply target avatar and name + $('.post-new-comment .post-reply-notice').removeClass('hidden'); + $('.post-new-comment .post-reply-name').text(replyName); + avatarTag = cmt.find('.post-comment-avatar'); + // use clone to avoid removal of avatar in comments by resetReplyTarget() + $('.post-new-comment .post-reply-arrow').after(avatarTag.clone()); + // add button for removing reply target (static method would give error msg) + closeBtn = $(""); + $('.post-new-comment .post-reply-notice').append(closeBtn); + }); + + // handle removal of reply target when '×' is pressed + $('.post-new-comment .post-reply-notice').on('click', '.post-reply-close-btn', function(){ + resetReplyTarget(); + }); + + // clear form when reset button is clicked + $('.post-new-comment input[type="reset"]').click(function (){ + clearForm(); + }); +}); diff --git a/assets/scss/main.min.css b/assets/scss/main.min.css new file mode 100644 index 00000000..e6668322 --- /dev/null +++ b/assets/scss/main.min.css @@ -0,0 +1 @@ +/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */html{color:#222;font-size:1em;line-height:1.4}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}audio,canvas,iframe,img,svg,video{max-width:100%;vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.browserupgrade{margin:0.2em 0;background:#ccc;color:#000;padding:0.2em 0}body{background:#f4f4f4;margin-top:3.5em;max-width:100vw;-ms-overflow-style:scrollbar}*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}body,input,select,textarea{color:#333333;font-family:"Source Sans Pro", Helvetica, sans-serif;line-height:1.75em}a{border-bottom:dotted 1px rgba(160,160,160,0.65);color:inherit;text-decoration:none;-webkit-transition:color .2s ease, border-bottom-color 0.2s ease;-moz-transition:color .2s ease, border-bottom-color 0.2s ease;-ms-transition:color .2s ease, border-bottom-color 0.2s ease;-o-transition:color .2s ease, border-bottom-color 0.2s ease;transition:color .2s ease, border-bottom-color 0.2s ease}a:before{-webkit-transition:color ease;-moz-transition:color ease;-ms-transition:color ease;-o-transition:color ease;transition:color ease}a:hover{border-bottom-color:transparent;color:#2ebaae}h1,h2,h3,h4,h5,h6{color:#3c3b3b;font-family:"Raleway", Helvetica, sans-serif;letter-spacing:0.25em;line-height:1.65;text-transform:uppercase}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{border-bottom:0}blockquote{border-left:solid 4px rgba(160,160,160,0.3);font-style:italic;margin:0 2em;padding:0.5em 0 0.5em 2em}blockquote p{margin-bottom:0}code{border:solid 1px rgba(160,160,160,0.3);font-family:"Courier New", monospace;font-size:0.9em;margin:0 0.25em;padding:0.25em 0.65em;overflow-x:auto}code::-webkit-scrollbar{height:.25em}code::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3)}code::-webkit-scrollbar-thumb{background-color:darkgrey;outline:1px solid slategrey}pre{display:table;font-family:"Courier New", monospace;font-size:0.9em;table-layout:fixed;width:100%}pre code{display:block;padding:1em 1.5em;overflow-x:auto}hr{border:0;border-bottom:solid 1px rgba(160,160,160,0.3);margin:2em 0}input[type="submit"],input[type="reset"],input[type="button"],.button{background-color:transparent;border:solid 1px rgba(160,160,160,0.3);color:#3c3b3b;cursor:pointer;display:inline-block;font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;font-weight:800;height:4.8125em;letter-spacing:0.25em;line-height:4.8125em;margin:auto;padding:0 2em;-moz-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;-webkit-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;-ms-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;text-align:center;text-transform:uppercase;width:fit-content}input[type="submit"]:hover,input[type="reset"]:hover,input[type="button"]:hover,.button:hover{border:solid 1px #2ebaae;color:#2ebaae !important}input[type="submit"]:hover:active,input[type="reset"]:hover:active,input[type="button"]:hover:active,.button:hover:active{background-color:rgba(46,186,174,0.05)}label{color:#3c3b3b;display:block;font-size:0.9em;font-weight:700}input,select,textarea{background:rgba(160,160,160,0.075);border:solid 1px rgba(160,160,160,0.3);outline:0;margin:.25em 0;padding:0 1em;width:100%}input:hover,select:hover,textarea:hover{border-color:#2ebaae;-webkit-transition:border-color 0.3s ease-in-out;-moz-transition:border-color 0.3s ease-in-out;-ms-transition:border-color 0.3s ease-in-out;-o-transition:border-color 0.3s ease-in-out;transition:border-color 0.3s ease-in-out}input:focus,input:active,select:focus,select:active,textarea:focus,textarea:active{border:solid 1px #2ebaae}input,select{height:2.75em}textarea{height:5em}::-webkit-input-placeholder,:-moz-placeholder,::-moz-placeholder,:-ms-input-placeholder,.formerize-placeholder{color:#aaaaaa;opacity:1.0}table{background-color:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);margin:1em auto;-webkit-transition:all 0.5s ease;-moz-transition:all 0.5s ease;-ms-transition:all 0.5s ease;-o-transition:all 0.5s ease;transition:all 0.5s ease;width:75%}@media (min-width: 768px){table{width:90%}}table>thead{display:none}@media (min-width: 768px){table>thead{background-color:#ececec;display:table-header-group}}table>tbody>tr{border-bottom:1px solid #e0e0e0}@media (min-width: 768px){table>tbody>tr:nth-child(even){background-color:#f4f4f4}table>tbody>tr:hover{background-color:rgba(46,187,170,0.5)}}table>tbody>tr>td{display:block;text-align:right}@media (min-width: 768px){table>tbody>tr>td{display:table-cell;text-align:center}}table>tbody>tr>td[data-header]:before{color:#757575;content:attr(data-header);float:left;font-size:inherit;font-weight:bold}@media (min-width: 768px){table>tbody>tr>td[data-header]:before{display:none}}table>tbody>tr>td:first-child{background-color:#ececec;font-weight:bold;text-align:left}@media (min-width: 768px){table>tbody>tr>td:first-child{background-color:unset;text-align:center}}table>tbody>tr>td:first-child:after{content:"\f078";float:right;font-family:"Font Awesome 5 Free";font-weight:900;text-decoration:inherit;transition:all .3s}@media (min-width: 768px){table>tbody>tr>td:first-child:after{display:none}}table>tbody>tr>td:not(:first-child){border-bottom:1px solid #e0e0e0;opacity:0;position:absolute;-moz-transition:none;-ms-transition:none;-o-transition:none;-webkit-transition:none;transition:none;z-index:-1}@media (min-width: 768px){table>tbody>tr>td:not(:first-child){border:0;opacity:100;position:relative;z-index:0}}table>tbody>tr.active>td:first-child:after{transform:rotateX(180deg)}table>tbody>tr.active>td:not(:first-child){opacity:1;position:relative;-webkit-transition:all 0.3s ease;-moz-transition:all 0.3s ease;-ms-transition:all 0.3s ease;-o-transition:all 0.3s ease;transition:all 0.3s ease;z-index:auto}table>tbody>tr.active>td:last-child{border-bottom:0}table>tfoot{display:none}@media (min-width: 768px){table>tfoot{display:table-footer-group}}table>thead>tr>th,table>tbody>tr>th,table>tfoot>tr>th,table>thead>tr>td,table>tbody>tr>td,table>tfoot>tr>td{border:0;padding:0.5em}.g-recaptcha{margin:-0.25em 0 0.25em 0}.fancybox{background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);margin:10px auto;max-width:85%;padding:.5em .5em 0 .5em;width:fit-content}.fancybox a{border:0}.fancybox img{max-width:100%}.fancybox .caption{color:#777;font-size:0.8em;font-style:italic;text-align:center}.post-comment{position:relative;margin-bottom:3em;padding-left:4.5em;font-size:.8em}.post-comment-avatar{float:left;width:3.25em;height:3.25em;margin-right:.5em}.post-comment-author{display:inline-block;margin:0 0 .25em;font-size:1.25em;line-height:1}.post-comment-author a{color:inherit;text-decoration:none}.post-comment-timestamp{font-size:.8em}.post-comment-timestamp a{color:inherit;text-decoration:none}.post-comment-content{margin:1.5em 0 0 3.75em}.post-comment-content>figure,.post-comment-content>ol,.post-comment-content>p,.post-comment-content>table,.post-comment-content>ul{margin-bottom:1.5em}.triangle{-webkit-clip-path:polygon(0 100%, 100% 100%, 50% 0);-moz-clip-path:polygon(0 100%, 100% 100%, 50% 0);-ms-clip-path:polygon(0 100%, 100% 100%, 50% 0);-o-clip-path:polygon(0 100%, 100% 100%, 50% 0);clip-path:polygon(0 100%, 100% 100%, 50% 0)}.trapezoid{-webkit-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);-moz-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);-ms-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);-o-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%)}.parallelogram{-webkit-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);-moz-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);-ms-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);-o-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%)}.rhombus{-webkit-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);-moz-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);-ms-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);-o-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.pentagon{-webkit-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);-moz-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);-ms-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);-o-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.hexagon{-webkit-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);-moz-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);-ms-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);-o-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.heptagon{-webkit-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);-moz-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);-ms-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);-o-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)}.octagon{-webkit-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);-moz-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);-ms-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);-o-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)}.nonagon{-webkit-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);-moz-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);-ms-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);-o-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%)}.decagon{-webkit-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);-moz-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);-ms-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);-o-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%)}.bevel{-webkit-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);-moz-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);-ms-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);-o-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%)}.rabbet{-webkit-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);-moz-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);-ms-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);-o-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%)}.left-arrow{-webkit-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);-moz-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);-ms-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);-o-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%)}.right-arrow{-webkit-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);-moz-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);-ms-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);-o-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)}.left-point{-webkit-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);-moz-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);-ms-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);-o-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%)}.right-point{-webkit-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);-moz-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);-ms-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);-o-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)}.left-cheveron{-webkit-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);-moz-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);-ms-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);-o-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%)}.right-cheveron{-webkit-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);-moz-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);-ms-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);-o-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)}.star{-webkit-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);-moz-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);-ms-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);-o-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.cross{-webkit-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);-moz-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);-ms-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);-o-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%)}.message{-webkit-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);-moz-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);-ms-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);-o-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%)}.close{-webkit-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);-moz-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);-ms-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);-o-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%)}.circle{-webkit-clip-path:circle(50% at 50% 50%);-moz-clip-path:circle(50% at 50% 50%);-ms-clip-path:circle(50% at 50% 50%);-o-clip-path:circle(50% at 50% 50%);clip-path:circle(50% at 50% 50%)}.vertical-ellipse{-webkit-clip-path:ellipse(25% 40% at 50% 50%);-moz-clip-path:ellipse(25% 40% at 50% 50%);-ms-clip-path:ellipse(25% 40% at 50% 50%);-o-clip-path:ellipse(25% 40% at 50% 50%);clip-path:ellipse(25% 40% at 50% 50%)}.horizontal-ellipse{-webkit-clip-path:ellipse(40% 25% at 50% 50%);-moz-clip-path:ellipse(40% 25% at 50% 50%);-ms-clip-path:ellipse(40% 25% at 50% 50%);-o-clip-path:ellipse(40% 25% at 50% 50%);clip-path:ellipse(40% 25% at 50% 50%)}.flag-icon{border:0.02px solid black}.flag-icon-en{background-image:url(../flags/4x3/en.svg)}.flag-icon-en.flag-icon-squared{background-image:url(../flags/1x1/en.svg)}.share-btn{border:none;border-radius:4px;box-shadow:0 2px 0 0 rgba(0,0,0,0.2);color:#ffffff;display:inline-block;text-align:center}.share-btn:hover{color:#ffffff !important}.share-btn:active{position:relative;top:2px;box-shadow:none;color:#e2e2e2;outline:none}.share-btn.twitter{background:#55acee}.share-btn.twitter:hover{background:#4c9ad6}.share-btn.google-plus{background:#dd4b39}.share-btn.google-plus:hover{background:#c64333}.share-btn.facebook{background:#3B5998}.share-btn.facebook:hover{background:#2f4779}.share-btn.linkedin{background:#4875B4}.share-btn.linkedin:hover{background:#4069a2}.share-btn.stumbleupon{background:#EB4823}.share-btn.stumbleupon:hover{background:#d3401f}.share-btn.pinterest{background:#BD081C}.share-btn.pinterest:hover{background:#AD0000}.share-btn.reddit{background:#ff5700}.share-btn.reddit:hover{background:#e54e00}.share-btn.email{background:#444444}.share-btn.email:hover{background:#363636}#site-intro{grid-area:intro}#site-sidebar{grid-area:sidebar}#site-main{grid-area:main}#site-footer{grid-area:footer}#wrapper{display:grid;grid-template-areas:'intro' 'main' 'sidebar' 'footer';grid-template-rows:auto 1fr auto auto;margin:0 auto;max-width:90em;min-height:100vh;-moz-transition:.5s;-ms-transition:.5s;-o-transition:.5s;-webkit-transition:.5s;transition:.5s}@media (min-width: 1024px){#wrapper{grid-template-areas:'intro main' 'sidebar main' 'footer main' 'blank main';grid-template-columns:22em 1fr;grid-template-rows:auto auto auto 1fr;padding:0 2.5em}}#wrapper.overlay{opacity:.25}.post{background:#ffffff;margin:1.5em auto;padding:1em;max-width:55em}.post>header{border-bottom:solid 1px rgba(160,160,160,0.3);margin:1em 1em 0 1em;text-align:center}@media (min-width: 768px){.post>header{display:flex;justify-content:space-between;text-align:left}}.post>header div{padding:0 0 1em 0}@media (min-width: 768px){.post>header div{padding:2em 1em}}.post>header p{margin:-1em 0 0 0}.post>header .title{font-size:1.1em}.post>header .meta{display:flex;flex-direction:column}@media (min-width: 768px){.post>header .meta{border-left:solid 1px rgba(160,160,160,0.3);text-align:right;width:17em}}.post>header .meta .published{font-family:"Raleway", Helvetica, sans-serif;font-size:0.7em;font-weight:800;letter-spacing:0.25em;text-transform:uppercase}.post>header .meta p,.post>header .meta .author,.post>header .meta .format{font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;letter-spacing:0.25em;text-transform:uppercase}@media (min-width: 1024px){.post>div,.post>p{margin:0 1em}}@media (min-width: 1440px){.post>div,.post>p{margin:0 4em}}.post>div>p,.post>p{text-align:justify}.post a.image{border:0;display:block;margin:1em -1em;overflow:hidden}.post a.image:hover img{-webkit-transform:scale(1.05);-moz-transform:scale(1.05);-ms-transform:scale(1.05);-o-transform:scale(1.05);transform:scale(1.05)}.post a.image img{-webkit-transition:-webkit-transform 0.2s ease-out;-moz-transition:-moz-transform 0.2s ease-out;-ms-transition:-ms-transform 0.2s ease-out;-o-transition:-ms-transform 0.2s ease-out;transition:transform 0.2s ease-out;width:100%}.post>footer{display:flex;flex-direction:column}.post>footer .stats{display:flex;cursor:default;justify-content:space-around;list-style:none;margin:.5em 0;padding:0}.post>footer .stats li{display:flex;align-items:center;font-family:"Font Awesome 5 Free";font-weight:900;max-width:50%}.post>footer .stats li:hover ul li,.post>footer .stats li:active ul li{visibility:visible;opacity:1;line-height:1;margin:1em;width:auto}.post>footer .stats li.categories:before{content:"\f07b";width:20px}.post>footer .stats li.tags:before{content:"\f02c";width:20px}.post>footer .stats li ul{display:flex;flex-wrap:wrap;border-left:solid 1px rgba(160,160,160,0.3);margin:0 0 0 1em;padding:0 0 0 1em}.post>footer .stats li ul li{visibility:visible;font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;font-weight:400;letter-spacing:0.25em;line-height:0;margin:0;width:0;opacity:0;-webkit-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;-moz-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;-ms-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;-o-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;text-transform:uppercase}.post>footer .stats li ul li:nth-child(-n+3){visibility:visible;opacity:1;width:auto;line-height:1;margin:1em}.pagination{display:flex;justify-content:space-around;align-items:center}.pagination .previous,.pagination .next{margin:1em}#site-header{background-color:#ffffff;border-bottom:solid 1px rgba(160,160,160,0.3);-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);height:3.5em;line-height:3.5em;position:fixed;margin-bottom:3.5em;top:0;width:100%;z-index:10000}#site-header a{border:0;border-left:1px solid rgba(160,160,160,0.3);font-family:"Raleway", Helvetica, sans-serif;font-size:0.7em;font-weight:400;letter-spacing:0.25em;margin:0;padding:0 1.5em;text-transform:uppercase}#site-header .flyout-menu{background-color:#fff;border-left:1px solid rgba(160,160,160,0.3);height:calc(100vh - 3.5em);margin-top:3.5em;padding:0;position:fixed;top:0;-webkit-transition:0.5s;-moz-transition:0.5s;-ms-transition:0.5s;-o-transition:0.5s;transition:0.5s;z-index:20}#site-header .flyout-menu.active{-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);right:0 !important}#site-header .flyout-menu.active a{border-left:0}#site-header .flyout-menu h1{font-size:1em}#site-nav{align-items:center;display:flex;justify-content:space-between}#site-nav .flyout-menu{right:-183px;width:183px}@media (min-width: 768px){#site-nav .flyout-menu{right:-183px;width:183px}}@media (min-width: 1024px){#site-nav .flyout-menu{background-color:unset;border:none;flex-grow:1;height:auto;margin:0;overflow:auto;position:static;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;white-space:nowrap}#site-nav .flyout-menu::-webkit-scrollbar{height:.25em}#site-nav .flyout-menu::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3)}#site-nav .flyout-menu::-webkit-scrollbar-thumb{background-color:darkgrey;outline:1px solid slategrey}}#site-nav .flyout-menu.active{flex-wrap:wrap}@media (min-width: 1024px){#site-nav .flyout-menu.active{-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;-o-box-shadow:none;box-shadow:none}}#site-nav .flyout-menu .search-toggle{display:block;flex-basis:100%;order:1}#site-nav .flyout-menu .link{border-bottom:dotted 1px rgba(160,160,160,0.3);display:block;flex-basis:100%;order:2}@media (min-width: 1024px){#site-nav .flyout-menu .link{border-bottom:none;display:inline;order:0}#site-nav .flyout-menu .link:first-of-type{border:0}}#site-nav .flyout-menu .share-toggle{display:block;flex-basis:100%;order:3}@media (min-width: 768px){#site-nav .flyout-menu .share-toggle{display:none}}#site-nav .nav-title{align-items:center;display:flex;flex-grow:1;margin:0}#site-nav .nav-title a{border:0;font-size:0.35em;font-weight:800;margin-left:1.5em;opacity:1;padding:0}#site-nav .nav-title a img{height:4.8em;width:12.6em}@media (min-width: 1024px){#site-nav .nav-title{flex-grow:0}#site-nav .nav-title:after{background:rgba(160,160,160,0.3);content:'';display:block;height:56px;margin-left:1.5em;width:1px}#site-nav .nav-title a{min-width:12.5em}#site-nav .nav-title a img{margin-top:-0.2em}}#site-nav>.share-toggle,#site-nav>.search-toggle{display:none}@media (min-width: 425px){#site-nav>.share-toggle,#site-nav>.search-toggle{display:block;text-align:center;width:61px}#site-nav>.share-toggle i,#site-nav>.search-toggle i{vertical-align:middle}}#site-nav .lang-toggle{width:61px}#site-nav .lang-toggle:hover span{box-shadow:inset 0 0 0 100px rgba(46,187,170,0.5)}#site-nav .lang-toggle span{display:inline-block;font-size:1.75em;-webkit-transition:box-shadow 0.2s ease;-moz-transition:box-shadow 0.2s ease;-ms-transition:box-shadow 0.2s ease;-o-transition:box-shadow 0.2s ease;transition:box-shadow 0.2s ease;vertical-align:middle}#site-nav .nav-toggle{text-align:center;width:61px}@media (min-width: 1024px){#site-nav .nav-toggle{display:none}}#site-nav .nav-toggle i{vertical-align:middle}#lang-menu.flyout-menu{right:-61px;width:61px}#lang-menu.flyout-menu a{border-left:0}#lang-menu.flyout-menu span{display:inline-block;font-size:1.75em;-webkit-transition:box-shadow 0.2s ease;-moz-transition:box-shadow 0.2s ease;-ms-transition:box-shadow 0.2s ease;-o-transition:box-shadow 0.2s ease;transition:box-shadow 0.2s ease;vertical-align:middle}#lang-menu.flyout-menu span:hover{box-shadow:inset 0 0 0 100px rgba(46,187,170,0.5)}#lang-menu.flyout-menu .no-lang{cursor:not-allowed;opacity:.25}#lang-menu.flyout-menu .no-lang span:hover{box-shadow:none}#share-menu{display:flex;flex-direction:column;justify-content:space-between;text-align:center}@media (min-height: 600px){#share-menu{justify-content:flex-start}}#share-menu.flyout-menu{width:183px;right:-183px;padding:1em}#share-menu.flyout-menu h1,#share-menu.flyout-menu a{margin:0 .25em}@media (min-height: 600px){#share-menu.flyout-menu h1,#share-menu.flyout-menu a{margin:0 .25em .75em 0}}#share-menu.flyout-menu a p{visibility:hidden}#share-menu.flyout-menu .share-btn{height:50px}#share-menu.flyout-menu .share-btn i{font-size:1.5em}#site-intro{align-items:center;display:flex;flex-direction:column;margin-top:0.5em;padding:1em;text-align:center}#site-intro a{border:0}#site-intro p{opacity:0.6}#site-intro header h1{font-size:1.25em;margin-bottom:0}#site-intro main p{font-size:.7em;letter-spacing:.25em;line-height:2.5;margin-bottom:0;text-transform:uppercase}#site-sidebar header h1{font-size:1em}#site-sidebar>*{border-top:solid 1px rgba(160,160,160,0.3);margin:3em 2em 0 2em;padding-top:3em}@media (min-width: 1024px){#site-sidebar>*:first-child{margin-top:0}}#recent-posts{display:flex;flex-wrap:wrap;justify-content:space-between}#recent-posts>header{flex:1 1 100%}#recent-posts .mini-post{background:#ffffff;border:solid 1px rgba(160,160,160,0.3);display:flex;flex-direction:column;margin-bottom:1em;width:100%}@media (min-width: 768px){#recent-posts .mini-post{width:49%}}@media (min-width: 1024px){#recent-posts .mini-post{width:100%}}#recent-posts .mini-post header{min-height:4em;padding:1.25em 1.25em 0.1em 1.25em;position:relative}@media (min-width: 768px){#recent-posts .mini-post header{border-top:solid 1px rgba(160,160,160,0.3)}}@media (min-width: 1024px){#recent-posts .mini-post header{border:0}}#recent-posts .mini-post header h1{font-size:0.7em}#recent-posts .mini-post header .published{display:block;font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;font-weight:400;letter-spacing:0.25em;margin:-0.625em 0 1.7em 0;text-transform:uppercase}#recent-posts .mini-post header .author,#recent-posts .mini-post header .format{position:absolute;right:2em;top:2em}#recent-posts .mini-post section{flex-grow:1;overflow:hidden}#recent-posts .mini-post section .image:hover img{-moz-transform:scale(1.05);-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}#recent-posts .mini-post section .image img{display:block;height:100%;margin:0;-moz-transition:-moz-transform 0.2s ease-out;-webkit-transition:-webkit-transform 0.2s ease-out;-ms-transition:-ms-transform 0.2s ease-out;transition:transform 0.2s ease-out;width:100%}#categories .count{float:right}#mini-bio p{opacity:0.65;font-size:0.9em;padding:0}#mini-bio footer{text-align:center}#site-footer{border-top:solid 1px rgba(160,160,160,0.3);margin:3em 2em 0 2em;padding-top:3em}#site-footer .copyright{color:#aaaaaa;font-family:"Raleway", Helvetica, sans-serif;font-size:0.5em;font-weight:400;letter-spacing:0.25em;text-align:center;text-transform:uppercase}#back-to-top{bottom:15px;color:#aaaaaa;display:none;position:fixed;right:15px;border:0}#site-intro .socnet-icons,#site-footer .socnet-icons{display:flex;flex-wrap:wrap;justify-content:center;padding-left:0}#site-intro .socnet-icons li,#site-footer .socnet-icons li{margin:0 .5em;min-width:20px;list-style-type:none}#site-intro .socnet-icons li a,#site-footer .socnet-icons li a{opacity:0.6;border:none}#socnet-share{display:flex;flex-wrap:wrap;justify-content:space-between;margin:1em 1em 0 1em}@media (min-width: 768px){#socnet-share{justify-content:flex-start}}#socnet-share a{margin-bottom:.5em;padding:.5em;width:4em}@media (min-width: 768px){#socnet-share a{margin-right:.25em}}#socnet-share a i{font-size:1em}#socnet-share p{display:none}.hidden{display:none !important}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto;white-space:inherit}.invisible{visibility:hidden}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}@media print{*,*:before,*:after{background:transparent !important;color:#000 !important;-webkit-box-shadow:none !important;box-shadow:none !important;text-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre{white-space:pre-wrap !important}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}} diff --git a/assets/scss/main.scss b/assets/scss/main.scss index 1268396b..e81f1488 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -514,45 +514,161 @@ textarea { } /* Staticman Comments */ + $avatar-size: 3.25em; + $avatar-rsep: 1em; + $comment-vsep: 2.5em; + $comment-content-vsep: 1.5em; .post-comment { position: relative; - margin-bottom: 3em; - padding-left: 4.5em; + margin: $comment-vsep 0; font-size: .8em; - } - .post-comment-avatar { - float: left; - width: 3.25em; - height: 3.25em; - margin-right: .5em; - } + /* Comment replies' additional left margin */ + &.post-comment-reply { + margin-left: 2em; + /* Display Font Awesome '↷' to signify reply target */ + .post-comment-author::after { + font-family: 'Font Awesome 5 Free'; + content: '\f064'; + margin: 0 0.3em; + display: inline-block; + vertical-align: middle; + font-weight: 900; + } + } - .post-comment-author { - display: inline-block; - margin: 0 0 .25em; - font-size: 1.25em; - line-height: 1; - a { - color: inherit; - text-decoration: none; + .post-comment-avatar { + float: left; + width: $avatar-size; + height: $avatar-size; + margin: 0 $avatar-rsep 0 0; + } + + .post-comment-author-container { + /* -ve margin botton so that timestamp and author aren't too far */ + margin-bottom: -0.5em; + .post-comment-author { + display: inline-block; + margin: 0 0 0; + font-size: 1.25em; + line-height: 0; + a { + color: inherit; + text-decoration: none; + } + } + } + + .post-comment-timestamp { + font-size: .8em; + a { + color: inherit; + text-decoration: none; + } + } + + .post-comment-content { + margin: $comment-content-vsep 0 0 $avatar-size + $avatar-rsep; + > figure, > ol, > p, + > table, > ul { + margin-bottom: 1.5em; + } + } + + .post-comment-reply-btn-container { + margin: $comment-content-vsep 0 $comment-content-vsep $avatar-size + $avatar-rsep; + /* Display Font Awesome '↶' to signify reply target */ + .post-comment-reply-btn { + font-size: .6rem; + &::before { + font-family: 'Font Awesome 5 Free'; + content: '\f3e5'; + margin: 0 0.6em 0 0; + display: inline-block; + vertical-align: middle; + font-weight: 900; + } + } } } - .post-comment-timestamp { - font-size: .8em; - a { - color: inherit; - text-decoration: none; + /* Comment form */ + .post-new-comment { + /* Disable the form when it has just been submitted */ + &.loading { + opacity: 0.5; + } + + /* Post reply notice with vertical align middle for consistent output */ + .post-reply-notice { + .post-comment-avatar { + width: 2em; + height: 2em; + margin: 0 .6em; + } + + /* Display close button 'x' to clear reset reply target */ + .post-reply-close-btn { + margin: 0 .5em; + padding: unset; + border: none; + vertical-align: middle; + &:hover { + border: none; + } + &:after { + content: '\2716'; + } + } + + .post-reply-arrow::after { + font-family: 'Font Awesome 5 Free'; + content: '\f064'; + display: inline-block; + vertical-align: middle; + font-weight: 900; + } + + .post-reply-name { + vertical-align: middle; + } + } + + /* Format reCaptcha */ + .g-recaptcha { + margin: 0 0 0.25em; + } + + /* Buttons */ + .button { + margin: 0.25em 0; } } - .post-comment-content { - margin: 1.5em 0 0 3.75em; - > figure, > ol, > p, - > table, > ul { - margin-bottom: 1.5em; + /* Copied from other blocks for reply and 'x' buttons */ + .button { + margin: .25em 0; + background-color: transparent; + border: solid 1px rgba(160, 160, 160, 0.3); + color: #3c3b3b; + cursor: pointer; + display: inline-block; + font-family: "Raleway", Helvetica, sans-serif; + font-weight: 800; + -moz-transition: background-color 0.2s ease, border 0.2s ease, color 0.2s ease; + -webkit-transition: background-color 0.2s ease, border 0.2s ease, color 0.2s ease; + -ms-transition: background-color 0.2s ease, border 0.2s ease, color 0.2s ease; + transition: background-color 0.2s ease, border 0.2s ease, color 0.2s ease; + text-align: center; + text-transform: uppercase; + width: fit-content; + &:hover { + border: solid 1px $accent-color; + color: $accent-color !important; + } + &:active { + background-color: rgba(46, 186, 174, 0.05); } } @@ -1214,6 +1330,18 @@ textarea { display: flex; flex-grow: 1; margin: 0; + a { + border: 0; + font-size: 0.35em; + font-weight: 800; + margin-left: 1.5em; + opacity: 1; + padding: 0; + img { + height: 4.8em; + width: 12.6em; + } + } @include for-desktop-up { flex-grow: 0; &:after { @@ -1226,16 +1354,11 @@ textarea { } a { min-width: 12.5em; + img { + margin-top: -0.2em; + } } } - a { - border: 0; - font-size: 0.35em; - font-weight: 800; - margin-left: 1.5em; - opacity: 1; - padding: 0; - } } > .share-toggle, > .search-toggle { display: none; diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2cf49bc5..cae46ada 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -94,7 +94,7 @@ disableLanguages = [""] # If using GitHub, go to https://github.com/apps/staticman-net # If using GitLab, just add the GitLab bot, NO need to hit `/connect/v3/...` enabled = false - api = "" # without trailing slash, defaults to "api.staticman.net" + api = "" # without trailing slash, defaults to "staticman3.herokuapp.com" gitProvider = "github" # either "github" or "gitlab" username = "" repo = "" @@ -145,11 +145,48 @@ disableLanguages = [""] LanguageName = "English" weight = 1 + [Languages.de] + languageCode = "de" + LanguageName = "Deutsch" + title = "Hugo Future Imperfect Slim auf deutsch" + description = "Ein Thema von HTML5 UP, portiert von Julio Pescador. Vereinfacht und verbessert von Patrick Collins. Mehrsprachig von StatnMap. Unterstützt von: Hugo. " + weight = 2 + + [[Languages.de.menu.main]] + name = "Startseite" + url = "/" + identifier = "fas fa-home" + weight = 1 + + [[Languages.de.menu.main]] + name = "Über mich" + url = "/about/" + identifier = "far fa-id-card" + weight = 2 + + [[Languages.de.menu.main]] + name = "Blog" + url = "/blog/" + identifier = "far fa-newspaper" + weight = 3 + + [[Languages.de.menu.main]] + name = "Kategorien" + url = "/categories/" + identifier = "fas fa-sitemap" + weight = 5 + + [[Languages.de.menu.main]] + name = "Kontakt" + url = "/contact/" + identifier = "far fa-envelope" + weight = 6 + [Languages.fr] languageCode = "fr" LanguageName = "Français" - title = "Hugo Future Imperfect Slim in fr" - description = "Un thème de HTML5 UP, porté par Julio Pescador. Slimmed et amélioré par Patrick Collins. Multilingue par StatnMap. Propulsé par Hugo. " + title = "Hugo Future Imperfect Slim en français" + description = "Un thème par HTML5 UP, porté par Julio Pescador. Simplifié et amélioré par Patrick Collins. Multilingue par StatnMap. Propulsé par Hugo." weight = 2 [[Languages.fr.menu.main]] @@ -219,38 +256,38 @@ disableLanguages = [""] identifier = "far fa-envelope" weight = 6 - [Languages.br] - languageCode = "br" + [Languages.pt] + languageCode = "pt" LanguageName = "Português" title = "Hugo Future Imperfect Slim em português" description = "Um tema do HTML5 UP, portado por Julio Pescadora e reduzido por Patrick Collins. Multilíngue por StatnMap. Feito com Hugo." weight = 4 - [[Languages.br.menu.main]] + [[Languages.pt.menu.main]] name = "Início" url = "/" identifier = "fas fa-home" weight = 1 - [[Languages.br.menu.main]] + [[Languages.pt.menu.main]] name = "Sobre" url = "/about/" identifier = "far fa-id-card" weight = 2 - [[Languages.br.menu.main]] + [[Languages.pt.menu.main]] name = "Blog" url = "/blog/" identifier = "far fa-newspaper" weight = 3 - [[Languages.br.menu.main]] + [[Languages.pt.menu.main]] name = "Categorias" url = "/categories/" identifier = "fas fa-sitemap" weight = 5 - [[Languages.br.menu.main]] + [[Languages.pt.menu.main]] name = "Contato" url = "/contact/" identifier = "far fa-envelope" diff --git a/exampleSite/content/about/_index.br.md b/exampleSite/content/about/_index.pt.md similarity index 100% rename from exampleSite/content/about/_index.br.md rename to exampleSite/content/about/_index.pt.md diff --git a/exampleSite/content/blog/creating-a-new-theme.de.md b/exampleSite/content/blog/creating-a-new-theme.de.md new file mode 100644 index 00000000..74bf9065 --- /dev/null +++ b/exampleSite/content/blog/creating-a-new-theme.de.md @@ -0,0 +1,1195 @@ ++++ +author = "Autor eines Themas" +categories = ["Hugo"] +date = "2014-09-28" +description = "Erfahren Sie, wie Sie ein Thema für Hugo erstellen" +featured = "pic03.jpg" +featuredalt = "Pic 3" +featuredpath = "date" +linktitle = "" +title = "Ein neues Thema erstellen" +type = "post" + ++++ + +## Introduction + +This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I'll explain how Hugo uses templates and how you can organize your templates to create a theme. I won't cover using CSS to style your theme. + +We'll start with creating a new site with a very basic template. Then we'll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites. + +In this tutorial, commands that you enter will start with the "$" prompt. The output will follow. Lines that start with "#" are comments that I've added to explain a point. When I show updates to a file, the ":wq" on the last line means to save the file. + +Here's an example: + +``` +## this is a comment +$ echo this is a command +this is a command + +## edit the file +$vi foo.md ++++ +date = "2014-09-28" +title = "creating a new theme" ++++ + +bah and humbug +:wq + +## show it +$ cat foo.md ++++ +date = "2014-09-28" +title = "creating a new theme" ++++ + +bah and humbug +$ +``` + + +## Some Definitions + +There are a few concepts that you need to understand before creating a theme. + +### Skins + +Skins are the files responsible for the look and feel of your site. It’s the CSS that controls colors and fonts, it’s the Javascript that determines actions and reactions. It’s also the rules that Hugo uses to transform your content into the HTML that the site will serve to visitors. + +You have two ways to create a skin. The simplest way is to create it in the ```layouts/``` directory. If you do, then you don’t have to worry about configuring Hugo to recognize it. The first place that Hugo will look for rules and files is in the ```layouts/``` directory so it will always find the skin. + +Your second choice is to create it in a sub-directory of the ```themes/``` directory. If you do, then you must always tell Hugo where to search for the skin. It’s extra work, though, so why bother with it? + +The difference between creating a skin in ```layouts/``` and creating it in ```themes/``` is very subtle. A skin in ```layouts/``` can’t be customized without updating the templates and static files that it is built from. A skin created in ```themes/```, on the other hand, can be and that makes it easier for other people to use it. + +The rest of this tutorial will call a skin created in the ```themes/``` directory a theme. + +Note that you can use this tutorial to create a skin in the ```layouts/``` directory if you wish to. The main difference will be that you won’t need to update the site’s configuration file to use a theme. + +### The Home Page + +The home page, or landing page, is the first page that many visitors to a site see. It is the index.html file in the root directory of the web site. Since Hugo writes files to the public/ directory, our home page is public/index.html. + +### Site Configuration File + +When Hugo runs, it looks for a configuration file that contains settings that override default values for the entire site. The file can use TOML, YAML, or JSON. I prefer to use TOML for my configuration files. If you prefer to use JSON or YAML, you’ll need to translate my examples. You’ll also need to change the name of the file since Hugo uses the extension to determine how to process it. + +Hugo translates Markdown files into HTML. By default, Hugo expects to find Markdown files in your ```content/``` directory and template files in your ```themes/``` directory. It will create HTML files in your ```public/``` directory. You can change this by specifying alternate locations in the configuration file. + +### Content + +Content is stored in text files that contain two sections. The first section is the “front matter,” which is the meta-information on the content. The second section contains Markdown that will be converted to HTML. + +#### Front Matter + +The front matter is information about the content. Like the configuration file, it can be written in TOML, YAML, or JSON. Unlike the configuration file, Hugo doesn’t use the file’s extension to know the format. It looks for markers to signal the type. TOML is surrounded by “`+++`”, YAML by “`---`”, and JSON is enclosed in curly braces. I prefer to use TOML, so you’ll need to translate my examples if you prefer YAML or JSON. + +The information in the front matter is passed into the template before the content is rendered into HTML. + +#### Markdown + +Content is written in Markdown which makes it easier to create the content. Hugo runs the content through a Markdown engine to create the HTML which will be written to the output file. + +### Template Files + +Hugo uses template files to render content into HTML. Template files are a bridge between the content and presentation. Rules in the template define what content is published, where it's published to, and how it will rendered to the HTML file. The template guides the presentation by specifying the style to use. + +There are three types of templates: single, list, and partial. Each type takes a bit of content as input and transforms it based on the commands in the template. + +Hugo uses its knowledge of the content to find the template file used to render the content. If it can’t find a template that is an exact match for the content, it will shift up a level and search from there. It will continue to do so until it finds a matching template or runs out of templates to try. If it can’t find a template, it will use the default template for the site. + +Please note that you can use the front matter to influence Hugo’s choice of templates. + +#### Single Template + +A single template is used to render a single piece of content. For example, an article or post would be a single piece of content and use a single template. + +#### List Template + +A list template renders a group of related content. That could be a summary of recent postings or all articles in a category. List templates can contain multiple groups. + +The homepage template is a special type of list template. Hugo assumes that the home page of your site will act as the portal for the rest of the content in the site. + +#### Partial Template + +A partial template is a template that can be included in other templates. Partial templates must be called using the “partial” template command. They are very handy for rolling up common behavior. For example, your site may have a banner that all pages use. Instead of copying the text of the banner into every single and list template, you could create a partial with the banner in it. That way if you decide to change the banner, you only have to change the partial template. + +## Create a New Site + +Let's use Hugo to create a new web site. I'm a Mac user, so I'll create mine in my home directory, in the Sites folder. If you're using Linux, you might have to create the folder first. + +The "new site" command will create a skeleton of a site. It will give you the basic directory structure and a useable configuration file. + +``` +$ hugo new site ~/Sites/zafta +$ cd ~/Sites/zafta +$ ls -l +total 8 +drwxr-xr-x 7 quoha staff 238 Sep 29 16:49 . +drwxr-xr-x 3 quoha staff 102 Sep 29 16:49 .. +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes +-rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static +$ +``` + +Take a look in the content/ directory to confirm that it is empty. + +The other directories (archetypes/, layouts/, and static/) are used when customizing a theme. That's a topic for a different tutorial, so please ignore them for now. + +### Generate the HTML For the New Site + +Running the `hugo` command with no options will read all the available content and generate the HTML files. It will also copy all static files (that's everything that's not content). Since we have an empty site, it won't do much, but it will do it very quickly. + +``` +$ hugo --verbose +INFO: 2014/09/29 Using config file: config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html + _default/single.html] +WARN: 2014/09/29 Unable to locate layout: [404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms +$ +``` + +The "`--verbose`" flag gives extra information that will be helpful when we build the template. Every line of the output that starts with "INFO:" or "WARN:" is present because we used that flag. The lines that start with "WARN:" are warning messages. We'll go over them later. + +We can verify that the command worked by looking at the directory again. + +``` +$ ls -l +total 8 +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes +-rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts +drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static +$ +``` + +See that new public/ directory? Hugo placed all generated content there. When you're ready to publish your web site, that's the place to start. For now, though, let's just confirm that we have what we'd expect from a site with no content. + +``` +$ ls -l public +total 16 +-rw-r--r-- 1 quoha staff 416 Sep 29 17:02 index.xml +-rw-r--r-- 1 quoha staff 262 Sep 29 17:02 sitemap.xml +$ +``` + +Hugo created two XML files, which is standard, but there are no HTML files. + + + +### Test the New Site + +Verify that you can run the built-in web server. It will dramatically shorten your development cycle if you do. Start it by running the "server" command. If it is successful, you will see output similar to the following: + +``` +$ hugo server --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html + _default/single.html] +WARN: 2014/09/29 Unable to locate layout: [404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms +Serving pages from /Users/quoha/Sites/zafta/public +Web Server is available at http://localhost:1313 +Press Ctrl+C to stop +``` + +Connect to the listed URL (it's on the line that starts with "Web Server"). If everything is working correctly, you should get a page that shows the following: + +``` +index.xml +sitemap.xml +``` + +That's a listing of your public/ directory. Hugo didn't create a home page because our site has no content. When there's no index.html file in a directory, the server lists the files in the directory, which is what you should see in your browser. + +Let’s go back and look at those warnings again. + +``` +WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html + _default/single.html] +WARN: 2014/09/29 Unable to locate layout: [404.html] +``` + +That second warning is easier to explain. We haven’t created a template to be used to generate “page not found errors.” The 404 message is a topic for a separate tutorial. + +Now for the first warning. It is for the home page. You can tell because the first layout that it looked for was “index.html.” That’s only used by the home page. + +I like that the verbose flag causes Hugo to list the files that it's searching for. For the home page, they are index.html, _default/list.html, and _default/single.html. There are some rules that we'll cover later that explain the names and paths. For now, just remember that Hugo couldn't find a template for the home page and it told you so. + +At this point, you've got a working installation and site that we can build upon. All that’s left is to add some content and a theme to display it. + +## Create a New Theme + +Hugo doesn't ship with a default theme. There are a few available (I counted a dozen when I first installed Hugo) and Hugo comes with a command to create new themes. + +We're going to create a new theme called "zafta." Since the goal of this tutorial is to show you how to fill out the files to pull in your content, the theme will not contain any CSS. In other words, ugly but functional. + +All themes have opinions on content and layout. For example, Zafta uses "post" over "blog". Strong opinions make for simpler templates but differing opinions make it tougher to use themes. When you build a theme, consider using the terms that other themes do. + + +### Create a Skeleton + +Use the hugo "new" command to create the skeleton of a theme. This creates the directory structure and places empty files for you to fill out. + +``` +$ hugo new theme zafta + +$ ls -l +total 8 +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes +-rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts +drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public +drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static +drwxr-xr-x 3 quoha staff 102 Sep 29 17:31 themes + +$ find themes -type f | xargs ls -l +-rw-r--r-- 1 quoha staff 1081 Sep 29 17:31 themes/zafta/LICENSE.md +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/archetypes/default.md +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/ + list.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/ + single.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/ + footer.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/ + header.html +-rw-r--r-- 1 quoha staff 93 Sep 29 17:31 themes/zafta/theme.toml +$ +``` + +The skeleton includes templates (the files ending in .html), license file, a description of your theme (the theme.toml file), and an empty archetype. + +Please take a minute to fill out the theme.toml and LICENSE.md files. They're optional, but if you're going to be distributing your theme, it tells the world who to praise (or blame). It's also nice to declare the license so that people will know how they can use the theme. + +``` +$ vi themes/zafta/theme.toml +author = "michael d henderson" +description = "a minimal working template" +license = "MIT" +name = "zafta" +source_repo = "" +tags = ["tags", "categories"] +:wq + +## also edit themes/zafta/LICENSE.md and change +## the bit that says "YOUR_NAME_HERE" +``` + +Note that the the skeleton's template files are empty. Don't worry, we'll be changing that shortly. + +``` +$ find themes/zafta -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/ + list.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/ + single.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/ + index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/ + footer.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/ + header.html +$ +``` + + + +### Update the Configuration File to Use the Theme + +Now that we've got a theme to work with, it's a good idea to add the theme name to the configuration file. This is optional, because you can always add "-t zafta" on all your commands. I like to put it the configuration file because I like shorter command lines. If you don't put it in the configuration file or specify it on the command line, you won't use the template that you're expecting to. + +Edit the file to add the theme, add a title for the site, and specify that all of our content will use the TOML format. + +``` +$ vi config.toml +theme = "zafta" +baseurl = "" +languageCode = "en-us" +title = "zafta - totally refreshing" +MetaDataFormat = "toml" +:wq + +$ +``` + +### Generate the Site + +Now that we have an empty theme, let's generate the site again. + +``` +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms +$ +``` + +Did you notice that the output is different? The warning message for the home page has disappeared and we have an additional information line saying that Hugo is syncing from the theme's directory. + +Let's check the public/ directory to see what Hugo's created. + +``` +$ ls -l public +total 16 +drwxr-xr-x 2 quoha staff 68 Sep 29 17:56 css +-rw-r--r-- 1 quoha staff 0 Sep 29 17:56 index.html +-rw-r--r-- 1 quoha staff 407 Sep 29 17:56 index.xml +drwxr-xr-x 2 quoha staff 68 Sep 29 17:56 js +-rw-r--r-- 1 quoha staff 243 Sep 29 17:56 sitemap.xml +$ +``` + +Notice four things: + +1. Hugo created a home page. This is the file public/index.html. +2. Hugo created a css/ directory. +3. Hugo created a js/ directory. +4. Hugo claimed that it created 0 pages. It created a file and copied over static files, but didn't create any pages. That's because it considers a "page" to be a file created directly from a content file. It doesn't count things like the index.html files that it creates automatically. + +#### The Home Page + +Hugo supports many different types of templates. The home page is special because it gets its own type of template and its own template file. The file, layouts/index.html, is used to generate the HTML for the home page. The Hugo documentation says that this is the only required template, but that depends. Hugo's warning message shows that it looks for three different templates: + +``` +WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html + _default/single.html] +``` + +If it can't find any of these, it completely skips creating the home page. We noticed that when we built the site without having a theme installed. + +When Hugo created our theme, it created an empty home page template. Now, when we build the site, Hugo finds the template and uses it to generate the HTML for the home page. Since the template file is empty, the HTML file is empty, too. If the template had any rules in it, then Hugo would have used them to generate the home page. + +``` +$ find . -name index.html | xargs ls -l +-rw-r--r-- 1 quoha staff 0 Sep 29 20:21 ./public/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 ./themes/zafta/layouts/index.html +$ +``` + +#### The Magic of Static + +Hugo does two things when generating the site. It uses templates to transform content into HTML and it copies static files into the site. Unlike content, static files are not transformed. They are copied exactly as they are. + +Hugo assumes that your site will use both CSS and JavaScript, so it creates directories in your theme to hold them. Remember opinions? Well, Hugo's opinion is that you'll store your CSS in a directory named css/ and your JavaScript in a directory named js/. If you don't like that, you can change the directory names in your theme directory or even delete them completely. Hugo's nice enough to offer its opinion, then behave nicely if you disagree. + +``` +$ find themes/zafta -type d | xargs ls -ld +drwxr-xr-x 7 quoha staff 238 Sep 29 17:38 themes/zafta +drwxr-xr-x 3 quoha staff 102 Sep 29 17:31 themes/zafta/archetypes +drwxr-xr-x 5 quoha staff 170 Sep 29 17:31 themes/zafta/layouts +drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/layouts/_default +drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/layouts/partials +drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/static +drwxr-xr-x 2 quoha staff 68 Sep 29 17:31 themes/zafta/static/css +drwxr-xr-x 2 quoha staff 68 Sep 29 17:31 themes/zafta/static/js +$ +``` + +## The Theme Development Cycle + +When you're working on a theme, you will make changes in the theme's directory, rebuild the site, and check your changes in the browser. Hugo makes this very easy: + +1. Purge the public/ directory. +2. Run the built in web server in watch mode. +3. Open your site in a browser. +4. Update the theme. +5. Glance at your browser window to see changes. +6. Return to step 4. + +I’ll throw in one more opinion: never work on a theme on a live site. Always work on a copy of your site. Make changes to your theme, test them, then copy them up to your site. For added safety, use a tool like Git to keep a revision history of your content and your theme. Believe me when I say that it is too easy to lose both your mind and your changes. + +Check the main Hugo site for information on using Git with Hugo. + +### Purge the public/ Directory + +When generating the site, Hugo will create new files and update existing ones in the ```public/``` directory. It will not delete files that are no longer used. For example, files that were created in the wrong directory or with the wrong title will remain. If you leave them, you might get confused by them later. I recommend cleaning out your site prior to generating it. + +Note: If you're building on an SSD, you should ignore this. Churning on a SSD can be costly. + +### Hugo's Watch Option + +Hugo's "`--watch`" option will monitor the content/ and your theme directories for changes and rebuild the site automatically. + +### Live Reload + +Hugo's built in web server supports live reload. As pages are saved on the server, the browser is told to refresh the page. Usually, this happens faster than you can say, "Wow, that's totally amazing." + +### Development Commands + +Use the following commands as the basis for your workflow. + +``` +## purge old files. hugo will recreate the public directory. +## +$ rm -rf public +## +## run hugo in watch mode +## +$ hugo server --watch --verbose +``` + +Here's sample output showing Hugo detecting a change to the template for the home page. Once generated, the web browser automatically reloaded the page. I've said this before, it's amazing. + + +``` +$ rm -rf public +$ hugo server --watch --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms +Watching for changes in /Users/quoha/Sites/zafta/content +Serving pages from /Users/quoha/Sites/zafta/public +Web Server is available at http://localhost:1313 +Press Ctrl+C to stop +INFO: 2014/09/29 File System Event: ["/Users/quoha/Sites/zafta/themes/zafta/ + layouts/index.html": MODIFY|ATTRIB] +Change detected, rebuilding site + +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 1 ms +``` + +## Update the Home Page Template + +The home page is one of a few special pages that Hugo creates automatically. As mentioned earlier, it looks for one of three files in the theme's layout/ directory: + +1. index.html +2. _default/list.html +3. _default/single.html + +We could update one of the default templates, but a good design decision is to update the most specific template available. That's not a hard and fast rule (in fact, we'll break it a few times in this tutorial), but it is a good generalization. + +### Make a Static Home Page + +Right now, that page is empty because we don't have any content and we don't have any logic in the template. Let's change that by adding some text to the template. + +``` +$ vi themes/zafta/layouts/index.html + + + +

hugo says hello!

+ + +:wq + +$ +``` + +Build the web site and then verify the results. + +``` +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms + +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 78 Sep 29 21:26 public/index.html + +$ cat public/index.html + + + +

hugo says hello!

+ +``` + +#### Live Reload + +Note: If you're running the server with the `--watch` option, you'll see different content in the file: + +``` +$ cat public/index.html + + + +

hugo says hello!

+ + +``` + +When you use `--watch`, the Live Reload script is added by Hugo. Look for live reload in the documentation to see what it does and how to disable it. + +### Build a "Dynamic" Home Page + +"Dynamic home page?" Hugo's a static web site generator, so this seems an odd thing to say. I mean let's have the home page automatically reflect the content in the site every time Hugo builds it. We'll use iteration in the template to do that. + +#### Create New Posts + +Now that we have the home page generating static content, let's add some content to the site. We'll display these posts as a list on the home page and on their own page, too. + +Hugo has a command to generate a skeleton post, just like it does for sites and themes. + +``` +$ hugo --verbose new post/first.md +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 attempting to create post/first.md of post +INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/ + default.md +ERROR: 2014/09/29 Unable to Cast to map[string]interface{} + +$ +``` + +That wasn't very nice, was it? + +The "new" command uses an archetype to create the post file. Hugo created an empty default archetype file, but that causes an error when there's a theme. For me, the workaround was to create an archetypes file specifically for the post type. + +``` +$ vi themes/zafta/archetypes/post.md ++++ +Description = "" +Tags = [] +Categories = [] ++++ +:wq + +$ find themes/zafta/archetypes -type f | xargs ls -l +-rw-r--r-- 1 quoha staff 0 Sep 29 21:53 themes/zafta/archetypes/default.md +-rw-r--r-- 1 quoha staff 51 Sep 29 21:54 themes/zafta/archetypes/post.md + +$ hugo --verbose new post/first.md +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 attempting to create post/first.md of post +INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/ + post.md +INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/first.md +/Users/quoha/Sites/zafta/content/post/first.md created + +$ hugo --verbose new post/second.md +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 attempting to create post/second.md of post +INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/ + post.md +INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/second.md +/Users/quoha/Sites/zafta/content/post/second.md created + +$ ls -l content/post +total 16 +-rw-r--r-- 1 quoha staff 104 Sep 29 21:54 first.md +-rw-r--r-- 1 quoha staff 105 Sep 29 21:57 second.md + +$ cat content/post/first.md ++++ +Categories = [] +Description = "" +Tags = [] +date = "2014-09-29T21:54:53-05:00" +title = "first" + ++++ +my first post + +$ cat content/post/second.md ++++ +Categories = [] +Description = "" +Tags = [] +date = "2014-09-29T21:57:09-05:00" +title = "second" + ++++ +my second post + +$ +``` + +Build the web site and then verify the results. + +``` +$ rm -rf public +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 found taxonomies: map[string]string{"category":"categories", + "tag":"tags"} +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +2 pages created +0 tags created +0 categories created +in 4 ms +$ +``` + +The output says that it created 2 pages. Those are our new posts: + +``` +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 78 Sep 29 22:13 public/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/first/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/second/index.html +$ +``` + +The new files are empty because because the templates used to generate the content are empty. The homepage doesn't show the new content, either. We have to update the templates to add the posts. + +### List and Single Templates + +In Hugo, we have three major kinds of templates. There's the home page template that we updated previously. It is used only by the home page. We also have "single" templates which are used to generate output for a single content file. We also have "list" templates that are used to group multiple pieces of content before generating output. + +Generally speaking, list templates are named "list.html" and single templates are named "single.html." + +There are three other types of templates: partials, content views, and terms. We will not go into much detail on these. + +### Add Content to the Homepage + +The home page will contain a list of posts. Let's update its template to add the posts that we just created. The logic in the template will run every time we build the site. + +``` +$ vi themes/zafta/layouts/index.html + + + + {{ range first 10 .Data.Pages }} +

{{ .Title }}

+ {{ end }} + + +:wq + +$ +``` + +Hugo uses the Go template engine. That engine scans the template files for commands which are enclosed between "{{" and "}}". In our template, the commands are: + +1. range +2. .Title +3. end + +The "range" command is an iterator. We're going to use it to go through the first ten pages. Every HTML file that Hugo creates is treated as a page, so looping through the list of pages will look at every file that will be created. + +The ".Title" command prints the value of the "title" variable. Hugo pulls it from the front matter in the Markdown file. + +The "end" command signals the end of the range iterator. The engine loops back to the top of the iteration when it finds "end." Everything between the "range" and "end" is evaluated every time the engine goes through the iteration. In this file, that would cause the title from the first ten pages to be output as heading level one. + +It's helpful to remember that some variables, like .Data, are created before any output files. Hugo loads every content file into the variable and then gives the template a chance to process before creating the HTML files. + +Build the web site and then verify the results. + +``` +$ rm -rf public +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", + "category":"categories"} +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +2 pages created +0 tags created +0 categories created +in 4 ms +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 94 Sep 29 22:23 public/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/first/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/second/index.html +$ cat public/index.html + + + + +

second

+ +

first

+ + + +$ +``` + +Congratulations, the home page shows the title of the two posts. The posts themselves are still empty, but let's take a moment to appreciate what we've done. Your template now generates output dynamically. Believe it or not, by inserting the range command inside of those curly braces, you've learned everything you need to know to build a theme. All that's really left is understanding which template will be used to generate each content file and becoming familiar with the commands for the template engine. + +And, if that were entirely true, this tutorial would be much shorter. There are a few things to know that will make creating a new template much easier. Don't worry, though, that's all to come. + +### Add Content to the Posts + +We're working with posts, which are in the content/post/ directory. That means that their section is "post" (and if we don't do something weird, their type is also "post"). + +Hugo uses the section and type to find the template file for every piece of content. Hugo will first look for a template file that matches the section or type name. If it can't find one, then it will look in the _default/ directory. There are some twists that we'll cover when we get to categories and tags, but for now we can assume that Hugo will try post/single.html, then _default/single.html. + +Now that we know the search rule, let's see what we actually have available: + +``` +$ find themes/zafta -name single.html | xargs ls -l +-rw-r--r-- 1 quoha staff 132 Sep 29 17:31 themes/zafta/layouts/_default/ + single.html +``` + +We could create a new template, post/single.html, or change the default. Since we don't know of any other content types, let's start with updating the default. + +Remember, any content that we haven't created a template for will end up using this template. That can be good or bad. Bad because I know that we're going to be adding different types of content and we're going to end up undoing some of the changes we've made. It's good because we'll be able to see immediate results. It's also good to start here because we can start to build the basic layout for the site. As we add more content types, we'll refactor this file and move logic around. Hugo makes that fairly painless, so we'll accept the cost and proceed. + +Please see the Hugo documentation on template rendering for all the details on determining which template to use. And, as the docs mention, if you're building a single page application (SPA) web site, you can delete all of the other templates and work with just the default single page. That's a refreshing amount of joy right there. + +#### Update the Template File + +``` +$ vi themes/zafta/layouts/_default/single.html + + + + {{ .Title }} + + +

{{ .Title }}

+ {{ .Content }} + + +:wq + +$ +``` + +Build the web site and verify the results. + +``` +$ rm -rf public +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", + "category":"categories"} +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +2 pages created +0 tags created +0 categories created +in 4 ms + +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 94 Sep 29 22:40 public/index.html +-rw-r--r-- 1 quoha staff 125 Sep 29 22:40 public/post/first/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:40 public/post/index.html +-rw-r--r-- 1 quoha staff 128 Sep 29 22:40 public/post/second/index.html + +$ cat public/post/first/index.html + + + + first + + +

first

+

my first post

+ + + + +$ cat public/post/second/index.html + + + + second + + +

second

+

my second post

+ + + +$ +``` + +Notice that the posts now have content. You can go to localhost:1313/post/first to verify. + +### Linking to Content + +The posts are on the home page. Let's add a link from there to the post. Since this is the home page, we'll update its template. + +``` +$ vi themes/zafta/layouts/index.html + + + + {{ range first 10 .Data.Pages }} +

{{ .Title }}

+ {{ end }} + + +``` + +Build the web site and verify the results. + +``` +$ rm -rf public +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to + /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", + "category":"categories"} +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +2 pages created +0 tags created +0 categories created +in 4 ms + +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 149 Sep 29 22:44 public/index.html +-rw-r--r-- 1 quoha staff 125 Sep 29 22:44 public/post/first/index.html +-rw-r--r-- 1 quoha staff 0 Sep 29 22:44 public/post/index.html +-rw-r--r-- 1 quoha staff 128 Sep 29 22:44 public/post/second/index.html + +$ cat public/index.html + + + + +

second

+ +

first

+ + + + +$ +``` + +### Create a Post Listing + +We have the posts displaying on the home page and on their own page. We also have a file public/post/index.html that is empty. Let's make it show a list of all posts (not just the first ten). + +We need to decide which template to update. This will be a listing, so it should be a list template. Let's take a quick look and see which list templates are available. + +``` +$ find themes/zafta -name list.html | xargs ls -l +-rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/ + list.html +``` + +As with the single post, we have to decide to update _default/list.html or create post/list.html. We still don't have multiple content types, so let's stay consistent and update the default list template. + +## Creating Top Level Pages + +Let's add an "about" page and display it at the top level (as opposed to a sub-level like we did with posts). + +The default in Hugo is to use the directory structure of the content/ directory to guide the location of the generated html in the public/ directory. Let's verify that by creating an "about" page at the top level: + +``` +$ vi content/about.md ++++ +title = "about" +description = "about this site" +date = "2014-09-27" +slug = "about time" ++++ + +## about us + +i'm speechless +:wq +``` + +Generate the web site and verify the results. + +``` +$ find public -name '*.html' | xargs ls -l +-rw-rw-r-- 1 mdhender staff 334 Sep 27 15:08 public/about-time/index.html +-rw-rw-r-- 1 mdhender staff 527 Sep 27 15:08 public/index.html +-rw-rw-r-- 1 mdhender staff 358 Sep 27 15:08 public/post/first-post/ + index.html +-rw-rw-r-- 1 mdhender staff 0 Sep 27 15:08 public/post/index.html +-rw-rw-r-- 1 mdhender staff 342 Sep 27 15:08 public/post/second-post/ + index.html +``` + +Notice that the page wasn't created at the top level. It was created in a sub-directory named 'about-time/'. That name came from our slug. Hugo will use the slug to name the generated content. It's a reasonable default, by the way, but we can learn a few things by fighting it for this file. + +One other thing. Take a look at the home page. + +``` +$ cat public/index.html + + + +

+ creating a new theme

+

about

+

second

+

first

+ + +``` + +Notice that the "about" link is listed with the posts? That's not desirable, so let's change that first. + +``` +$ vi themes/zafta/layouts/index.html + + + +

posts

+ {{ range first 10 .Data.Pages }} + {{ if eq .Type "post"}} +

{{ .Title }}

+ {{ end }} + {{ end }} + +

pages

+ {{ range .Data.Pages }} + {{ if eq .Type "page" }} +

{{ .Title }}

+ {{ end }} + {{ end }} + + +:wq +``` + +Generate the web site and verify the results. The home page has two sections, posts and pages, and each section has the right set of headings and links in it. + +But, that about page still renders to about-time/index.html. + +``` +$ find public -name '*.html' | xargs ls -l +-rw-rw-r-- 1 mdhender staff 334 Sep 27 15:33 public/about-time/index.html +-rw-rw-r-- 1 mdhender staff 645 Sep 27 15:33 public/index.html +-rw-rw-r-- 1 mdhender staff 358 Sep 27 15:33 public/post/first-post/ + index.html +-rw-rw-r-- 1 mdhender staff 0 Sep 27 15:33 public/post/index.html +-rw-rw-r-- 1 mdhender staff 342 Sep 27 15:33 public/post/second-post/ + index.html +``` + +Knowing that hugo is using the slug to generate the file name, the simplest solution is to change the slug. Let's do it the hard way and change the permalink in the configuration file. + +``` +$ vi config.toml +[permalinks] + page = "/:title/" + about = "/:filename/" +``` + +Generate the web site and verify that this didn't work. Hugo lets "slug" or "URL" override the permalinks setting in the configuration file. Go ahead and comment out the slug in content/about.md, then generate the web site to get it to be created in the right place. + +## Sharing Templates + +If you've been following along, you probably noticed that posts have titles in the browser and the home page doesn't. That's because we didn't put the title in the home page's template (layouts/index.html). That's an easy thing to do, but let's look at a different option. + +We can put the common bits into a shared template that's stored in the themes/zafta/layouts/partials/ directory. + +### Create the Header and Footer Partials + +In Hugo, a partial is a sugar-coated template. Normally a template reference has a path specified. Partials are different. Hugo searches for them along a TODO defined search path. This makes it easier for end-users to override the theme's presentation. + +``` +$ vi themes/zafta/layouts/partials/header.html + + + + {{ .Title }} + + +:wq + +$ vi themes/zafta/layouts/partials/footer.html + + +:wq +``` + +### Update the Home Page Template to Use the Partials + +The most noticeable difference between a template call and a partials call is the lack of path: + +``` +{{ template "theme/partials/header.html" . }} +``` +versus +``` +{{ partial "header.html" . }} +``` +Both pass in the context. + +Let's change the home page template to use these new partials. + +``` +$ vi themes/zafta/layouts/index.html +{{ partial "header.html" . }} + +

posts

+ {{ range first 10 .Data.Pages }} + {{ if eq .Type "post"}} +

{{ .Title }}

+ {{ end }} + {{ end }} + +

pages

+ {{ range .Data.Pages }} + {{ if or (eq .Type "page") (eq .Type "about") }} +

{{ .Type }} - + {{ .Title }} - {{ .RelPermalink }}

+ {{ end }} + {{ end }} + +{{ partial "footer.html" . }} +:wq +``` + +Generate the web site and verify the results. The title on the home page is now "your title here", which comes from the "title" variable in the config.toml file. + +### Update the Default Single Template to Use the Partials + +``` +$ vi themes/zafta/layouts/_default/single.html +{{ partial "header.html" . }} + +

{{ .Title }}

+ {{ .Content }} + +{{ partial "footer.html" . }} +:wq +``` + +Generate the web site and verify the results. The title on the posts and the about page should both reflect the value in the markdown file. + +## Add “Date Published” to Posts + +It's common to have posts display the date that they were written or published, so let's add that. The front matter of our posts has a variable named "date." It's usually the date the content was created, but let's pretend that's the value we want to display. + +### Add “Date Published” to the Template + +We'll start by updating the template used to render the posts. The template code will look like: + +``` +{{ .Date.Format "Mon, Jan 2, 2006" }} +``` + +Posts use the default single template, so we'll change that file. + +``` +$ vi themes/zafta/layouts/_default/single.html +{{ partial "header.html" . }} + +

{{ .Title }}

+

{{ .Date.Format "Mon, Jan 2, 2006" }}

+ {{ .Content }} + +{{ partial "footer.html" . }} +:wq +``` + +Generate the web site and verify the results. The posts now have the date displayed in them. There's a problem, though. The "about" page also has the date displayed. + +As usual, there are a couple of ways to make the date display only on posts. We could do an "if" statement like we did on the home page. Another way would be to create a separate template for posts. + +The "if" solution works for sites that have just a couple of content types. It aligns with the principle of "code for today," too. + +Let's assume, though, that we've made our site so complex that we feel we have to create a new template type. In Hugo-speak, we're going to create a section template. + +Let's restore the default single template before we forget. + +``` +$ mkdir themes/zafta/layouts/post +$ vi themes/zafta/layouts/_default/single.html +{{ partial "header.html" . }} + +

{{ .Title }}

+ {{ .Content }} + +{{ partial "footer.html" . }} +:wq +``` + +Now we'll update the post's version of the single template. If you remember Hugo's rules, the template engine will use this version over the default. + +``` +$ vi themes/zafta/layouts/post/single.html +{{ partial "header.html" . }} + +

{{ .Title }}

+

{{ .Date.Format "Mon, Jan 2, 2006" }}

+ {{ .Content }} + +{{ partial "footer.html" . }} +:wq + +``` + +Note that we removed the date logic from the default template and put it in the post template. Generate the web site and verify the results. Posts have dates and the about page doesn't. + +### Don't Repeat Yourself + +DRY is a good design goal and Hugo does a great job supporting it. Part of the art of a good template is knowing when to add a new template and when to update an existing one. While you're figuring that out, accept that you'll be doing some refactoring. Hugo makes that easy and fast, so it's okay to delay splitting up a template. diff --git a/exampleSite/content/blog/creating-a-new-theme.br.md b/exampleSite/content/blog/creating-a-new-theme.pt.md similarity index 100% rename from exampleSite/content/blog/creating-a-new-theme.br.md rename to exampleSite/content/blog/creating-a-new-theme.pt.md diff --git a/exampleSite/content/contact/_index.de.md b/exampleSite/content/contact/_index.de.md new file mode 100644 index 00000000..7b3e93c3 --- /dev/null +++ b/exampleSite/content/contact/_index.de.md @@ -0,0 +1,12 @@ ++++ +title = "Kontakt" +type = "contact" +netlify = false +emailservice = "formspree.io/example@email.com" +contactname = "Ihr Name" +contactemail = "Ihr Emailadresse" +contactsubject = "Gegenstand" +contactmessage = "Ihre Nachricht" +contactlang = "de" +contactanswertime = 24 ++++ diff --git a/exampleSite/content/contact/_index.pl.md b/exampleSite/content/contact/_index.pl.md index 1ac52248..3a9c046e 100644 --- a/exampleSite/content/contact/_index.pl.md +++ b/exampleSite/content/contact/_index.pl.md @@ -1,12 +1,12 @@ +++ -title = "Contact" +title = "Kategorie" type = "contact" netlify = false emailservice = "formspree.io/example@email.com" -contactname = "Your name" -contactemail = "Your Email" -contactsubject = "Subject" -contactmessage = "Your Message" +contactname = "Twoje imię" +contactemail = "Twoj adres email" +contactsubject = "Przedmiot" +contactmessage = "Twoja wiadomość" contactlang = "pl" contactanswertime = 24 +++ diff --git a/exampleSite/content/contact/_index.br.md b/exampleSite/content/contact/_index.pt.md similarity index 100% rename from exampleSite/content/contact/_index.br.md rename to exampleSite/content/contact/_index.pt.md diff --git a/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.content b/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.content new file mode 100644 index 00000000..55e77b92 --- /dev/null +++ b/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.content @@ -0,0 +1,105 @@ +// Static comments +// from: https://github.com/eduardoboucas/popcorn/blob/gh-pages/js/main.js +$(document).ready(function() { + $('.post-new-comment').submit(function () { + var form = this; + + $(form).addClass('loading'); + $('input[type="submit"]:enabled').addClass('hidden'); // hide "submit" + $('input[type="submit"]:disabled').removeClass('hidden'); // show "submitted" + + // Construct form action URL form JS to avoid spam + var api = 'staticman3.herokuapp.com'; + var gitProvider = 'github'; + var username = ''; + var repo = ''; + var branch = ''; + + $.ajax({ + type: $(this).attr('method'), + url: ['https:/', api, 'v3/entry', gitProvider, username, repo, branch, 'comments'].join('/'), + data: $(this).serialize(), + contentType: 'application/x-www-form-urlencoded', + success: function (data) { + showAlert('success'); + setTimeout(function(){ clearForm() }, 3000); // display success message for 3s + $(form).removeClass('loading'); + }, + error: function (err) { + console.log(err); + showAlert('failed'); + $(form).removeClass('loading'); + } + }); + + return false; + }); + + function showAlert(msg) { + if (msg == 'success') { + $('.post-new-comment .submit-success').removeClass('hidden'); // show submit success message + $('.post-new-comment .submit-failed').addClass('hidden'); // hide submit failed message + } else { + $('.post-new-comment .submit-success').addClass('hidden'); // hide submit success message + $('.post-new-comment .submit-failed').removeClass('hidden'); // show submit failed message + } + $('input[type="submit"]:enabled').removeClass('hidden'); // show "submit" + $('input[type="submit"]:disabled').addClass('hidden'); // hide "submitted" + } + + function clearForm() { + resetReplyTarget(); + $('.post-new-comment input') + .filter(function() { + return this.name.match(/^fields\[.*\]$/); + }) + .val(''); // empty all text & hidden fields but not options + $('.post-new-comment textarea').val(''); // empty text area + $('.post-new-comment .submit-success').addClass('hidden'); // hide submission status + $('.post-new-comment .submit-failed').addClass('hidden'); // hide submission status + } + + function resetReplyTarget() { + $('.post-new-comment .post-reply-notice .post-reply-name').text(''); + $('.post-new-comment .post-reply-notice .post-comment-avatar').remove(); + $('.post-new-comment .post-reply-notice .post-reply-close-btn').remove(); + $('.post-new-comment .post-reply-notice').addClass('hidden'); // hide reply target display + $('.post-new-comment input[type="hidden"]') + .filter(function() { + return this.name.match(/^fields\[reply[a-zA-Z]*\]$/); + }) + .val(''); // empty all hidden fields whose name starts from "reply" + } + + // record reply target when "reply to this comment" is pressed + $('.post-comment').on('click', '.post-comment-reply-btn', function (evt){ + resetReplyTarget(); + var cmt = $(evt.delegateTarget); + var replyThread = cmt.find('.post-comment-threadID').text(); + $('.post-new-comment input[name="fields[replyThread]"]').val(replyThread); + $('.post-new-comment input[name="fields[replyID]"]').val(cmt.attr("id")); + authorTag = cmt.find('.post-comment-author'); + replyName = authorTag.text(); + $('.post-new-comment input[name="fields[replyName]"]').val(replyName); + + // display reply target avatar and name + $('.post-new-comment .post-reply-notice').removeClass('hidden'); + $('.post-new-comment .post-reply-name').text(replyName); + avatarTag = cmt.find('.post-comment-avatar'); + // use clone to avoid removal of avatar in comments by resetReplyTarget() + $('.post-new-comment .post-reply-arrow').after(avatarTag.clone()); + // add button for removing reply target (static method would give error msg) + closeBtn = $(""); + $('.post-new-comment .post-reply-notice').append(closeBtn); + }); + + // handle removal of reply target when '×' is pressed + $('.post-new-comment .post-reply-notice').on('click', '.post-reply-close-btn', function(){ + resetReplyTarget(); + }); + + // clear form when reset button is clicked + $('.post-new-comment input[type="reset"]').click(function (){ + clearForm(); + }); +}); diff --git a/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.json b/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.json new file mode 100644 index 00000000..2f9ee3f2 --- /dev/null +++ b/exampleSite/resources/_gen/assets/js/js/staticman.js_8cd1ffcbd6280a9d3369580fb528eb22.json @@ -0,0 +1 @@ +{"Target":"js/staticman.js","MediaType":"application/javascript","Data":{}} \ No newline at end of file diff --git a/exampleSite/resources/_gen/assets/scss/scss/main.scss_b5a97001882d870cddf46d3bce56b70e.content b/exampleSite/resources/_gen/assets/scss/scss/main.scss_b5a97001882d870cddf46d3bce56b70e.content index a3a6c66d..c3d36b82 100644 --- a/exampleSite/resources/_gen/assets/scss/scss/main.scss_b5a97001882d870cddf46d3bce56b70e.content +++ b/exampleSite/resources/_gen/assets/scss/scss/main.scss_b5a97001882d870cddf46d3bce56b70e.content @@ -1 +1 @@ -/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */html{color:#222;font-size:1em;line-height:1.4}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}audio,canvas,iframe,img,svg,video{max-width:100%;vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.browserupgrade{margin:0.2em 0;background:#ccc;color:#000;padding:0.2em 0}body{background:#f4f4f4;margin-top:3.5em;max-width:100vw;-ms-overflow-style:scrollbar}*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}body,input,select,textarea{color:#333333;font-family:"Source Sans Pro", Helvetica, sans-serif;line-height:1.75em}a{border-bottom:dotted 1px rgba(160,160,160,0.65);color:inherit;text-decoration:none;-webkit-transition:color .2s ease, border-bottom-color 0.2s ease;-moz-transition:color .2s ease, border-bottom-color 0.2s ease;-ms-transition:color .2s ease, border-bottom-color 0.2s ease;-o-transition:color .2s ease, border-bottom-color 0.2s ease;transition:color .2s ease, border-bottom-color 0.2s ease}a:before{-webkit-transition:color ease;-moz-transition:color ease;-ms-transition:color ease;-o-transition:color ease;transition:color ease}a:hover{border-bottom-color:transparent;color:#2ebaae}h1,h2,h3,h4,h5,h6{color:#3c3b3b;font-family:"Raleway", Helvetica, sans-serif;letter-spacing:0.25em;line-height:1.65;text-transform:uppercase}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{border-bottom:0}blockquote{border-left:solid 4px rgba(160,160,160,0.3);font-style:italic;margin:0 2em;padding:0.5em 0 0.5em 2em}blockquote p{margin-bottom:0}code{border:solid 1px rgba(160,160,160,0.3);font-family:"Courier New", monospace;font-size:0.9em;margin:0 0.25em;padding:0.25em 0.65em;overflow-x:auto}code::-webkit-scrollbar{height:.25em}code::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3)}code::-webkit-scrollbar-thumb{background-color:darkgrey;outline:1px solid slategrey}pre{display:table;font-family:"Courier New", monospace;font-size:0.9em;table-layout:fixed;width:100%}pre code{display:block;padding:1em 1.5em;overflow-x:auto}hr{border:0;border-bottom:solid 1px rgba(160,160,160,0.3);margin:2em 0}input[type="submit"],input[type="reset"],input[type="button"],.button{background-color:transparent;border:solid 1px rgba(160,160,160,0.3);color:#3c3b3b;cursor:pointer;display:inline-block;font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;font-weight:800;height:4.8125em;letter-spacing:0.25em;line-height:4.8125em;margin:auto;padding:0 2em;-moz-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;-webkit-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;-ms-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;text-align:center;text-transform:uppercase;width:fit-content}input[type="submit"]:hover,input[type="reset"]:hover,input[type="button"]:hover,.button:hover{border:solid 1px #2ebaae;color:#2ebaae !important}input[type="submit"]:hover:active,input[type="reset"]:hover:active,input[type="button"]:hover:active,.button:hover:active{background-color:rgba(46,186,174,0.05)}label{color:#3c3b3b;display:block;font-size:0.9em;font-weight:700}input,select,textarea{background:rgba(160,160,160,0.075);border:solid 1px rgba(160,160,160,0.3);outline:0;margin:.25em 0;padding:0 1em;width:100%}input:hover,select:hover,textarea:hover{border-color:#2ebaae;-webkit-transition:border-color 0.3s ease-in-out;-moz-transition:border-color 0.3s ease-in-out;-ms-transition:border-color 0.3s ease-in-out;-o-transition:border-color 0.3s ease-in-out;transition:border-color 0.3s ease-in-out}input:focus,input:active,select:focus,select:active,textarea:focus,textarea:active{border:solid 1px #2ebaae}input,select{height:2.75em}textarea{height:5em}::-webkit-input-placeholder,:-moz-placeholder,::-moz-placeholder,:-ms-input-placeholder,.formerize-placeholder{color:#aaaaaa;opacity:1.0}table{background-color:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);margin:1em auto;-webkit-transition:all 0.5s ease;-moz-transition:all 0.5s ease;-ms-transition:all 0.5s ease;-o-transition:all 0.5s ease;transition:all 0.5s ease;width:75%}@media (min-width: 768px){table{width:90%}}table>thead{display:none}@media (min-width: 768px){table>thead{background-color:#ececec;display:table-header-group}}table>tbody>tr{border-bottom:1px solid #e0e0e0}@media (min-width: 768px){table>tbody>tr:nth-child(even){background-color:#f4f4f4}table>tbody>tr:hover{background-color:rgba(46,187,170,0.5)}}table>tbody>tr>td{display:block;text-align:right}@media (min-width: 768px){table>tbody>tr>td{display:table-cell;text-align:center}}table>tbody>tr>td[data-header]:before{color:#757575;content:attr(data-header);float:left;font-size:inherit;font-weight:bold}@media (min-width: 768px){table>tbody>tr>td[data-header]:before{display:none}}table>tbody>tr>td:first-child{background-color:#ececec;font-weight:bold;text-align:left}@media (min-width: 768px){table>tbody>tr>td:first-child{background-color:unset;text-align:center}}table>tbody>tr>td:first-child:after{content:"\f078";float:right;font-family:"Font Awesome 5 Free";font-weight:900;text-decoration:inherit;transition:all .3s}@media (min-width: 768px){table>tbody>tr>td:first-child:after{display:none}}table>tbody>tr>td:not(:first-child){border-bottom:1px solid #e0e0e0;opacity:0;position:absolute;-moz-transition:none;-ms-transition:none;-o-transition:none;-webkit-transition:none;transition:none;z-index:-1}@media (min-width: 768px){table>tbody>tr>td:not(:first-child){border:0;opacity:100;position:relative;z-index:0}}table>tbody>tr.active>td:first-child:after{transform:rotateX(180deg)}table>tbody>tr.active>td:not(:first-child){opacity:1;position:relative;-webkit-transition:all 0.3s ease;-moz-transition:all 0.3s ease;-ms-transition:all 0.3s ease;-o-transition:all 0.3s ease;transition:all 0.3s ease;z-index:auto}table>tbody>tr.active>td:last-child{border-bottom:0}table>tfoot{display:none}@media (min-width: 768px){table>tfoot{display:table-footer-group}}table>thead>tr>th,table>tbody>tr>th,table>tfoot>tr>th,table>thead>tr>td,table>tbody>tr>td,table>tfoot>tr>td{border:0;padding:0.5em}.g-recaptcha{margin:-0.25em 0 0.25em 0}.fancybox{background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);margin:10px auto;max-width:85%;padding:.5em .5em 0 .5em;width:fit-content}.fancybox a{border:0}.fancybox img{max-width:100%}.fancybox .caption{color:#777;font-size:0.8em;font-style:italic;text-align:center}.post-comment{position:relative;margin-bottom:3em;padding-left:4.5em;font-size:.8em}.post-comment-avatar{float:left;width:3.25em;height:3.25em;margin-right:.5em}.post-comment-author{display:inline-block;margin:0 0 .25em;font-size:1.25em;line-height:1}.post-comment-author a{color:inherit;text-decoration:none}.post-comment-timestamp{font-size:.8em}.post-comment-timestamp a{color:inherit;text-decoration:none}.post-comment-content{margin:1.5em 0 0 3.75em}.post-comment-content>figure,.post-comment-content>ol,.post-comment-content>p,.post-comment-content>table,.post-comment-content>ul{margin-bottom:1.5em}.triangle{-webkit-clip-path:polygon(0 100%, 100% 100%, 50% 0);-moz-clip-path:polygon(0 100%, 100% 100%, 50% 0);-ms-clip-path:polygon(0 100%, 100% 100%, 50% 0);-o-clip-path:polygon(0 100%, 100% 100%, 50% 0);clip-path:polygon(0 100%, 100% 100%, 50% 0)}.trapezoid{-webkit-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);-moz-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);-ms-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);-o-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%)}.parallelogram{-webkit-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);-moz-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);-ms-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);-o-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%)}.rhombus{-webkit-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);-moz-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);-ms-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);-o-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.pentagon{-webkit-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);-moz-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);-ms-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);-o-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.hexagon{-webkit-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);-moz-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);-ms-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);-o-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.heptagon{-webkit-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);-moz-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);-ms-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);-o-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)}.octagon{-webkit-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);-moz-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);-ms-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);-o-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)}.nonagon{-webkit-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);-moz-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);-ms-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);-o-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%)}.decagon{-webkit-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);-moz-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);-ms-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);-o-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%)}.bevel{-webkit-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);-moz-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);-ms-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);-o-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%)}.rabbet{-webkit-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);-moz-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);-ms-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);-o-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%)}.left-arrow{-webkit-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);-moz-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);-ms-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);-o-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%)}.right-arrow{-webkit-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);-moz-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);-ms-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);-o-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)}.left-point{-webkit-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);-moz-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);-ms-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);-o-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%)}.right-point{-webkit-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);-moz-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);-ms-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);-o-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)}.left-cheveron{-webkit-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);-moz-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);-ms-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);-o-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%)}.right-cheveron{-webkit-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);-moz-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);-ms-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);-o-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)}.star{-webkit-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);-moz-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);-ms-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);-o-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.cross{-webkit-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);-moz-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);-ms-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);-o-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%)}.message{-webkit-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);-moz-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);-ms-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);-o-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%)}.close{-webkit-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);-moz-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);-ms-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);-o-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%)}.circle{-webkit-clip-path:circle(50% at 50% 50%);-moz-clip-path:circle(50% at 50% 50%);-ms-clip-path:circle(50% at 50% 50%);-o-clip-path:circle(50% at 50% 50%);clip-path:circle(50% at 50% 50%)}.vertical-ellipse{-webkit-clip-path:ellipse(25% 40% at 50% 50%);-moz-clip-path:ellipse(25% 40% at 50% 50%);-ms-clip-path:ellipse(25% 40% at 50% 50%);-o-clip-path:ellipse(25% 40% at 50% 50%);clip-path:ellipse(25% 40% at 50% 50%)}.horizontal-ellipse{-webkit-clip-path:ellipse(40% 25% at 50% 50%);-moz-clip-path:ellipse(40% 25% at 50% 50%);-ms-clip-path:ellipse(40% 25% at 50% 50%);-o-clip-path:ellipse(40% 25% at 50% 50%);clip-path:ellipse(40% 25% at 50% 50%)}.flag-icon{border:0.02px solid black}.flag-icon-en{background-image:url(../flags/4x3/en.svg)}.flag-icon-en.flag-icon-squared{background-image:url(../flags/1x1/en.svg)}.share-btn{border:none;border-radius:4px;box-shadow:0 2px 0 0 rgba(0,0,0,0.2);color:#ffffff;display:inline-block;text-align:center}.share-btn:hover{color:#ffffff !important}.share-btn:active{position:relative;top:2px;box-shadow:none;color:#e2e2e2;outline:none}.share-btn.twitter{background:#55acee}.share-btn.twitter:hover{background:#4c9ad6}.share-btn.google-plus{background:#dd4b39}.share-btn.google-plus:hover{background:#c64333}.share-btn.facebook{background:#3B5998}.share-btn.facebook:hover{background:#2f4779}.share-btn.linkedin{background:#4875B4}.share-btn.linkedin:hover{background:#4069a2}.share-btn.stumbleupon{background:#EB4823}.share-btn.stumbleupon:hover{background:#d3401f}.share-btn.pinterest{background:#BD081C}.share-btn.pinterest:hover{background:#AD0000}.share-btn.reddit{background:#ff5700}.share-btn.reddit:hover{background:#e54e00}.share-btn.email{background:#444444}.share-btn.email:hover{background:#363636}#site-intro{grid-area:intro}#site-sidebar{grid-area:sidebar}#site-main{grid-area:main}#site-footer{grid-area:footer}#wrapper{display:grid;grid-template-areas:'intro' 'main' 'sidebar' 'footer';grid-template-rows:auto 1fr auto auto;margin:0 auto;max-width:90em;min-height:100vh;-moz-transition:.5s;-ms-transition:.5s;-o-transition:.5s;-webkit-transition:.5s;transition:.5s}@media (min-width: 1024px){#wrapper{grid-template-areas:'intro main' 'sidebar main' 'footer main' 'blank main';grid-template-columns:22em 1fr;grid-template-rows:auto auto auto 1fr;padding:0 2.5em}}#wrapper.overlay{opacity:.25}.post{background:#ffffff;margin:1.5em auto;padding:1em;max-width:55em}.post>header{border-bottom:solid 1px rgba(160,160,160,0.3);margin:1em 1em 0 1em;text-align:center}@media (min-width: 768px){.post>header{display:flex;justify-content:space-between;text-align:left}}.post>header div{padding:0 0 1em 0}@media (min-width: 768px){.post>header div{padding:2em 1em}}.post>header p{margin:-1em 0 0 0}.post>header .title{font-size:1.1em}.post>header .meta{display:flex;flex-direction:column}@media (min-width: 768px){.post>header .meta{border-left:solid 1px rgba(160,160,160,0.3);text-align:right;width:17em}}.post>header .meta .published{font-family:"Raleway", Helvetica, sans-serif;font-size:0.7em;font-weight:800;letter-spacing:0.25em;text-transform:uppercase}.post>header .meta p,.post>header .meta .author,.post>header .meta .format{font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;letter-spacing:0.25em;text-transform:uppercase}@media (min-width: 1024px){.post>div,.post>p{margin:0 1em}}@media (min-width: 1440px){.post>div,.post>p{margin:0 4em}}.post>div>p,.post>p{text-align:justify}.post a.image{border:0;display:block;margin:1em -1em;overflow:hidden}.post a.image:hover img{-webkit-transform:scale(1.05);-moz-transform:scale(1.05);-ms-transform:scale(1.05);-o-transform:scale(1.05);transform:scale(1.05)}.post a.image img{-webkit-transition:-webkit-transform 0.2s ease-out;-moz-transition:-moz-transform 0.2s ease-out;-ms-transition:-ms-transform 0.2s ease-out;-o-transition:-ms-transform 0.2s ease-out;transition:transform 0.2s ease-out;width:100%}.post>footer{display:flex;flex-direction:column}.post>footer .stats{display:flex;cursor:default;justify-content:space-around;list-style:none;margin:.5em 0;padding:0}.post>footer .stats li{display:flex;align-items:center;font-family:"Font Awesome 5 Free";font-weight:900;max-width:50%}.post>footer .stats li:hover ul li,.post>footer .stats li:active ul li{visibility:visible;opacity:1;line-height:1;margin:1em;width:auto}.post>footer .stats li.categories:before{content:"\f07b";width:20px}.post>footer .stats li.tags:before{content:"\f02c";width:20px}.post>footer .stats li ul{display:flex;flex-wrap:wrap;border-left:solid 1px rgba(160,160,160,0.3);margin:0 0 0 1em;padding:0 0 0 1em}.post>footer .stats li ul li{visibility:visible;font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;font-weight:400;letter-spacing:0.25em;line-height:0;margin:0;width:0;opacity:0;-webkit-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;-moz-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;-ms-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;-o-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;text-transform:uppercase}.post>footer .stats li ul li:nth-child(-n+3){visibility:visible;opacity:1;width:auto;line-height:1;margin:1em}.pagination{display:flex;justify-content:space-around;align-items:center}.pagination .previous,.pagination .next{margin:1em}#site-header{background-color:#ffffff;border-bottom:solid 1px rgba(160,160,160,0.3);-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);height:3.5em;line-height:3.5em;position:fixed;margin-bottom:3.5em;top:0;width:100%;z-index:10000}#site-header a{border:0;border-left:1px solid rgba(160,160,160,0.3);font-family:"Raleway", Helvetica, sans-serif;font-size:0.7em;font-weight:400;letter-spacing:0.25em;margin:0;padding:0 1.5em;text-transform:uppercase}#site-header .flyout-menu{background-color:#fff;border-left:1px solid rgba(160,160,160,0.3);height:calc(100vh - 3.5em);margin-top:3.5em;padding:0;position:fixed;top:0;-webkit-transition:0.5s;-moz-transition:0.5s;-ms-transition:0.5s;-o-transition:0.5s;transition:0.5s;z-index:20}#site-header .flyout-menu.active{-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);right:0 !important}#site-header .flyout-menu.active a{border-left:0}#site-header .flyout-menu h1{font-size:1em}#site-nav{align-items:center;display:flex;justify-content:space-between}#site-nav .flyout-menu{right:-183px;width:183px}@media (min-width: 768px){#site-nav .flyout-menu{right:-183px;width:183px}}@media (min-width: 1024px){#site-nav .flyout-menu{background-color:unset;border:none;flex-grow:1;height:auto;margin:0;overflow:auto;position:static;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;white-space:nowrap}#site-nav .flyout-menu::-webkit-scrollbar{height:.25em}#site-nav .flyout-menu::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3)}#site-nav .flyout-menu::-webkit-scrollbar-thumb{background-color:darkgrey;outline:1px solid slategrey}}#site-nav .flyout-menu.active{flex-wrap:wrap}@media (min-width: 1024px){#site-nav .flyout-menu.active{-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;-o-box-shadow:none;box-shadow:none}}#site-nav .flyout-menu .search-toggle{display:block;flex-basis:100%;order:1}#site-nav .flyout-menu .link{border-bottom:dotted 1px rgba(160,160,160,0.3);display:block;flex-basis:100%;order:2}@media (min-width: 1024px){#site-nav .flyout-menu .link{border-bottom:none;display:inline;order:0}#site-nav .flyout-menu .link:first-of-type{border:0}}#site-nav .flyout-menu .share-toggle{display:block;flex-basis:100%;order:3}@media (min-width: 768px){#site-nav .flyout-menu .share-toggle{display:none}}#site-nav .nav-title{align-items:center;display:flex;flex-grow:1;margin:0}@media (min-width: 1024px){#site-nav .nav-title{flex-grow:0}#site-nav .nav-title:after{background:rgba(160,160,160,0.3);content:'';display:block;height:56px;margin-left:1.5em;width:1px}#site-nav .nav-title a{min-width:12.5em}}#site-nav .nav-title a{border:0;font-size:0.35em;font-weight:800;margin-left:1.5em;opacity:1;padding:0}#site-nav>.share-toggle,#site-nav>.search-toggle{display:none}@media (min-width: 425px){#site-nav>.share-toggle,#site-nav>.search-toggle{display:block;text-align:center;width:61px}#site-nav>.share-toggle i,#site-nav>.search-toggle i{vertical-align:middle}}#site-nav .lang-toggle{width:61px}#site-nav .lang-toggle:hover span{box-shadow:inset 0 0 0 100px rgba(46,187,170,0.5)}#site-nav .lang-toggle span{display:inline-block;font-size:1.75em;-webkit-transition:box-shadow 0.2s ease;-moz-transition:box-shadow 0.2s ease;-ms-transition:box-shadow 0.2s ease;-o-transition:box-shadow 0.2s ease;transition:box-shadow 0.2s ease;vertical-align:middle}#site-nav .nav-toggle{text-align:center;width:61px}@media (min-width: 1024px){#site-nav .nav-toggle{display:none}}#site-nav .nav-toggle i{vertical-align:middle}#lang-menu.flyout-menu{right:-61px;width:61px}#lang-menu.flyout-menu a{border-left:0}#lang-menu.flyout-menu span{display:inline-block;font-size:1.75em;-webkit-transition:box-shadow 0.2s ease;-moz-transition:box-shadow 0.2s ease;-ms-transition:box-shadow 0.2s ease;-o-transition:box-shadow 0.2s ease;transition:box-shadow 0.2s ease;vertical-align:middle}#lang-menu.flyout-menu span:hover{box-shadow:inset 0 0 0 100px rgba(46,187,170,0.5)}#lang-menu.flyout-menu .no-lang{cursor:not-allowed;opacity:.25}#lang-menu.flyout-menu .no-lang span:hover{box-shadow:none}#share-menu{display:flex;flex-direction:column;justify-content:space-between;text-align:center}@media (min-height: 600px){#share-menu{justify-content:flex-start}}#share-menu.flyout-menu{width:183px;right:-183px;padding:1em}#share-menu.flyout-menu h1,#share-menu.flyout-menu a{margin:0 .25em}@media (min-height: 600px){#share-menu.flyout-menu h1,#share-menu.flyout-menu a{margin:0 .25em .75em 0}}#share-menu.flyout-menu a p{visibility:hidden}#share-menu.flyout-menu .share-btn{height:50px}#share-menu.flyout-menu .share-btn i{font-size:1.5em}#site-intro{align-items:center;display:flex;flex-direction:column;margin-top:0.5em;padding:1em;text-align:center}#site-intro a{border:0}#site-intro p{opacity:0.6}#site-intro header h1{font-size:1.25em;margin-bottom:0}#site-intro main p{font-size:.7em;letter-spacing:.25em;line-height:2.5;margin-bottom:0;text-transform:uppercase}#site-sidebar header h1{font-size:1em}#site-sidebar>*{border-top:solid 1px rgba(160,160,160,0.3);margin:3em 2em 0 2em;padding-top:3em}@media (min-width: 1024px){#site-sidebar>*:first-child{margin-top:0}}#recent-posts{display:flex;flex-wrap:wrap;justify-content:space-between}#recent-posts>header{flex:1 1 100%}#recent-posts .mini-post{background:#ffffff;border:solid 1px rgba(160,160,160,0.3);display:flex;flex-direction:column;margin-bottom:1em;width:100%}@media (min-width: 768px){#recent-posts .mini-post{width:49%}}@media (min-width: 1024px){#recent-posts .mini-post{width:100%}}#recent-posts .mini-post header{min-height:4em;padding:1.25em 1.25em 0.1em 1.25em;position:relative}@media (min-width: 768px){#recent-posts .mini-post header{border-top:solid 1px rgba(160,160,160,0.3)}}@media (min-width: 1024px){#recent-posts .mini-post header{border:0}}#recent-posts .mini-post header h1{font-size:0.7em}#recent-posts .mini-post header .published{display:block;font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;font-weight:400;letter-spacing:0.25em;margin:-0.625em 0 1.7em 0;text-transform:uppercase}#recent-posts .mini-post header .author,#recent-posts .mini-post header .format{position:absolute;right:2em;top:2em}#recent-posts .mini-post section{flex-grow:1;overflow:hidden}#recent-posts .mini-post section .image:hover img{-moz-transform:scale(1.05);-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}#recent-posts .mini-post section .image img{display:block;height:100%;margin:0;-moz-transition:-moz-transform 0.2s ease-out;-webkit-transition:-webkit-transform 0.2s ease-out;-ms-transition:-ms-transform 0.2s ease-out;transition:transform 0.2s ease-out;width:100%}#categories .count{float:right}#mini-bio p{opacity:0.65;font-size:0.9em;padding:0}#mini-bio footer{text-align:center}#site-footer{border-top:solid 1px rgba(160,160,160,0.3);margin:3em 2em 0 2em;padding-top:3em}#site-footer .copyright{color:#aaaaaa;font-family:"Raleway", Helvetica, sans-serif;font-size:0.5em;font-weight:400;letter-spacing:0.25em;text-align:center;text-transform:uppercase}#back-to-top{bottom:15px;color:#aaaaaa;display:none;position:fixed;right:15px;border:0}#site-intro .socnet-icons,#site-footer .socnet-icons{display:flex;flex-wrap:wrap;justify-content:center;padding-left:0}#site-intro .socnet-icons li,#site-footer .socnet-icons li{margin:0 .5em;min-width:20px;list-style-type:none}#site-intro .socnet-icons li a,#site-footer .socnet-icons li a{opacity:0.6;border:none}#socnet-share{display:flex;flex-wrap:wrap;justify-content:space-between;margin:1em 1em 0 1em}@media (min-width: 768px){#socnet-share{justify-content:flex-start}}#socnet-share a{margin-bottom:.5em;padding:.5em;width:4em}@media (min-width: 768px){#socnet-share a{margin-right:.25em}}#socnet-share a i{font-size:1em}#socnet-share p{display:none}.hidden{display:none !important}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto;white-space:inherit}.invisible{visibility:hidden}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}@media print{*,*:before,*:after{background:transparent !important;color:#000 !important;-webkit-box-shadow:none !important;box-shadow:none !important;text-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre{white-space:pre-wrap !important}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}} +/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */html{color:#222;font-size:1em;line-height:1.4}::-moz-selection{background:#b3d4fc;text-shadow:none}::selection{background:#b3d4fc;text-shadow:none}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}audio,canvas,iframe,img,svg,video{max-width:100%;vertical-align:middle}fieldset{border:0;margin:0;padding:0}textarea{resize:vertical}.browserupgrade{margin:0.2em 0;background:#ccc;color:#000;padding:0.2em 0}body{background:#f4f4f4;margin-top:3.5em;max-width:100vw;-ms-overflow-style:scrollbar}*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}body,input,select,textarea{color:#333333;font-family:"Source Sans Pro", Helvetica, sans-serif;line-height:1.75em}a{border-bottom:dotted 1px rgba(160,160,160,0.65);color:inherit;text-decoration:none;-webkit-transition:color .2s ease, border-bottom-color 0.2s ease;-moz-transition:color .2s ease, border-bottom-color 0.2s ease;-ms-transition:color .2s ease, border-bottom-color 0.2s ease;-o-transition:color .2s ease, border-bottom-color 0.2s ease;transition:color .2s ease, border-bottom-color 0.2s ease}a:before{-webkit-transition:color ease;-moz-transition:color ease;-ms-transition:color ease;-o-transition:color ease;transition:color ease}a:hover{border-bottom-color:transparent;color:#2ebaae}h1,h2,h3,h4,h5,h6{color:#3c3b3b;font-family:"Raleway", Helvetica, sans-serif;letter-spacing:0.25em;line-height:1.65;text-transform:uppercase}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{border-bottom:0}blockquote{border-left:solid 4px rgba(160,160,160,0.3);font-style:italic;margin:0 2em;padding:0.5em 0 0.5em 2em}blockquote p{margin-bottom:0}code{border:solid 1px rgba(160,160,160,0.3);font-family:"Courier New", monospace;font-size:0.9em;margin:0 0.25em;padding:0.25em 0.65em;overflow-x:auto}code::-webkit-scrollbar{height:.25em}code::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3)}code::-webkit-scrollbar-thumb{background-color:darkgrey;outline:1px solid slategrey}pre{display:table;font-family:"Courier New", monospace;font-size:0.9em;table-layout:fixed;width:100%}pre code{display:block;padding:1em 1.5em;overflow-x:auto}hr{border:0;border-bottom:solid 1px rgba(160,160,160,0.3);margin:2em 0}input[type="submit"],input[type="reset"],input[type="button"],.button{background-color:transparent;border:solid 1px rgba(160,160,160,0.3);color:#3c3b3b;cursor:pointer;display:inline-block;font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;font-weight:800;height:4.8125em;letter-spacing:0.25em;line-height:4.8125em;margin:auto;padding:0 2em;-moz-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;-webkit-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;-ms-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;text-align:center;text-transform:uppercase;width:fit-content}input[type="submit"]:hover,input[type="reset"]:hover,input[type="button"]:hover,.button:hover{border:solid 1px #2ebaae;color:#2ebaae !important}input[type="submit"]:hover:active,input[type="reset"]:hover:active,input[type="button"]:hover:active,.button:hover:active{background-color:rgba(46,186,174,0.05)}label{color:#3c3b3b;display:block;font-size:0.9em;font-weight:700}input,select,textarea{background:rgba(160,160,160,0.075);border:solid 1px rgba(160,160,160,0.3);outline:0;margin:.25em 0;padding:0 1em;width:100%}input:hover,select:hover,textarea:hover{border-color:#2ebaae;-webkit-transition:border-color 0.3s ease-in-out;-moz-transition:border-color 0.3s ease-in-out;-ms-transition:border-color 0.3s ease-in-out;-o-transition:border-color 0.3s ease-in-out;transition:border-color 0.3s ease-in-out}input:focus,input:active,select:focus,select:active,textarea:focus,textarea:active{border:solid 1px #2ebaae}input,select{height:2.75em}textarea{height:5em}::-webkit-input-placeholder,:-moz-placeholder,::-moz-placeholder,:-ms-input-placeholder,.formerize-placeholder{color:#aaaaaa;opacity:1.0}table{background-color:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);margin:1em auto;-webkit-transition:all 0.5s ease;-moz-transition:all 0.5s ease;-ms-transition:all 0.5s ease;-o-transition:all 0.5s ease;transition:all 0.5s ease;width:75%}@media (min-width: 768px){table{width:90%}}table>thead{display:none}@media (min-width: 768px){table>thead{background-color:#ececec;display:table-header-group}}table>tbody>tr{border-bottom:1px solid #e0e0e0}@media (min-width: 768px){table>tbody>tr:nth-child(even){background-color:#f4f4f4}table>tbody>tr:hover{background-color:rgba(46,187,170,0.5)}}table>tbody>tr>td{display:block;text-align:right}@media (min-width: 768px){table>tbody>tr>td{display:table-cell;text-align:center}}table>tbody>tr>td[data-header]:before{color:#757575;content:attr(data-header);float:left;font-size:inherit;font-weight:bold}@media (min-width: 768px){table>tbody>tr>td[data-header]:before{display:none}}table>tbody>tr>td:first-child{background-color:#ececec;font-weight:bold;text-align:left}@media (min-width: 768px){table>tbody>tr>td:first-child{background-color:unset;text-align:center}}table>tbody>tr>td:first-child:after{content:"\f078";float:right;font-family:"Font Awesome 5 Free";font-weight:900;text-decoration:inherit;transition:all .3s}@media (min-width: 768px){table>tbody>tr>td:first-child:after{display:none}}table>tbody>tr>td:not(:first-child){border-bottom:1px solid #e0e0e0;opacity:0;position:absolute;-moz-transition:none;-ms-transition:none;-o-transition:none;-webkit-transition:none;transition:none;z-index:-1}@media (min-width: 768px){table>tbody>tr>td:not(:first-child){border:0;opacity:100;position:relative;z-index:0}}table>tbody>tr.active>td:first-child:after{transform:rotateX(180deg)}table>tbody>tr.active>td:not(:first-child){opacity:1;position:relative;-webkit-transition:all 0.3s ease;-moz-transition:all 0.3s ease;-ms-transition:all 0.3s ease;-o-transition:all 0.3s ease;transition:all 0.3s ease;z-index:auto}table>tbody>tr.active>td:last-child{border-bottom:0}table>tfoot{display:none}@media (min-width: 768px){table>tfoot{display:table-footer-group}}table>thead>tr>th,table>tbody>tr>th,table>tfoot>tr>th,table>thead>tr>td,table>tbody>tr>td,table>tfoot>tr>td{border:0;padding:0.5em}.g-recaptcha{margin:-0.25em 0 0.25em 0}.fancybox{background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23);margin:10px auto;max-width:85%;padding:.5em .5em 0 .5em;width:fit-content}.fancybox a{border:0}.fancybox img{max-width:100%}.fancybox .caption{color:#777;font-size:0.8em;font-style:italic;text-align:center}.post-comment{position:relative;margin:2.5em 0;font-size:.8em}.post-comment.post-comment-reply{margin-left:2em}.post-comment.post-comment-reply .post-comment-author::after{font-family:'Font Awesome 5 Free';content:'\f064';margin:0 0.3em;display:inline-block;vertical-align:middle;font-weight:900}.post-comment .post-comment-avatar{float:left;width:3.25em;height:3.25em;margin:0 1em 0 0}.post-comment .post-comment-author-container{margin-bottom:-0.5em}.post-comment .post-comment-author-container .post-comment-author{display:inline-block;margin:0 0 0;font-size:1.25em;line-height:0}.post-comment .post-comment-author-container .post-comment-author a{color:inherit;text-decoration:none}.post-comment .post-comment-timestamp{font-size:.8em}.post-comment .post-comment-timestamp a{color:inherit;text-decoration:none}.post-comment .post-comment-content{margin:1.5em 0 0 4.25em}.post-comment .post-comment-content>figure,.post-comment .post-comment-content>ol,.post-comment .post-comment-content>p,.post-comment .post-comment-content>table,.post-comment .post-comment-content>ul{margin-bottom:1.5em}.post-comment .post-comment-reply-btn-container{margin:1.5em 0 1.5em 4.25em}.post-comment .post-comment-reply-btn-container .post-comment-reply-btn{font-size:.6rem}.post-comment .post-comment-reply-btn-container .post-comment-reply-btn::before{font-family:'Font Awesome 5 Free';content:'\f3e5';margin:0 0.6em 0 0;display:inline-block;vertical-align:middle;font-weight:900}.post-new-comment.loading{opacity:0.5}.post-new-comment .post-reply-notice .post-comment-avatar{width:2em;height:2em;margin:0 .6em}.post-new-comment .post-reply-notice .post-reply-close-btn{margin:0 .5em;padding:unset;border:none;vertical-align:middle}.post-new-comment .post-reply-notice .post-reply-close-btn:hover{border:none}.post-new-comment .post-reply-notice .post-reply-close-btn:after{content:'\2716'}.post-new-comment .post-reply-notice .post-reply-arrow::after{font-family:'Font Awesome 5 Free';content:'\f064';display:inline-block;vertical-align:middle;font-weight:900}.post-new-comment .post-reply-notice .post-reply-name{vertical-align:middle}.post-new-comment .g-recaptcha{margin:0 0 0.25em}.post-new-comment .button{margin:0.25em 0}.button{margin:.25em 0;background-color:transparent;border:solid 1px rgba(160,160,160,0.3);color:#3c3b3b;cursor:pointer;display:inline-block;font-family:"Raleway", Helvetica, sans-serif;font-weight:800;-moz-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;-webkit-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;-ms-transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;transition:background-color 0.2s ease, border 0.2s ease, color 0.2s ease;text-align:center;text-transform:uppercase;width:fit-content}.button:hover{border:solid 1px #2ebaae;color:#2ebaae !important}.button:active{background-color:rgba(46,186,174,0.05)}.triangle{-webkit-clip-path:polygon(0 100%, 100% 100%, 50% 0);-moz-clip-path:polygon(0 100%, 100% 100%, 50% 0);-ms-clip-path:polygon(0 100%, 100% 100%, 50% 0);-o-clip-path:polygon(0 100%, 100% 100%, 50% 0);clip-path:polygon(0 100%, 100% 100%, 50% 0)}.trapezoid{-webkit-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);-moz-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);-ms-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);-o-clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);clip-path:polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%)}.parallelogram{-webkit-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);-moz-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);-ms-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);-o-clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);clip-path:polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%)}.rhombus{-webkit-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);-moz-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);-ms-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);-o-clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.pentagon{-webkit-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);-moz-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);-ms-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);-o-clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.hexagon{-webkit-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);-moz-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);-ms-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);-o-clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.heptagon{-webkit-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);-moz-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);-ms-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);-o-clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);clip-path:polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%)}.octagon{-webkit-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);-moz-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);-ms-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);-o-clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);clip-path:polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%)}.nonagon{-webkit-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);-moz-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);-ms-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);-o-clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);clip-path:polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%)}.decagon{-webkit-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);-moz-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);-ms-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);-o-clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);clip-path:polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%)}.bevel{-webkit-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);-moz-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);-ms-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);-o-clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);clip-path:polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%)}.rabbet{-webkit-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);-moz-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);-ms-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);-o-clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);clip-path:polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%)}.left-arrow{-webkit-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);-moz-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);-ms-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);-o-clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);clip-path:polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%)}.right-arrow{-webkit-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);-moz-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);-ms-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);-o-clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);clip-path:polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%)}.left-point{-webkit-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);-moz-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);-ms-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);-o-clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);clip-path:polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%)}.right-point{-webkit-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);-moz-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);-ms-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);-o-clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);clip-path:polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%)}.left-cheveron{-webkit-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);-moz-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);-ms-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);-o-clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);clip-path:polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%)}.right-cheveron{-webkit-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);-moz-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);-ms-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);-o-clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);clip-path:polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%)}.star{-webkit-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);-moz-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);-ms-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);-o-clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.cross{-webkit-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);-moz-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);-ms-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);-o-clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%);clip-path:polygon(10% 25%, 35% 25%, 35% 0%, 65% 0%, 65% 25%, 90% 25%, 90% 50%, 65% 50%, 65% 100%, 35% 100%, 35% 50%, 10% 50%)}.message{-webkit-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);-moz-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);-ms-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);-o-clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);clip-path:polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%)}.close{-webkit-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);-moz-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);-ms-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);-o-clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);clip-path:polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%)}.circle{-webkit-clip-path:circle(50% at 50% 50%);-moz-clip-path:circle(50% at 50% 50%);-ms-clip-path:circle(50% at 50% 50%);-o-clip-path:circle(50% at 50% 50%);clip-path:circle(50% at 50% 50%)}.vertical-ellipse{-webkit-clip-path:ellipse(25% 40% at 50% 50%);-moz-clip-path:ellipse(25% 40% at 50% 50%);-ms-clip-path:ellipse(25% 40% at 50% 50%);-o-clip-path:ellipse(25% 40% at 50% 50%);clip-path:ellipse(25% 40% at 50% 50%)}.horizontal-ellipse{-webkit-clip-path:ellipse(40% 25% at 50% 50%);-moz-clip-path:ellipse(40% 25% at 50% 50%);-ms-clip-path:ellipse(40% 25% at 50% 50%);-o-clip-path:ellipse(40% 25% at 50% 50%);clip-path:ellipse(40% 25% at 50% 50%)}.flag-icon{border:0.02px solid black}.flag-icon-en{background-image:url(../flags/4x3/en.svg)}.flag-icon-en.flag-icon-squared{background-image:url(../flags/1x1/en.svg)}.share-btn{border:none;border-radius:4px;box-shadow:0 2px 0 0 rgba(0,0,0,0.2);color:#ffffff;display:inline-block;text-align:center}.share-btn:hover{color:#ffffff !important}.share-btn:active{position:relative;top:2px;box-shadow:none;color:#e2e2e2;outline:none}.share-btn.twitter{background:#55acee}.share-btn.twitter:hover{background:#4c9ad6}.share-btn.google-plus{background:#dd4b39}.share-btn.google-plus:hover{background:#c64333}.share-btn.facebook{background:#3B5998}.share-btn.facebook:hover{background:#2f4779}.share-btn.linkedin{background:#4875B4}.share-btn.linkedin:hover{background:#4069a2}.share-btn.stumbleupon{background:#EB4823}.share-btn.stumbleupon:hover{background:#d3401f}.share-btn.pinterest{background:#BD081C}.share-btn.pinterest:hover{background:#AD0000}.share-btn.reddit{background:#ff5700}.share-btn.reddit:hover{background:#e54e00}.share-btn.email{background:#444444}.share-btn.email:hover{background:#363636}#site-intro{grid-area:intro}#site-sidebar{grid-area:sidebar}#site-main{grid-area:main}#site-footer{grid-area:footer}#wrapper{display:grid;grid-template-areas:'intro' 'main' 'sidebar' 'footer';grid-template-rows:auto 1fr auto auto;margin:0 auto;max-width:90em;min-height:100vh;-moz-transition:.5s;-ms-transition:.5s;-o-transition:.5s;-webkit-transition:.5s;transition:.5s}@media (min-width: 1024px){#wrapper{grid-template-areas:'intro main' 'sidebar main' 'footer main' 'blank main';grid-template-columns:22em 1fr;grid-template-rows:auto auto auto 1fr;padding:0 2.5em}}#wrapper.overlay{opacity:.25}.post{background:#ffffff;margin:1.5em auto;padding:1em;max-width:55em}.post>header{border-bottom:solid 1px rgba(160,160,160,0.3);margin:1em 1em 0 1em;text-align:center}@media (min-width: 768px){.post>header{display:flex;justify-content:space-between;text-align:left}}.post>header div{padding:0 0 1em 0}@media (min-width: 768px){.post>header div{padding:2em 1em}}.post>header p{margin:-1em 0 0 0}.post>header .title{font-size:1.1em}.post>header .meta{display:flex;flex-direction:column}@media (min-width: 768px){.post>header .meta{border-left:solid 1px rgba(160,160,160,0.3);text-align:right;width:17em}}.post>header .meta .published{font-family:"Raleway", Helvetica, sans-serif;font-size:0.7em;font-weight:800;letter-spacing:0.25em;text-transform:uppercase}.post>header .meta p,.post>header .meta .author,.post>header .meta .format{font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;letter-spacing:0.25em;text-transform:uppercase}@media (min-width: 1024px){.post>div,.post>p{margin:0 1em}}@media (min-width: 1440px){.post>div,.post>p{margin:0 4em}}.post>div>p,.post>p{text-align:justify}.post a.image{border:0;display:block;margin:1em -1em;overflow:hidden}.post a.image:hover img{-webkit-transform:scale(1.05);-moz-transform:scale(1.05);-ms-transform:scale(1.05);-o-transform:scale(1.05);transform:scale(1.05)}.post a.image img{-webkit-transition:-webkit-transform 0.2s ease-out;-moz-transition:-moz-transform 0.2s ease-out;-ms-transition:-ms-transform 0.2s ease-out;-o-transition:-ms-transform 0.2s ease-out;transition:transform 0.2s ease-out;width:100%}.post>footer{display:flex;flex-direction:column}.post>footer .stats{display:flex;cursor:default;justify-content:space-around;list-style:none;margin:.5em 0;padding:0}.post>footer .stats li{display:flex;align-items:center;font-family:"Font Awesome 5 Free";font-weight:900;max-width:50%}.post>footer .stats li:hover ul li,.post>footer .stats li:active ul li{visibility:visible;opacity:1;line-height:1;margin:1em;width:auto}.post>footer .stats li.categories:before{content:"\f07b";width:20px}.post>footer .stats li.tags:before{content:"\f02c";width:20px}.post>footer .stats li ul{display:flex;flex-wrap:wrap;border-left:solid 1px rgba(160,160,160,0.3);margin:0 0 0 1em;padding:0 0 0 1em}.post>footer .stats li ul li{visibility:visible;font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;font-weight:400;letter-spacing:0.25em;line-height:0;margin:0;width:0;opacity:0;-webkit-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;-moz-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;-ms-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;-o-transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;transition:visibility 0s, opacity 0.5s linear, line-height 0.5s linear, margin 0.5s linear, width 0.5s linear;text-transform:uppercase}.post>footer .stats li ul li:nth-child(-n+3){visibility:visible;opacity:1;width:auto;line-height:1;margin:1em}.pagination{display:flex;justify-content:space-around;align-items:center}.pagination .previous,.pagination .next{margin:1em}#site-header{background-color:#ffffff;border-bottom:solid 1px rgba(160,160,160,0.3);-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);height:3.5em;line-height:3.5em;position:fixed;margin-bottom:3.5em;top:0;width:100%;z-index:10000}#site-header a{border:0;border-left:1px solid rgba(160,160,160,0.3);font-family:"Raleway", Helvetica, sans-serif;font-size:0.7em;font-weight:400;letter-spacing:0.25em;margin:0;padding:0 1.5em;text-transform:uppercase}#site-header .flyout-menu{background-color:#fff;border-left:1px solid rgba(160,160,160,0.3);height:calc(100vh - 3.5em);margin-top:3.5em;padding:0;position:fixed;top:0;-webkit-transition:0.5s;-moz-transition:0.5s;-ms-transition:0.5s;-o-transition:0.5s;transition:0.5s;z-index:20}#site-header .flyout-menu.active{-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-moz-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-ms-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);-o-box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);box-shadow:0 3px 6px rgba(0,0,0,0.19),0 3px 6px rgba(0,0,0,0.23);right:0 !important}#site-header .flyout-menu.active a{border-left:0}#site-header .flyout-menu h1{font-size:1em}#site-nav{align-items:center;display:flex;justify-content:space-between}#site-nav .flyout-menu{right:-183px;width:183px}@media (min-width: 768px){#site-nav .flyout-menu{right:-183px;width:183px}}@media (min-width: 1024px){#site-nav .flyout-menu{background-color:unset;border:none;flex-grow:1;height:auto;margin:0;overflow:auto;position:static;-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none;white-space:nowrap}#site-nav .flyout-menu::-webkit-scrollbar{height:.25em}#site-nav .flyout-menu::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3)}#site-nav .flyout-menu::-webkit-scrollbar-thumb{background-color:darkgrey;outline:1px solid slategrey}}#site-nav .flyout-menu.active{flex-wrap:wrap}@media (min-width: 1024px){#site-nav .flyout-menu.active{-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;-o-box-shadow:none;box-shadow:none}}#site-nav .flyout-menu .search-toggle{display:block;flex-basis:100%;order:1}#site-nav .flyout-menu .link{border-bottom:dotted 1px rgba(160,160,160,0.3);display:block;flex-basis:100%;order:2}@media (min-width: 1024px){#site-nav .flyout-menu .link{border-bottom:none;display:inline;order:0}#site-nav .flyout-menu .link:first-of-type{border:0}}#site-nav .flyout-menu .share-toggle{display:block;flex-basis:100%;order:3}@media (min-width: 768px){#site-nav .flyout-menu .share-toggle{display:none}}#site-nav .nav-title{align-items:center;display:flex;flex-grow:1;margin:0}@media (min-width: 1024px){#site-nav .nav-title{flex-grow:0}#site-nav .nav-title:after{background:rgba(160,160,160,0.3);content:'';display:block;height:56px;margin-left:1.5em;width:1px}#site-nav .nav-title a{min-width:12.5em}}#site-nav .nav-title a{border:0;font-size:0.35em;font-weight:800;margin-left:1.5em;opacity:1;padding:0}#site-nav>.share-toggle,#site-nav>.search-toggle{display:none}@media (min-width: 425px){#site-nav>.share-toggle,#site-nav>.search-toggle{display:block;text-align:center;width:61px}#site-nav>.share-toggle i,#site-nav>.search-toggle i{vertical-align:middle}}#site-nav .lang-toggle{width:61px}#site-nav .lang-toggle:hover span{box-shadow:inset 0 0 0 100px rgba(46,187,170,0.5)}#site-nav .lang-toggle span{display:inline-block;font-size:1.75em;-webkit-transition:box-shadow 0.2s ease;-moz-transition:box-shadow 0.2s ease;-ms-transition:box-shadow 0.2s ease;-o-transition:box-shadow 0.2s ease;transition:box-shadow 0.2s ease;vertical-align:middle}#site-nav .nav-toggle{text-align:center;width:61px}@media (min-width: 1024px){#site-nav .nav-toggle{display:none}}#site-nav .nav-toggle i{vertical-align:middle}#lang-menu.flyout-menu{right:-61px;width:61px}#lang-menu.flyout-menu a{border-left:0}#lang-menu.flyout-menu span{display:inline-block;font-size:1.75em;-webkit-transition:box-shadow 0.2s ease;-moz-transition:box-shadow 0.2s ease;-ms-transition:box-shadow 0.2s ease;-o-transition:box-shadow 0.2s ease;transition:box-shadow 0.2s ease;vertical-align:middle}#lang-menu.flyout-menu span:hover{box-shadow:inset 0 0 0 100px rgba(46,187,170,0.5)}#lang-menu.flyout-menu .no-lang{cursor:not-allowed;opacity:.25}#lang-menu.flyout-menu .no-lang span:hover{box-shadow:none}#share-menu{display:flex;flex-direction:column;justify-content:space-between;text-align:center}@media (min-height: 600px){#share-menu{justify-content:flex-start}}#share-menu.flyout-menu{width:183px;right:-183px;padding:1em}#share-menu.flyout-menu h1,#share-menu.flyout-menu a{margin:0 .25em}@media (min-height: 600px){#share-menu.flyout-menu h1,#share-menu.flyout-menu a{margin:0 .25em .75em 0}}#share-menu.flyout-menu a p{visibility:hidden}#share-menu.flyout-menu .share-btn{height:50px}#share-menu.flyout-menu .share-btn i{font-size:1.5em}#site-intro{align-items:center;display:flex;flex-direction:column;margin-top:0.5em;padding:1em;text-align:center}#site-intro a{border:0}#site-intro p{opacity:0.6}#site-intro header h1{font-size:1.25em;margin-bottom:0}#site-intro main p{font-size:.7em;letter-spacing:.25em;line-height:2.5;margin-bottom:0;text-transform:uppercase}#site-sidebar header h1{font-size:1em}#site-sidebar>*{border-top:solid 1px rgba(160,160,160,0.3);margin:3em 2em 0 2em;padding-top:3em}@media (min-width: 1024px){#site-sidebar>*:first-child{margin-top:0}}#recent-posts{display:flex;flex-wrap:wrap;justify-content:space-between}#recent-posts>header{flex:1 1 100%}#recent-posts .mini-post{background:#ffffff;border:solid 1px rgba(160,160,160,0.3);display:flex;flex-direction:column;margin-bottom:1em;width:100%}@media (min-width: 768px){#recent-posts .mini-post{width:49%}}@media (min-width: 1024px){#recent-posts .mini-post{width:100%}}#recent-posts .mini-post header{min-height:4em;padding:1.25em 1.25em 0.1em 1.25em;position:relative}@media (min-width: 768px){#recent-posts .mini-post header{border-top:solid 1px rgba(160,160,160,0.3)}}@media (min-width: 1024px){#recent-posts .mini-post header{border:0}}#recent-posts .mini-post header h1{font-size:0.7em}#recent-posts .mini-post header .published{display:block;font-family:"Raleway", Helvetica, sans-serif;font-size:0.6em;font-weight:400;letter-spacing:0.25em;margin:-0.625em 0 1.7em 0;text-transform:uppercase}#recent-posts .mini-post header .author,#recent-posts .mini-post header .format{position:absolute;right:2em;top:2em}#recent-posts .mini-post section{flex-grow:1;overflow:hidden}#recent-posts .mini-post section .image:hover img{-moz-transform:scale(1.05);-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}#recent-posts .mini-post section .image img{display:block;height:100%;margin:0;-moz-transition:-moz-transform 0.2s ease-out;-webkit-transition:-webkit-transform 0.2s ease-out;-ms-transition:-ms-transform 0.2s ease-out;transition:transform 0.2s ease-out;width:100%}#categories .count{float:right}#mini-bio p{opacity:0.65;font-size:0.9em;padding:0}#mini-bio footer{text-align:center}#site-footer{border-top:solid 1px rgba(160,160,160,0.3);margin:3em 2em 0 2em;padding-top:3em}#site-footer .copyright{color:#aaaaaa;font-family:"Raleway", Helvetica, sans-serif;font-size:0.5em;font-weight:400;letter-spacing:0.25em;text-align:center;text-transform:uppercase}#back-to-top{bottom:15px;color:#aaaaaa;display:none;position:fixed;right:15px;border:0}#site-intro .socnet-icons,#site-footer .socnet-icons{display:flex;flex-wrap:wrap;justify-content:center;padding-left:0}#site-intro .socnet-icons li,#site-footer .socnet-icons li{margin:0 .5em;min-width:20px;list-style-type:none}#site-intro .socnet-icons li a,#site-footer .socnet-icons li a{opacity:0.6;border:none}#socnet-share{display:flex;flex-wrap:wrap;justify-content:space-between;margin:1em 1em 0 1em}@media (min-width: 768px){#socnet-share{justify-content:flex-start}}#socnet-share a{margin-bottom:.5em;padding:.5em;width:4em}@media (min-width: 768px){#socnet-share a{margin-right:.25em}}#socnet-share a i{font-size:1em}#socnet-share p{display:none}.hidden{display:none !important}.visuallyhidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap}.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto;white-space:inherit}.invisible{visibility:hidden}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}@media print{*,*:before,*:after{background:transparent !important;color:#000 !important;-webkit-box-shadow:none !important;box-shadow:none !important;text-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre{white-space:pre-wrap !important}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}} diff --git a/exampleSite/resources/_gen/assets/scss/scss/main.scss_b5a97001882d870cddf46d3bce56b70e.json b/exampleSite/resources/_gen/assets/scss/scss/main.scss_b5a97001882d870cddf46d3bce56b70e.json index 81e972b4..fb275815 100644 --- a/exampleSite/resources/_gen/assets/scss/scss/main.scss_b5a97001882d870cddf46d3bce56b70e.json +++ b/exampleSite/resources/_gen/assets/scss/scss/main.scss_b5a97001882d870cddf46d3bce56b70e.json @@ -1 +1 @@ -{"Target":"css/main.min.e25bd28619877b6db95b4bb0d84aada96f31ca55d4e0ac23b576470df37a8f85.css","MediaType":"text/css","Data":{"Integrity":"sha256-4lvShhmHe225W0uw2EqtqW8xylXU4KwjtXZHDfN6j4U="}} \ No newline at end of file +{"Target":"css/main.min.23afd7f8b5afb4794b8283807f9ba0681c4be2c45a9d16cf05ba5ea0d7cce5f6.css","MediaType":"text/css","Data":{"Integrity":"sha256-I6/X+LWvtHlLgoOAf5ugaBxL4sRanRbPBbpeoNfM5fY="}} \ No newline at end of file diff --git a/exampleSite/staticman.yml b/exampleSite/staticman.yml index 827c7ec9..1e7980cc 100644 --- a/exampleSite/staticman.yml +++ b/exampleSite/staticman.yml @@ -7,7 +7,7 @@ comments: # # Names of the fields the form is allowed to submit. If a field that is # not here is part of the request, an error will be thrown. - allowedFields: ["name", "email", "website", "body"] + allowedFields: ["name", "email", "website", "body", "replyID", "replyName", "replyThread"] # When allowedOrigins is defined, only requests sent from one of the domains # listed will be accepted. @@ -15,8 +15,8 @@ comments: # (*) REQUIRED # - # Name of the branch being used. Must match the one sent in the URL of the - # request. + # Name of the branch being used. Must match the branch configured in + # "config.toml". branch: "master" # List of fields to be populated automatically by Staticman and included in @@ -58,8 +58,14 @@ comments: transforms: email: md5 - # View the README at https://github.com/eduardoboucas/staticman-recaptcha + # reCAPTCHA (OPTIONAL) + # Register your domain at https://www.google.com/recaptcha/ and choose + # reCAPTCHA V2. Use your OWN siteKey and secret. reCaptcha: enabled: false + # siteKey and secret should match your config.toml siteKey: "" + # (!) ENCRYPT reCaptcha secret key using Staticman /encrypt endpoint + # i.e. https://{your-staticman-api}/v3/encrypt/{your-site-secret} + # For more information, visit https://staticman.net/docs/encryption secret: "" diff --git a/i18n/br.toml b/i18n/br.toml deleted file mode 100644 index 940e46d0..00000000 --- a/i18n/br.toml +++ /dev/null @@ -1,50 +0,0 @@ -[date_format] - other = "2 de January, 2006" -[postreadingtime] - other = "minutos de leitura" -[recent_posts] - other = "Posts recentes" -[see_more] - other = "Veja mais" -[read_more] - other = "Leia mais" -[categories] - other = "Categorias" -[category] - other = "Categoria" -[tags] - other = "Tags" -[tag] - other = "Tag" -[uncategorized] - other = "Sem categoria" -[share_post] - other = "Compartilhe este post" -[about] - other = "Sobre" -[learn_more] - other = "Aprenda mais" -[repliestext] - other = "Resposta tipicamente em" -[hours] - other = "horas" -[submit] - other = "Enviar" -[404_oops] - other = "Oops, a páginas que você está
procurando não existe." -[404_backorreport] - other = "Você pode querer voltar à homepage.
Se você acha que este é um erro, informe o problema." -[404_gotohome] - other = "Ir para Homepage" -[404_report] - other = "Informar um problema" -[blog] - other = "Blog" -[contact] - other = "Contato" -[next_page] - other = "Próxima página" -[previous_page] - other = "Página anterior" -[attribution] - other = "Tema: Hugo Future Imperfect
Adaptado de HTML5 UP | Impulsado por Hugo" diff --git a/i18n/de.toml b/i18n/de.toml new file mode 100644 index 00000000..dfb7c88a --- /dev/null +++ b/i18n/de.toml @@ -0,0 +1,48 @@ +[date_format] + other = "02-01-2006" +[postreadingtime] + one = "1 Minute" + other = "{{ .Count }} Minuten" +[recent_posts] + other = "Letzte Artikel" +[see_more] + other = "Mehr erfahren" +[read_more] + other = "Weiterlesen" +[categories] + other = "Kategorien" +[category] + other = "Kategorie" +[tags] + other = "Tags" +[tag] + other = "Tag" +[uncategorized] + other = "Unkategorisiert" +[share_post] + other = "Teilen" +[about] + other = "Über mich" +[learn_more] + other = "Mehr erfahren" +[repliestext] + one = "Antworten innerhalb von 1 Stunde." + other = "Antworten innerhalb von {{ .Count }} Stunden." +[submit] + other = "Senden" +[404_pagenotfound] + other = "Seite nicht gefunden" +[404_sorry] + other = "Entschuldigung, die Seite, die Sie suchen, ist leider nicht gibt." +[404_goback] + other = "Gehe zurück" +[blog] + other = "Blog" +[contact] + other = "Kontakt" +[next_page] + other = "Nächste Seite" +[previous_page] + other = "Vorherige Seite" +[attribution] + other = "Thema : Hugo Future Imperfect Slim
Ein HTML5 Port | Unterstützt von: Hugo" diff --git a/i18n/en.toml b/i18n/en.toml index b9f0d7d3..3de10170 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,7 +1,8 @@ [date_format] other = "January 2, 2006" [postreadingtime] - other = "minute read" + one = "1 minute read" + other = "{{ .Count }} minutes read" [recent_posts] other = "Recent posts" [see_more] @@ -25,19 +26,16 @@ [learn_more] other = "Learn More" [repliestext] - other = "Replies typically within" -[hours] - other = "hours" + one = "Replies typically within 1 hour." + other = "Replies typically within {{ .Count }} hours." [submit] other = "Submit" -[404_oops] - other = "Oops, the page you're
looking for does not exist." -[404_backorreport] - other = "You may want to head back to the homepage.
If you think something is broken, report a problem." -[404_gotohome] - other = "Go To Homepage" -[404_report] - other = "Report A Problem" +[404_pagenotfound] + other = "Page Not Found" +[404_sorry] + other = "Sorry, but the page you were trying to view does not exist." +[404_goback] + other = "Go Back" [blog] other = "Blog" [contact] @@ -48,3 +46,29 @@ other = "Previous Page" [attribution] other = "Theme: Hugo Future Imperfect Slim
A HTML5 UP port | Powered by Hugo" +[comments] + other = "Comments" +[say_sth] + other = "Say something" +[name] + other = "Your name (Required)" +[email] + other = "Your email address (Required for Gravatar)" +[website] + other = "Your website" +[body] + other = "Your message. Feel free to use Markdown (Google 'Markdown Cheat Sheet')." +[no_comment] + other = "Nothing yet." +[reply] + other = "Reply" +[btn_reset] + other = "Reset" +[btn_submitted] + other = "Submitted" +[btn_sumbit] + other = "Submit" +[error_msg] + other = "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." +[success_msg] + other = "Thanks for your comment! It will be shown on the site once it has been approved." diff --git a/i18n/es.toml b/i18n/es.toml index f069c47e..d8d9d167 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -1,7 +1,8 @@ [date_format] other = "2 de Enero, 2006" [postreadingtime] - other = "minutos" + one = "1 minuto" + other = "{{ .Count }} minutos" [recent_posts] other = "Posts recientes" [see_more] @@ -25,19 +26,16 @@ [learn_more] other = "Saber más" [repliestext] - other = "Responde normalmente en" -[hours] - other = "horas" + one = "Responde normalmente en 1 hora." + other = "Responde normalmente en {{ .Count }} horas." [submit] other = "Enviar" -[404_oops] - other = "Ups, lapágina que estas
buscando no exite." -[404_backorreport] - other = "Seguramente quieras vover a la página principal.
Si crees que algo no va bien, avísalo." -[404_gotohome] - other = "Ir a la página principal" -[404_report] - other = "Avisar de un problema" +[404_pagenotfound] + other = "Página No Encontrada" +[404_sorry] + other = "Lo sentimos, la página que estás buscando no existe." +[404_goback] + other = "Volver" [blog] other = "Blog" [contact] @@ -48,3 +46,29 @@ other = "Página anterior" [attribution] other = "Tema: Hugo Future Imperfect Slim
Adaptado de HTML5 UP | Impulsado por Hugo" +[comments] + other = "Comentarios" +[say_sth] + other = "Di algo" +[name] + other = "Tu nombre (requeridos)" +[email] + other = "Tu correo electrónico (requeridos para Gravatar)" +[website] + other = "Tu sitio web" +[body] + other = "Tu mensaje. Siéntase libre de usar Markdown. (Buscar 'hoja de trucos Markdown')" +[no_comment] + other = "Nada aún`" +[reply] + other = "Responder" +[btn_reset] + other = "Reiniciar" +[btn_submitted] + other = "Enviado" +[btn_sumbit] + other = "Enviar" +[error_msg] + other = "Lo sentimos, ha ocurrido un error al enviar su comentario. Por favor asegurese que todos los campos han sido diligenciados e intente de nuevo." +[success_msg] + other = "Gracias por su comentario!, Este se visualizará en el sitio una vez haya sido aprobado." diff --git a/i18n/fr.toml b/i18n/fr.toml index 8425992b..5407d7ad 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -1,7 +1,8 @@ [date_format] other = "02-01-2006" [postreadingtime] - other = "minutes" + one = "1 minute" + other = "{{ .Count }} minutes" [recent_posts] other = "Posts récents" [see_more] @@ -25,19 +26,16 @@ [learn_more] other = "En savoir plus" [repliestext] - other = "Réponse généralement en" -[hours] - other = "heures" + one = "Réponse généralement en 1 heure." + other = "Réponse généralement en {{ .Count }} heures." [submit] other = "Envoyer" -[404_oops] - other = "Oops, la page que vous
demandez n'existe pas." -[404_backorreport] - other = "Vous pouvez retourner à la page d'accueil.
En cas de souci technique avec le site, contactez-moi par le formulaire dans l'onglet « Contact »." -[404_gotohome] - other = "Accueil" -[404_report] - other = "Signaler un problème" +[404_pagenotfound] + other = "Page Non Trouvée" +[404_sorry] + other = "Désolé, la page que vous cherchez n'existe pas." +[404_goback] + other = "Retourner" [blog] other = "Blog" [contact] @@ -48,3 +46,29 @@ other = "Page précédente" [attribution] other = "Thème : Hugo Future Imperfect Slim
Un portage de HTML5 UP | Propulsé par Hugo" +[comments] + other = "Commentaires" +[say_sth] + other = "Dire quelques choses" +[name] + other = "Votre nom (requis)" +[email] + other = "Votre site Web" +[website] + other = "Votre adresse mail (requis pour Gravatar)" +[body] + other = "Votre message. N'hésiter pas à utiliser Markdown (Rechercher 'aide-mémoire Markdown')." +[no_comment] + other = "Rien pour le moment." +[reply] + other = "Répondre" +[btn_reset] + other = "Effacer" +[btn_submitted] + other = "Envoyé" +[btn_sumbit] + other = "Envoyer" +[error_msg] + other = "Désolé, une erreur s'est produite. Veuillez remplir tous les champs obligatoires et réessayer." +[success_msg] + other = "Merci de votre commentaire, il s'affichera sur le site une fois approuvé." diff --git a/i18n/pl.toml b/i18n/pl.toml index d7ef6e1c..a3e16284 100644 --- a/i18n/pl.toml +++ b/i18n/pl.toml @@ -1,7 +1,10 @@ [date_format] other = "2-1-2006" [postreadingtime] - other = "Czas odczytu" + one = "1 minuta czytania" + few = "{{ .Count }} minuty czytania" + many = "{{ .Count }} minuty czytania" + other = "{{ .Count }} minuty czytania" [recent_posts] other = "Ostatnie posty" [see_more] @@ -25,19 +28,18 @@ [learn_more] other = "dowiedz się więcej" [repliestext] - other = "Odpowiada zazwyczaj w ciagu" -[hours] - other = "Godziny" + one = "Odpowiada zazwyczaj w ciagu 1 godzina." + few = "Odpowiada zazwyczaj w ciagu {{ .Count }} godziny." + many = "Odpowiada zazwyczaj w ciagu {{ .Count }} godziny." + other = "Odpowiada zazwyczaj w ciagu {{ .Count }} godziny." [submit] other = "Prześlij" -[404_oops] - other = "Ups, strona, którą szukasz
, nie istnieje." -[404_backorreport] - other = "Możesz wrócić do strony głównej.
Jeśli uważasz, że coś jest nie tak, zgłoś problem." -[404_gotohome] - other = "Przejdź do strony głównej" -[404_report] - other = "Zgłoś problem" +[404_pagenotfound] + other = "Nie Znaleziono Strony" +[404_sorry] + other = "Przepraszamy, ale strona, którą próbujesz wyświetlić, nie istnieje." +[404_goback] + other = "Wróć" [blog] other = "Blog" [contact] @@ -48,3 +50,29 @@ other = "Poprzednia strona" [attribution] other = "Motyw: Hugo Future Imperfect Slim
Przyjęty z HTML5 UP | Wspierane przez Hugo" +[comments] + other = "Komentarzy" +[say_sth] + other = "Powiedz coś" +[name] + other = "Twoje imię" +[email] + other = "Twój adres email" +[website] + other = "Twoja strona internetowa" +[body] + other = "Twoja wiadomość. Nie krępuj się użyć Markdown (Szukaj 'ściągawka Markdown.')." +[no_comment] + other = "Jeszcze nic" +[reply] + other = "Odpowiedz" +[btn_reset] + other = "Wyzeruj" +[btn_submitted] + other = "Komentarz dodany" +[btn_sumbit] + other = "Skomentuj" +[error_msg] + other = "Niestety wystąpił błąd. Proszę upewnij się, że wszystkie wymagane pola zostały wypełnione i spróbuj ponownie." +[success_msg] + other = "Dziękuję za Twój komentarz! Zostanie dodany po akceptacji." diff --git a/i18n/pt.toml b/i18n/pt.toml new file mode 100644 index 00000000..6d0f3ba4 --- /dev/null +++ b/i18n/pt.toml @@ -0,0 +1,78 @@ +[date_format] + other = "2 de January, 2006" +[postreadingtime] + one = "1 minuto de leitura" + few = "{{ .Count }} minutos de leitura" + many = "{{ .Count }} minutos de leitura" + other = "{{ .Count }} minutos de leitura" +[recent_posts] + other = "Posts recentes" +[see_more] + other = "Veja mais" +[read_more] + other = "Leia mais" +[categories] + other = "Categorias" +[category] + other = "Categoria" +[tags] + other = "Tags" +[tag] + other = "Tag" +[uncategorized] + other = "Sem categoria" +[share_post] + other = "Compartilhe este post" +[about] + other = "Sobre" +[learn_more] + other = "Aprenda mais" +[repliestext] + one = "Resposta tipicamente em 1 hora." + few = "Resposta tipicamente em {{ .Count }} horas." + many = "Resposta tipicamente em {{ .Count }} horas." + other = "Resposta tipicamente em {{ .Count }} horas." +[submit] + other = "Enviar" +[404_pagenotfound] + other = "Página Não Encontrada" +[404_sorry] + other = "Desculpe, mas a página que você está procurando não existe." +[404_goback] + other = "Voltar" +[blog] + other = "Blog" +[contact] + other = "Contato" +[next_page] + other = "Próxima página" +[previous_page] + other = "Página anterior" +[attribution] + other = "Tema: Hugo Future Imperfect
Adaptado de HTML5 UP | Disponibilizado pelo Hugo" +[comments] + other = "Comentários" +[say_sth] + other = "Diga algo" +[name] + other = "Seu nome (requeridos)" +[email] + other = "Seu email (requeridos para Gravatar)" +[website] + other = "Seu website" +[body] + other = "Sua mensagem. Sinta-se livre para usar Markdown. (Buscar 'folha de dicas do Markdown')" +[no_comment] + other = "Nada ainda" +[reply] + other = "Responder" +[btn_reset] + other = "Reiniciar" +[btn_submitted] + other = "Enviado" +[btn_sumbit] + other = "Enviar" +[error_msg] + other = "Desculpe, ocorreu um erro no envio. Por favor verifique se todos os campos obrigatórios foram preenchidos e tente novamente." +[success_msg] + other = "Obrigado pelo seu comentário! Ele aparecerá no site assim que for aprovado." diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml index c8e57321..79e27d9d 100644 --- a/i18n/zh-CN.toml +++ b/i18n/zh-CN.toml @@ -1,7 +1,7 @@ [date_format] other = "January 2, 2006" [postreadingtime] - other = "分钟" + other = "{{ .Count }} 分钟" [recent_posts] other = "最新文章" [see_more] @@ -25,19 +25,15 @@ [learn_more] other = "了解更多" [repliestext] - other = "一般回应需时" -[hours] - other = "小时" + other = "一般回应需时 {{ .Count }} 小时" [submit] other = "送出" -[404_oops] - other = "噢,您索要的页面
不存在。" -[404_backorreport] - other = "请返回主页。
如您发现错误,请回报问题。" -[404_gotohome] - other = "返回主页" -[404_report] - other = "回报问题" +[404_pagenotfound] + other = "找不到页面" +[404_sorry] + other = "抱歉,您正在寻找的页面并不存在。" +[404_goback] + other = "回去" [blog] other = "博客" [contact] @@ -48,3 +44,29 @@ other = "上页" [attribution] other = "主题: Hugo Future Imperfect Slim
移植自 HTML5 UP | 由 Hugo 驱动" +[comments] + other = "评论" +[say_sth] + other = "说些什么" +[name] + other = "您的名字(必填)" +[email] + other = "您的电邮地址(必填,用于 Gravatar 头象)" +[website] + other = "您的网站" +[body] + other = "您的留言。可使用 Markdown。(搜索 'Markdown 語法速查')" +[no_comment] + other = "还沒有留言。" +[reply] + other = "回覆" +[btn_reset] + other = "重设" +[btn_submitted] + other = "已送出" +[btn_sumbit] + other = "送出" +[error_msg] + other = "很抱歉,您的提交存在错误。请确保所有必填字段都已填写正确,然后再试一次。" +[success_msg] + other = "感谢您的评论!被批准后它会立即在此站点展示。" diff --git a/i18n/zh-TW.toml b/i18n/zh-TW.toml index 91dbe6dd..8ab2fecd 100644 --- a/i18n/zh-TW.toml +++ b/i18n/zh-TW.toml @@ -1,7 +1,7 @@ [date_format] other = "January 2, 2006" [postreadingtime] - other = "分鐘" + other = "{{ .Count }} 分鐘" [recent_posts] other = "最新文章" [see_more] @@ -25,19 +25,15 @@ [learn_more] other = "了解更多" [repliestext] - other = "一般回應需時" -[hours] - other = "小時" + other = "一般回应需时 {{ .Count }} 小时" [submit] other = "送出" -[404_oops] - other = "噢,您索要的頁面
不存在。" -[404_backorreport] - other = "請返回主頁。
如您發現錯誤,請回報問題。" -[404_gotohome] - other = "返回主頁" -[404_report] - other = "回報問題" +[404_pagenotfound] + other = "找不到頁面" +[404_sorry] + other = "抱歉,您正在尋找的頁面並不存在。" +[404_goback] + other = "回去" [blog] other = "博客" [contact] @@ -48,3 +44,29 @@ other = "上頁" [attribution] other = "主題: Hugo Future Imperfect Slim
移植自 HTML5 UP | 由 Hugo 提供" +[comments] + other = "留言" +[say_sth] + other = "說些甚麼" +[name] + other = "您的名字(必填)" +[email] + other = "您的電郵地址(必填,用於 Gravatar 頭像)" +[website] + other = "您的網站" +[body] + other = "您的留言。可使用 Markdown。(搜尋 'Markdown 語法速查')" +[no_comment] + other = "還未有留言。" +[reply] + other = "回覆" +[btn_reset] + other = "重設" +[btn_submitted] + other = "已送出" +[btn_sumbit] + other = "送出" +[error_msg] + other = "抱歉,部份資料輸入有問題。請確認資料填寫正確後再試一次。" +[success_msg] + other = "感謝您的留言! 審核後將會顯示在站上。" diff --git a/layouts/404.html b/layouts/404.html index 1728411f..fa3530ed 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,62 +1,16 @@ - + - - Page Not Found - - + + {{ i18n "404_pagenotfound" }} + + -

404

-

Page Not Found

-

Sorry, but the page you were trying to view does not exist.

- Go Back +

404

+

{{ i18n "404_pagenotfound" | safeHTML }}

+

{{ i18n "404_sorry" | safeHTML }}

+ {{ i18n "404_goback" | safeHTML }} diff --git a/layouts/contact/list.html b/layouts/contact/list.html index cf978ed8..01bcf6b4 100644 --- a/layouts/contact/list.html +++ b/layouts/contact/list.html @@ -26,21 +26,21 @@

{{ .Title }}

{{ else }}
{{ end }} -

{{ i18n "repliestext" }} {{ .Params.contactanswertime }} {{ i18n "hours" }}.

+

{{ i18n "repliestext" .Params.contactanswertime }}

- +
- +
- +
- +
- +
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c54c59d9..298b2047 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -41,7 +41,6 @@ {{ end }} {{ end }} {{ end }} - {{ if and .Site.Params.staticman.recaptcha.siteKey .Site.Params.staticman.recaptcha.encryptedKey }}{{ end }} {{ .Scratch.Set "Permalink" .Permalink }} {{ .Scratch.Set "Title" .Title }} {{ .Scratch.Set "Author" .Author }} diff --git a/layouts/partials/language-menu.html b/layouts/partials/language-menu.html index c5d8e1fd..cc3a58e1 100644 --- a/layouts/partials/language-menu.html +++ b/layouts/partials/language-menu.html @@ -7,7 +7,7 @@ {{ else }} {{ range .Site.Languages }} {{ if not (eq .Lang $.Site.Language.Lang) }} - + {{ end }} {{ end }} {{ end }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 972da580..59663ff0 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -36,4 +36,11 @@ {{ end }} {{ end }} {{ end }} +{{ if .Site.Params.staticman }} + {{- $smjs := resources.Get "js/staticman.js" | resources.ExecuteAsTemplate "js/staticman.js" .Site.Params.staticman -}} + + {{ if and .Site.Params.staticman.recaptcha.siteKey .Site.Params.staticman.recaptcha.encryptedKey }} + + {{ end }} +{{ end }} {{ template "_internal/google_analytics_async.html" . }} diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index 3ee46f1a..816f2139 100644 --- a/layouts/partials/site-header.html +++ b/layouts/partials/site-header.html @@ -6,7 +6,7 @@

{{ if or .IsHome (not .Site.Params.header.dynamicTitles) }} - {{ .Site.Params.header.navbarTitle }} + {{ .Site.Params.header.navbarTitle | safeHTML }} {{ else if ne .Section "" }} {{ if i18n .Section }} {{ i18n .Section }} diff --git a/layouts/post/header.html b/layouts/post/header.html index 402a0706..64fd0a96 100644 --- a/layouts/post/header.html +++ b/layouts/post/header.html @@ -16,7 +16,7 @@

{{ .Title }}

{{ .Params.author }} {{ if .Site.Params.ReadingTime }} -

{{ .ReadingTime }} {{ i18n "postreadingtime" }}

+

{{ i18n "postreadingtime" .ReadingTime }}

{{ end }} diff --git a/layouts/post/staticman.html b/layouts/post/staticman.html index 8f8279b7..32547f58 100644 --- a/layouts/post/staticman.html +++ b/layouts/post/staticman.html @@ -1,51 +1,119 @@ -

Say something

-{{ with .Site.Params.staticman }} - -{{ end }} - - - - - - - {{ if and .Site.Params.staticman.recaptcha.siteKey .Site.Params.staticman.recaptcha.encryptedKey }} - {{ with .Site.Params.staticman.recaptcha }} - - -
- {{ end }} - {{ end }} - - +{{/* $entryId stores the transformed current path for sorting Staticman data file */}} +{{- $entryId := .File.UniqueID -}} +{{/* Additional div wrapper for proper consistent margin */}} +
+

{{ i18n "say_sth" }}

+
+ {{/* Display reply target */}} + -

Comments

+ {{/* Hidden fields */}} + + + + -{{ $comments := readDir "data/comments" }} -{{ $.Scratch.Add "hasComments" 0 }} -{{ $entryId := .File.UniqueID }} + {{/* User input fields */}} + + + + -{{ range $comments }} - {{ if eq .Name $entryId }} - {{ $.Scratch.Add "hasComments" 1 }} - {{ range $index, $comments := (index $.Site.Data.comments $entryId ) }} - - {{ end }} -{{ end }} -{{ end }} + {{/* reCAPTHCA v2 */}} + {{ if and .Site.Params.staticman.recaptcha.siteKey .Site.Params.staticman.recaptcha.encryptedKey }} + {{ with .Site.Params.staticman.recaptcha }} + + +
+ {{ end }} + {{ end }} + + {{/* Start comment form alert messaging */}} +

+ + +

-{{ if eq ($.Scratch.Get "hasComments") 0 }} -

Nothing yet.

-{{ end }} + {{/* Form buttons */}} + + + +
+
+ +{{/* Additional div wrapper for proper consistent margin */}} +
+

{{ i18n "comments" }}

+ + {{ if .Site.Data.comments }} + {{/* $comments collects comment files for the current blog entry */}} + {{- $comments := index $.Site.Data.comments $entryId -}} + {{ if not $comments }} +

{{ i18n "no_comment" }}

+ {{ else }} + {{/* Loop through "main comments" only if "data/comments exists" */}} + {{ range $comments }} + {{ if not .replyThread }} + {{ $.Scratch.Set "threadID" ._id }} + {{/* Comment template for a "main comment" */}} + + {{/* Loop through "comment replies" */}} + {{ range $comments }} + {{ if eq .replyThread ($.Scratch.Get "threadID") }} + {{/* Comment template for a "comment reply" */}} + + {{ end }} + {{ end }} + {{ end }} + {{ end }} + {{ end }} + {{ end }} +
diff --git a/static/css/404.css b/static/css/404.css new file mode 100644 index 00000000..50cbf413 --- /dev/null +++ b/static/css/404.css @@ -0,0 +1,54 @@ +html { + height: 100%; + display: flex; + align-items: center; + justify-content: center; + text-align: center; + background: #f4f4f4; + color: #888; + font-family: "Raleway", Helvetica, sans-serif; + line-height: 1.4; +} + +h1, h2 { + color: #3c3b3b; + letter-spacing: 0.25em; +} + +a { + border-bottom: dotted 1px rgba(160, 160, 160, 0.65); + color: inherit; + text-decoration: none; + -webkit-transition: color .2s ease, border-bottom-color 0.2s ease; + -moz-transition: color .2s ease, border-bottom-color 0.2s ease; + -ms-transition: color .2s ease, border-bottom-color 0.2s ease; + -o-transition: color .2s ease, border-bottom-color 0.2s ease; + transition: color .2s ease, border-bottom-color 0.2s ease; +} + +a:before { + content: "🡠 "; + -webkit-transition: color ease; + -moz-transition: color ease; + -ms-transition: color ease; + -o-transition: color ease; + transition: color ease; +} + +a:hover { + border-bottom-color: transparent; + color: $accent-color; +} + +@media only screen and (max-width: 280px) { + + body, p { + width: 95%; + } + + h1 { + font-size: 1.5em; + margin: 0 0 0.3em; + } + +}