Added better code highlight settings, added default author avatar.

This commit is contained in:
Greenscreener 2019-08-03 12:18:49 +02:00
parent 95c642bfc7
commit ebf4be9c08
6 changed files with 112 additions and 5 deletions

View File

@ -16,5 +16,6 @@
"tag": "tags", "tag": "tags",
"project": "projects", "project": "projects",
"author": "authors" "author": "authors"
} },
"pygmentsCodeFences": true
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg8"
version="1.1"
viewBox="0 0 22.452 22.454"
sodipodi:docname="unknown-author.svg"
inkscape:export-filename="/tmp/patek-avatar.png"
inkscape:export-xdpi="1920"
inkscape:export-ydpi="1920"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
<metadata
id="metadata918">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs916">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath835">
<path
inkscape:connector-curvature="0"
id="path837"
d="M 0,11.847656 V 22.454 H 22.450888 V 11.847656 h -4.616904 c -0.142652,1.511258 -0.785919,2.965607 -1.904296,4.083985 -1.901248,1.901473 -4.765631,2.470461 -7.2500005,1.441406 C 6.3968474,16.427622 4.8652286,14.271316 4.6230469,11.847656 Z"
style="opacity:1;fill:#f80000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.18821809;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers fill stroke"
sodipodi:nodetypes="ccccccccc" />
</clipPath>
</defs>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1436"
inkscape:window-height="811"
id="namedview914"
showgrid="false"
inkscape:zoom="11.313709"
inkscape:cx="23.041524"
inkscape:cy="1.6145784"
inkscape:window-x="1360"
inkscape:window-y="53"
inkscape:window-maximized="0"
inkscape:current-layer="svg8" />
<path
id="circle0"
d="m 5.4129013,11.188893 c 1.1e-6,2.349658 1.412218,4.507312 3.5882546,5.408505 2.1708071,0.899174 4.6735801,0.401343 6.3348641,-1.260137 1.661491,-1.661491 2.159311,-4.164213 1.260138,-6.3348642 C 15.694913,6.826619 13.54021,5.4131583 11.190759,5.4131583 v 1.0447296 c 1.93013,0 3.704244,1.1657413 4.440826,2.9439978 0.738653,1.7832273 0.331226,3.8314693 -1.033597,5.1962043 -1.364839,1.364838 -3.41308,1.77225 -5.196204,1.033596 C 7.6237864,14.895208 6.4577862,13.119023 6.4577862,11.188841 Z"
style="font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-transform:none;text-orientation:mixed;dominant-baseline:auto;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;fill:#0b2a37;fill-opacity:1;stroke-width:0.51780808;paint-order:markers fill stroke;color-rendering:auto;image-rendering:auto;shape-rendering:auto"
inkscape:connector-curvature="0" />
<path
id="circle3"
d="m 8.5429993,11.192 c -10e-7,1.070516 0.6463281,2.036798 1.6353417,2.446436 0.989013,0.409659 2.128398,0.183527 2.885382,-0.573421 0.756932,-0.756932 0.984094,-1.897352 0.574456,-2.886365 C 13.22852,9.1896362 12.262259,8.5433081 11.191743,8.5433081 v 0.476342 c 0.879342,-5e-7 1.669983,0.5286303 2.006506,1.3410189 0.336519,0.812441 0.151526,1.745739 -0.470273,2.367574 -0.621784,0.621784 -1.555133,0.807781 -2.367574,0.471283 C 9.5479612,12.863013 9.0193828,12.071378 9.0193828,11.191984 Z"
style="font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-transform:none;text-orientation:mixed;dominant-baseline:auto;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;fill:#0b2a37;fill-opacity:1;stroke-width:0.51780808;paint-order:markers fill stroke;color-rendering:auto;image-rendering:auto;shape-rendering:auto"
inkscape:connector-curvature="0" />
<path
id="circle5"
d="m 9.7990981,11.192 c 0,0.562961 0.3395269,1.070982 0.8596649,1.286442 0.520138,0.21546 1.118932,0.0967 1.517022,-0.301379 0.398081,-0.398081 0.517808,-0.99792 0.30239,-1.518007 -0.215439,-0.520138 -0.723481,-0.8596646 -1.286442,-0.8596646 v 0.2498006 c 0.462449,0 0.87784,0.278669 1.054826,0.705928 0.176987,0.427259 0.07923,0.91797 -0.247781,1.244966 -0.327001,0.327001 -0.817723,0.424753 -1.244966,0.247782 C 10.326563,12.070896 10.04892,11.65446 10.04892,11.192005 Z"
style="font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-transform:none;text-orientation:mixed;dominant-baseline:auto;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;fill:#0b2a37;fill-opacity:1;stroke-width:0.51780808;paint-order:markers fill stroke;color-rendering:auto;image-rendering:auto;shape-rendering:auto"
inkscape:connector-curvature="0" />
<path
id="circle6"
d="m 10.196568,11.192 c 0,0.402254 0.242251,0.765372 0.613861,0.919316 0.371631,0.153934 0.799703,0.06902 1.084187,-0.215418 0.284483,-0.284437 0.370362,-0.71354 0.216428,-1.08517 -0.153934,-0.371631 -0.517063,-0.613862 -0.919317,-0.613862 v 0.179006 c 0.330429,0 0.627014,0.198373 0.753463,0.503652 0.126449,0.305278 0.05666,0.656321 -0.176987,0.890008 -0.23365,0.233687 -0.583673,0.303436 -0.888973,0.176987 -0.305299,-0.126449 -0.503651,-0.424033 -0.503651,-0.754447 z"
style="font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-transform:none;text-orientation:mixed;dominant-baseline:auto;white-space:normal;shape-padding:0;isolation:auto;mix-blend-mode:normal;fill:#0b2a37;fill-opacity:1;stroke-width:0.51780808;paint-order:markers fill stroke;color-rendering:auto;image-rendering:auto;shape-rendering:auto"
inkscape:connector-curvature="0" />
<ellipse
style="opacity:1;fill:#0b2a37;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.14794326;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers fill stroke"
id="path920"
clip-path="url(#clipPath835)"
cx="11.228116"
cy="22.633677"
rx="10.452293"
ry="6.4542031" />
</svg>

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -19,3 +19,6 @@ other = "Členové"
[leader] [leader]
other = "Vedoucí" other = "Vedoucí"
[missing_author]
other = "{{ .Name }} nám o sobě nic neřekl/a."

