Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jakewies/hugo-theme-codex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormacxcool <mark.coolen@gmail.com>2021-01-16 16:20:16 +0300
committermacxcool <mark.coolen@gmail.com>2021-01-16 16:20:16 +0300
commit30e6e6727618ea0e31e06883b3e2585f8a01f253 (patch)
tree0b3b46de2ad2c4b77423ad25b2c20ba293a209c6
parentda2d16a4f95fc37e71548dfc139d51e22ebb09bd (diff)
Add Mastodon icon and code for social icons
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/social-icons.html2
-rw-r--r--static/svg/mastodon.svg63
3 files changed, 66 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index a28d79f..be77136 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -26,6 +26,7 @@ copyright = "© {year}"
twitter = "https://twitter.com/<your handle>"
github = "https://github.com/<your handle>"
# email = "mailto:<your email>"
+ # mastodon = "https://mastodon.social/@nickname"
# facebook = "https://facebook.com/<your handle>"
# gitlab = "https://gitlab.com/<your handle>"
# instagram = "https://instagram.com/<your handle>"
@@ -34,7 +35,7 @@ copyright = "© {year}"
# Titles for your icons (shown as tooltips), and also their display order.
# Currently, these icons are supported:
- # "Twitter", "GitHub", "Email", "Facebook", "GitLab", "Instagram", "LinkedIn", "YouTube"
+ # "Twitter", "GitHub", "Email", "Mastodon", "Facebook", "GitLab", "Instagram", "LinkedIn", "YouTube"
iconOrder = ["Twitter", "GitHub"]
# Metadata for Twitter cards, defaults to params.twitter
diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html
index d1aa10c..bdcadbf 100644
--- a/layouts/partials/social-icons.html
+++ b/layouts/partials/social-icons.html
@@ -1,5 +1,5 @@
{{ $currentPage := . }}
-{{ $icons := .Site.Params.iconOrder | default (slice "Twitter" "GitHub" "Email" "Facebook" "GitLab" "Instagram" "LinkedIn" "YouTube") }}
+{{ $icons := .Site.Params.iconOrder | default (slice "Twitter" "GitHub" "Email" "Mastodon" "Facebook" "GitLab" "Instagram" "LinkedIn" "YouTube") }}
<div class="social-icons">
{{ range $icons }}
diff --git a/static/svg/mastodon.svg b/static/svg/mastodon.svg
new file mode 100644
index 0000000..13a92c8
--- /dev/null
+++ b/static/svg/mastodon.svg
@@ -0,0 +1,63 @@
+<?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"
+ width="61.076954mm"
+ height="65.47831mm"
+ viewBox="0 0 216.4144 232.00976"
+ version="1.1"
+ id="svg1061"
+ sodipodi:docname="mastodon.svg"
+ inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07, custom)">
+ <metadata
+ id="metadata1067">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs1065" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1366"
+ inkscape:window-height="749"
+ id="namedview1063"
+ showgrid="false"
+ inkscape:zoom="2.1052455"
+ inkscape:cx="115.42102"
+ inkscape:cy="123.26353"
+ inkscape:window-x="0"
+ inkscape:window-y="19"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg1061" />
+ <path
+ fill="#2b90d9"
+ d="M211.80734 139.0875c-3.18125 16.36625-28.4925 34.2775-57.5625 37.74875-15.15875 1.80875-30.08375 3.47125-45.99875 2.74125-26.0275-1.1925-46.565-6.2125-46.565-6.2125 0 2.53375.15625 4.94625.46875 7.2025 3.38375 25.68625 25.47 27.225 46.39125 27.9425 21.11625.7225 39.91875-5.20625 39.91875-5.20625l.8675 19.09s-14.77 7.93125-41.08125 9.39c-14.50875.7975-32.52375-.365-53.50625-5.91875C9.23234 213.82 1.40609 165.31125.20859 116.09125c-.365-14.61375-.14-28.39375-.14-39.91875 0-50.33 32.97625-65.0825 32.97625-65.0825C49.67234 3.45375 78.20359.2425 107.86484 0h.72875c29.66125.2425 58.21125 3.45375 74.8375 11.09 0 0 32.975 14.7525 32.975 65.0825 0 0 .41375 37.13375-4.59875 62.915"
+ id="path1057" />
+ <path
+ fill="#fff"
+ d="M177.50984 80.077v60.94125h-24.14375v-59.15c0-12.46875-5.24625-18.7975-15.74-18.7975-11.6025 0-17.4175 7.5075-17.4175 22.3525v32.37625H96.20734V85.42325c0-14.845-5.81625-22.3525-17.41875-22.3525-10.49375 0-15.74 6.32875-15.74 18.7975v59.15H38.90484V80.077c0-12.455 3.17125-22.3525 9.54125-29.675 6.56875-7.3225 15.17125-11.07625 25.85-11.07625 12.355 0 21.71125 4.74875 27.8975 14.2475l6.01375 10.08125 6.015-10.08125c6.185-9.49875 15.54125-14.2475 27.8975-14.2475 10.6775 0 19.28 3.75375 25.85 11.07625 6.36875 7.3225 9.54 17.22 9.54 29.675"
+ id="path1059" />
+ <path
+ style="fill:#000000;stroke:#7802b8;stroke-width:0;fill-opacity:1"
+ d="M 100.69589,247.16334 C 76.25783,245.87246 53.878288,240.89128 42.146566,234.13162 17.719469,220.05703 5.0744722,192.4878 1.4262461,145.35122 0.01257143,127.08596 -0.24040358,80.433066 1.0115574,68.875578 2.5499824,54.673595 7.0686544,41.902948 14.327806,31.241263 18.106514,25.691387 25.688374,18.04835 30.617635,14.819994 44.529058,5.7088862 75.820646,0.38106919 115.42102,0.38106919 c 35.50578,0 65.99303,4.52708571 80.80835,11.99932281 6.14402,3.09879 14.67118,10.803301 19.52715,17.643286 8.95215,12.609742 13.49395,26.65773 14.61106,45.192714 1.23668,20.518766 -2.04236,65.765088 -5.52555,76.245198 -4.44005,13.35904 -24.06383,27.98932 -45.53298,33.94657 -6.59442,1.82982 -10.99684,2.59034 -22.32519,3.85669 -27.24118,3.0452 -45.38065,2.85619 -70.300586,-0.73251 -5.82703,-0.83915 -16.824945,-2.81498 -20.139865,-3.61822 l -1.139701,-0.27617 0.33114,4.22559 c 0.385333,4.91714 1.688207,10.83284 3.120572,14.169 2.367814,5.51493 7.410993,10.7959 13.068704,13.68491 6.12662,3.12844 15.110532,4.88228 28.882906,5.6385 14.53647,0.79818 29.24811,-0.5875 42.6143,-4.0138 2.4819,-0.63621 4.55472,-1.12119 4.60627,-1.07773 0.23851,0.20109 1.06249,19.42891 0.84751,19.77676 -0.49467,0.80039 -10.39036,4.33618 -16.56448,5.91858 -3.50028,0.89712 -9.35654,2.06829 -13.01392,2.60261 -6.28394,0.91804 -20.70349,1.99696 -24.32578,1.82013 -0.91439,-0.0446 -2.83815,-0.14326 -4.27504,-0.21916 z M 67.555595,115.54472 67.705734,80.513175 68.805236,77.548998 c 1.417986,-3.82277 4.467213,-7.240694 7.770224,-8.709749 3.303097,-1.469097 10.67808,-1.614913 14.487465,-0.286446 3.201636,1.116525 6.880594,4.437535 8.407072,7.589096 2.678413,5.529849 2.778973,6.498192 3.006683,28.952731 l 0.21074,20.78143 h 12.73695 12.73696 l 0.20299,-20.78143 c 0.21945,-22.465796 0.31602,-23.395465 3.00771,-28.952731 1.52648,-3.151561 5.20544,-6.472571 8.40708,-7.589096 3.80938,-1.328467 11.18436,-1.182651 14.48746,0.286446 3.30301,1.469055 6.35224,4.886979 7.77022,8.709749 l 1.09951,2.964177 0.15014,35.031545 0.15013,35.03154 h 13.04254 13.04253 l -0.003,-35.03154 C 189.51564,76.986294 189.4029,75.069853 186.65494,66.831408 181.15622,50.34562 167.11141,40.99616 149.25495,41.9346 c -8.19706,0.430794 -14.41702,2.550923 -19.90754,6.785666 -3.73499,2.880733 -6.21417,5.947406 -10.20893,12.628156 -1.85057,3.094927 -3.52345,5.62714 -3.71746,5.62714 -0.19402,0 -1.86232,-2.524551 -3.70733,-5.610111 -1.84502,-3.085564 -4.20602,-6.640479 -5.24668,-7.89982 C 100.58156,46.343424 92.281548,42.496647 81.587032,41.9346 63.749403,40.997149 49.67996,50.363 44.186889,66.831408 41.438938,75.069853 41.326276,76.986294 41.323194,115.54472 l -0.0028,35.03154 h 13.042531 13.042536 z"
+ id="path1069"
+ transform="scale(0.93749999)" />
+</svg>