Prechádzať zdrojové kódy

Multiline info - enhancement (#578)

* Multiline info

* Vladislav Matus added as a contributor

Co-authored-by: Vladislav Matus <matusvla@fjfi.cvut.cz>
Co-authored-by: Luiz F. A. de Prá <luizdepra@users.noreply.github.com>
Vladislav Matus 4 rokov pred
rodič
commit
621607f9ef

+ 1 - 0
CONTRIBUTORS.md

@@ -98,4 +98,5 @@
 - [cuso4-5h2o](https://www.cuso4.me)
 - [freeformz](https://icanhazdowntime.org)
 - [Roberto Gongora](https://yourfavourite.blog)
+- [Vladislav Matus](https://github.com/matusvla)
 - [Kirill Feoktistov](https://feoktistoff.org)

+ 1 - 1
exampleSite/config.toml

@@ -15,7 +15,7 @@ enableEmoji = true
 author = "John Doe"
 description = "John Doe's personal website"
 keywords = "blog,developer,personal"
-info = "Full Stack DevOps and Magician"
+info = ["Full Stack DevOps", "Magician"]
 avatarURL = "images/avatar.jpg"
 #gravatar = "john.doe@example.com"
 footerContent = "Enter a text here."

+ 4 - 0
layouts/partials/home.html

@@ -9,7 +9,11 @@
       <div class="avatar"><img src="https://www.gravatar.com/avatar/{{md5 .}}?s=240&d=mp" alt="gravatar"></div>
     {{ end }}
     <h1>{{ .Site.Params.author }}</h1>
+    {{ if reflect.IsSlice .Site.Params.info }}
+    <h2>{{ range .Site.Params.info }}{{.}}<br>{{ end}}</h2>
+    {{ else }}
     <h2>{{ .Site.Params.info }}</h2>
+    {{ end }}
     {{ with .Site.Params.social }}
     <ul>
       {{ range sort . "weight" }}

+ 195 - 9
resources/_gen/assets/scss/scss/coder.scss_fd4b5b3f9a48bc0c7f005d2f7a4cc30f.content

@@ -1,3 +1,4 @@
+@charset "UTF-8";
 /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
 /* Document
    ========================================================================== */
@@ -304,7 +305,7 @@ template {
   display: none; }
 
 /*!
-Fork Awesome 1.1.7
+Fork Awesome 1.2.0
 License - https://forkaweso.me/Fork-Awesome/license
 
 Copyright 2018 Dave Gandy & Fork Awesome
@@ -319,8 +320,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
  * -------------------------- */
 @font-face {
   font-family: 'ForkAwesome';
-  src: url("../fonts/forkawesome-webfont.eot?v=1.1.7");
-  src: url("../fonts/forkawesome-webfont.eot?#iefix&v=1.1.7") format("embedded-opentype"), url("../fonts/forkawesome-webfont.woff2?v=1.1.7") format("woff2"), url("../fonts/forkawesome-webfont.woff?v=1.1.7") format("woff"), url("../fonts/forkawesome-webfont.ttf?v=1.1.7") format("truetype"), url("../fonts/forkawesome-webfont.svg?v=1.1.7#forkawesomeregular") format("svg");
+  src: url("../fonts/forkawesome-webfont.eot?v=1.2.0");
+  src: url("../fonts/forkawesome-webfont.eot?#iefix&v=1.2.0") format("embedded-opentype"), url("../fonts/forkawesome-webfont.woff2?v=1.2.0") format("woff2"), url("../fonts/forkawesome-webfont.woff?v=1.2.0") format("woff"), url("../fonts/forkawesome-webfont.ttf?v=1.2.0") format("truetype"), url("../fonts/forkawesome-webfont.svg?v=1.2.0#forkawesomeregular") format("svg");
   font-weight: normal;
   font-style: normal;
   font-display: block; }
@@ -2854,6 +2855,165 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
 .fa-biometric:before {
   content: "\f32b"; }
 
+.fa-wire:before {
+  content: "\f32c"; }
+
+.fa-tor-onion:before {
+  content: "\f32e"; }
+
+.fa-volume-mute:before {
+  content: "\f32f"; }
+
+.fa-bell-ringing:before {
+  content: "\f32d"; }
+
+.fa-bell-ringing-o:before {
+  content: "\f330"; }
+
+.fa-hal:before {
+  content: "\f333"; }
+
+.fa-jupyter:before {
+  content: "\f335"; }
+
+.fa-julia:before {
+  content: "\f334"; }
+
+.fa-classicpress:before {
+  content: "\f331"; }
+
+.fa-classicpress-circle:before {
+  content: "\f332"; }
+
+.fa-open-collective:before {
+  content: "\f336"; }
+
+.fa-orcid:before {
+  content: "\f337"; }
+
+.fa-researchgate:before {
+  content: "\f338"; }
+
+.fa-funkwhale:before {
+  content: "\f339"; }
+
+.fa-askfm:before {
+  content: "\f33a"; }
+
+.fa-blockstack:before {
+  content: "\f33b"; }
+
+.fa-boardgamegeek:before {
+  content: "\f33c"; }
+
+.fa-bunny:before {
+  content: "\f35f"; }
+
+.fa-buymeacoffee:before {
+  content: "\f33d"; }
+
+.fa-cc-by:before {
+  content: "\f33e"; }
+
+.fa-creative-commons-alt:before,
+.fa-cc-cc:before {
+  content: "\f33f"; }
+
+.fa-cc-nc-eu:before {
+  content: "\f341"; }
+
+.fa-cc-nc-jp:before {
+  content: "\f342"; }
+
+.fa-cc-nc:before {
+  content: "\f340"; }
+
+.fa-cc-nd:before {
+  content: "\f343"; }
+
+.fa-cc-pd:before {
+  content: "\f344"; }
+
+.fa-cc-remix:before {
+  content: "\f345"; }
+
+.fa-cc-sa:before {
+  content: "\f346"; }
+
+.fa-cc-share:before {
+  content: "\f347"; }
+
+.fa-cc-zero:before {
+  content: "\f348"; }
+
+.fa-conway-hacker:before,
+.fa-conway-glider:before {
+  content: "\f349"; }
+
+.fa-csharp:before {
+  content: "\f34a"; }
+
+.fa-email-bulk:before {
+  content: "\f34b"; }
+
+.fa-email-bulk-o:before {
+  content: "\f34c"; }
+
+.fa-gnu:before {
+  content: "\f34d"; }
+
+.fa-google-play:before {
+  content: "\f34e"; }
+
+.fa-heroku:before {
+  content: "\f34f"; }
+
+.fa-hassio:before,
+.fa-home-assistant:before {
+  content: "\f350"; }
+
+.fa-java:before {
+  content: "\f351"; }
+
+.fa-mariadb:before {
+  content: "\f352"; }
+
+.fa-markdown:before {
+  content: "\f353"; }
+
+.fa-mysql:before {
+  content: "\f354"; }
+
+.fa-nordcast:before {
+  content: "\f355"; }
+
+.fa-plume:before {
+  content: "\f356"; }
+
+.fa-postgresql:before {
+  content: "\f357"; }
+
+.fa-sass-alt:before {
+  content: "\f359"; }
+
+.fa-sass:before {
+  content: "\f358"; }
+
+.fa-skate:before {
+  content: "\f35a"; }
+
+.fa-sketchfab:before {
+  content: "\f35b"; }
+
+.fa-tex:before {
+  content: "\f35c"; }
+
+.fa-textpattern:before {
+  content: "\f35d"; }
+
+.fa-unity:before {
+  content: "\f35e"; }
+
 .sr-only {
   position: absolute;
   width: 1px;
@@ -2885,7 +3045,7 @@ html {
 body {
   color: #212121;
   background-color: #fafafa;
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, sans-serif;
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, "PingFang SC", STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
   font-size: 1.8em;
   font-weight: 400;
   line-height: 1.8em; }
@@ -2910,7 +3070,7 @@ h3,
 h4,
 h5,
 h6 {
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, sans-serif;
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, "PingFang SC", STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
   font-weight: 600;
   color: #000;
   margin: 4rem 0 2.5rem 0; }
@@ -3012,7 +3172,9 @@ code {
   font-size: 1.6rem;
   font-weight: 400;
   background-color: #e0e0e0;
-  color: #212121; }
+  color: #212121;
+  border-radius: 0.6rem;
+  padding: 0.3rem 0.6rem; }
 
 blockquote {
   border-left: 2px solid #e0e0e0;
@@ -3134,6 +3296,16 @@ img.emoji {
   .content .post .post-meta .date .posted-on {
     margin-left: 0;
     margin-right: 1.5rem; }
+  .content .post .post-meta .tags .tag {
+    display: inline-block;
+    padding: 0.3rem 0.6rem;
+    background-color: #e0e0e0;
+    border-radius: 0.6rem;
+    line-height: 1.4em; }
+    .content .post .post-meta .tags .tag a {
+      color: #212121; }
+    .content .post .post-meta .tags .tag a:active {
+      color: #212121; }
   .content figure {
     margin: 0;
     padding: 0; }
@@ -3173,7 +3345,7 @@ img.emoji {
       font-size: 1.8rem;
       flex: 2;
       color: #212121;
-      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, sans-serif;
+      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, "PingFang SC", STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
       font-weight: 700; }
       .list ul li .title:hover, .list ul li .title:focus {
         color: #1565c0; }
@@ -3311,7 +3483,7 @@ img.emoji {
   .navigation span {
     display: inline;
     font-size: 1.7rem;
-    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, sans-serif;
+    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, "PingFang SC", STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
     font-weight: 600;
     line-height: 6rem;
     color: #212121; }
@@ -3400,7 +3572,7 @@ img.emoji {
 .pagination {
   margin-top: 6rem;
   text-align: center;
-  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, sans-serif; }
+  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, "PingFang SC", STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif; }
   .pagination li {
     display: inline;
     text-align: center;
@@ -3416,6 +3588,20 @@ img.emoji {
         text-align: center;
         width: 3.2rem; }
 
+.taxonomy li {
+  display: inline-block;
+  margin: 0.9rem; }
+
+.taxonomy .taxonomy-element {
+  display: block;
+  padding: 0.3rem 0.9rem;
+  background-color: #e0e0e0;
+  border-radius: 0.6rem; }
+  .taxonomy .taxonomy-element a {
+    color: #212121; }
+  .taxonomy .taxonomy-element a:active {
+    color: #212121; }
+
 .footer {
   width: 100%;
   text-align: center;