View File

@ -17,3 +17,6 @@ other = "Members"
[leader] [leader]
other = "Leader" other = "Leader"
[missing_author]
other = "{{ .Name }} didn't tell us anything about themselves."

View File

@ -3,14 +3,23 @@
<div class="media author-media"> <div class="media author-media">
<div class="media-left"> <div class="media-left">
<figure class="image is-96x96"> <figure class="image is-96x96">
{{ if ne .Params.avatar nil }}
<img src="{{ .Params.avatar }}" alt="User avatar"> <img src="{{ .Params.avatar }}" alt="User avatar">
{{ else }}
{{ $authorImg := resources.Get "img/unknown-author.png" }}
<img src="{{ $authorImg.Permalink }}" alt="User avatar">
{{ end }}
</figure> </figure>
</div> </div>
<div class="media-content is-vertical-center"> <div class="media-content is-vertical-center">
<h3 class="title is-3">{{ .Title }}</h3> <h3 class="title is-3">{{ .Title }}</h3>
<h4 class="title is-4">{{ .Params.fullname }}</h4> <h4 class="title is-4">{{ .Params.fullname }}</h4>
<div class="content"> <div class="content">
{{ if ne .Content "" }}
{{ .Content }} {{ .Content }}
{{ else }}
{{ T "missing_author" .Page }}
{{ end }}
</div> </div>
</div> </div>
</div> </div>