Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mastodon social #174

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/config/default/widgets.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mirror = ""

[social_menu]
title = ""
platforms = ["github","facebook","twitter","instagram","email","codepen","gitlab","linkedin","telegram","google_scholar","youtube"]
platforms = ["github","facebook","twitter","instagram","email","codepen","gitlab","linkedin","telegram","google_scholar","youtube","mastodon"]

[taxonomy_cloud]
title = ""
Expand Down
1 change: 1 addition & 0 deletions data/theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ twitter = "https://twitter.com/"
telegram = "https://t.me/"
google_scholar = "https://scholar.google.com/citations?user="
youtube = "https://www.youtube.com/channel/"
mastodon = "https://"
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ twitter = "MunifTanjim"
telegram = "MunifTanjim"
google_scholar = "qc6CJjYAAAAJ"
youtube = "UCT-U0rNerYxItGcuoPX-WYA"
mastodon = ""

[params.comments]
enable = false
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/svg/icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
<line x1="17.5" y1="6.5" x2="17.5" y2="6.5"/>
{{ else if eq "twitter" . }}
<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"/>
{{ else if eq "mastodon" . }}
<path d="M13.0434783,0 C12.3342391,0 11.7105981,0.285326087 11.1358696,0.668478261 C11.1093751,0.664402435 8.5047553,0.262907478 6.70108696,0.52173913 C5.10733722,0.75 3.42595096,1.34307078 2.13586957,2.70652174 C0.845788174,4.0699727 0,6.17934783 0,9.27717391 C0,12.1813857 1.05163043,15.701087 1.07608696,15.7826087 C1.07608696,15.7826087 1.0923913,15.8315217 1.0923913,15.8315217 L1.56521739,21.9619565 C1.58967391,22.2309783 1.81589687,22.4368205 2.08695652,22.4347826 L5.73913043,22.4347826 C6.01019009,22.4368205 6.23641304,22.2309783 6.26086957,21.9619565 L6.73369565,16.5326087 C7.13519009,16.5957882 7.66711983,16.6956522 8.34782609,16.6956522 C9.0326087,16.6956522 9.55638574,16.5733696 9.96195652,16.5 L10.4347826,21.9619565 C10.4592391,22.2309783 10.6854621,22.4368205 10.9565217,22.4347826 L14.6086957,22.4347826 C14.8960597,22.4347826 15.1304348,22.2004075 15.1304348,21.9130435 C15.1304348,21.8192937 15.1304348,21.7418478 15.1304348,21.6521739 C15.148777,18.1202447 15.5074727,16.3023099 15.9293478,15 C16.2961957,13.8668478 16.7099186,12.9823372 17.0217391,11.7717391 C17.8451087,12.1161683 18.701087,12.3648099 19.2554348,12.701087 C19.9524459,13.1229621 20.3906249,13.648777 20.3478261,15.2119565 C20.3335597,15.7296198 20.2275814,16.1514944 20.0869565,16.3858696 C19.9463317,16.6202447 19.8485056,16.6956522 19.548913,16.6956522 C19.2880435,16.6956522 18.9986416,16.4796198 18.7663043,16.1902174 C18.5339677,15.9008155 18.4076087,15.6195652 18.4076087,15.6195652 C18.3464677,15.4728261 18.224185,15.3607336 18.0713317,15.3179348 C17.9184783,15.2730981 17.7554348,15.2995925 17.625,15.3913043 L16.4021739,16.2717391 C16.2146739,16.4103261 16.1413043,16.6569292 16.2228261,16.875 C16.2228261,16.875 17.1949727,19.3043478 19.826087,19.3043478 C20.6535329,19.3043478 21.3831522,18.9211957 21.9293478,18.3097826 C22.4755435,17.6983696 22.8688857,16.8790763 23.1684783,15.8804348 C23.7697012,13.8851901 24,11.1847826 24,8.13586957 C24,5.01154904 23.0604621,2.95312487 21.75,1.69565217 C20.4395379,0.438179478 18.800951,0 17.4945652,0 C16.2289403,0 15.511549,0.409646609 15.1467391,0.652173913 C14.8023099,0.397418609 14.162364,0 13.0434783,0 Z M13.0434783,1.04347826 C14.1766304,1.04347826 14.7717391,1.63043478 14.7717391,1.63043478 C14.961277,1.8199727 15.2649459,1.83423913 15.4728261,1.66304348 C15.4728261,1.66304348 16.1596466,1.04347826 17.4945652,1.04347826 C18.5706522,1.04347826 19.9341031,1.40625026 21.0163043,2.44565217 C22.0985056,3.48505461 22.9565217,5.2173913 22.9565217,8.13586957 C22.9565217,11.1297553 22.7201087,13.7567937 22.173913,15.5706522 C21.9008155,16.4775814 21.5563857,17.1847826 21.1630435,17.625 C20.7697012,18.0652174 20.3600546,18.2608696 19.826087,18.2608696 C18.1956522,18.2608696 17.625,17.2601901 17.4130435,16.826087 L17.7717391,16.5652174 C17.8471466,16.6895379 17.8389944,16.7017664 17.951087,16.8423913 C18.2771739,17.25 18.8050273,17.7391304 19.548913,17.7391304 C20.1705162,17.7391304 20.6983696,17.4008155 20.9836957,16.923913 C21.2690217,16.4470111 21.375,15.8539403 21.3913043,15.2282609 C21.4402174,13.4205162 20.7289403,12.3709242 19.7934783,11.8043478 C18.8580162,11.237772 17.7982336,11.0482336 16.9402174,10.5978261 C16.7955162,10.5224186 16.6243205,10.5203807 16.4755435,10.5917118 C16.3288043,10.6610056 16.2228261,10.7975546 16.1902174,10.9565217 C15.9150814,12.425951 15.4014944,13.2309783 14.9347826,14.673913 C14.5169838,15.9639944 14.2031249,17.8308423 14.1358696,20.9021739 C13.8872285,20.9714677 13.6976901,21.148777 13.6141304,21.3913043 L13.5163043,21.3913043 C13.4103261,21.0855981 13.125,20.8695652 12.7826087,20.8695652 C12.4402174,20.8695652 12.1548913,21.0855981 12.048913,21.3913043 L11.4293478,21.3913043 L10.9565217,15.8804348 C10.9442937,15.7316577 10.8709242,15.5951087 10.7527174,15.5054348 C10.6345111,15.4157609 10.4836957,15.3790763 10.3369565,15.4076087 C10.3369565,15.4076087 9.0672553,15.6521739 8.34782609,15.6521739 C7.61413043,15.6521739 6.3423913,15.4402174 6.3423913,15.4402174 C6.19972852,15.4177988 6.05095096,15.4544838 5.93682052,15.5441577 C5.82269009,15.6338317 5.75135896,15.7683423 5.73913043,15.9130435 L5.31521739,20.8858696 C5.04415774,20.9408969 4.83423913,21.1345111 4.74456522,21.3913043 L4.64673913,21.3913043 C4.54076087,21.0855981 4.25543478,20.8695652 3.91304348,20.8695652 C3.57065217,20.8695652 3.28532609,21.0855981 3.17934783,21.3913043 L2.57608696,21.3913043 L2.11956522,15.6358696 C2.1175273,15.6032609 2.11141304,15.5706522 2.10326087,15.5380435 C2.10326087,15.5380435 1.04347826,11.949049 1.04347826,9.27717391 C1.04347826,6.36684783 1.80570678,4.56521739 2.88586957,3.42391304 C3.96603287,2.2826087 5.41711983,1.77309809 6.86413043,1.56521739 C7.88722852,1.41847826 9.1548913,1.50611426 10.0434783,1.59782609 C9.32404904,2.48437513 8.86956522,3.61345096 8.86956522,4.72826087 C8.86956522,8.78192922 10.7629075,12.4422553 13.3695652,13.5326087 C13.5957882,13.6202447 13.8525814,13.538723 13.9891304,13.3369565 C14.111413,13.1555708 14.2357336,12.9130435 14.3967391,12.5706522 C14.5577447,12.2282609 14.7493205,11.8104621 14.951087,11.3315217 C15.3546198,10.3716031 15.8050273,9.21399443 16.1576087,8.18478261 C16.251359,7.90964661 16.1066577,7.61005461 15.8315217,7.51630435 C15.5563857,7.42255461 15.2567937,7.5672553 15.1630435,7.8423913 C14.8226901,8.83899443 14.3845111,9.98437513 13.9891304,10.923913 C13.7914403,11.3947012 13.6039403,11.8043478 13.451087,12.1304348 C13.4164403,12.2058423 13.4184783,12.2119565 13.3858696,12.2771739 C11.5679348,11.211277 9.91304348,8.19701113 9.91304348,4.72826087 C9.91304348,3.8926633 10.2819292,2.9327447 10.875,2.2173913 C11.4680708,1.50203791 12.2547553,1.04347826 13.0434783,1.04347826 Z M20.3478261,6.26086957 C20.0584242,6.26086957 19.826087,6.4952447 19.826087,6.7826087 C19.826087,7.0699727 20.0584242,7.30434783 20.3478261,7.30434783 C20.6372285,7.30434783 20.8695652,7.0699727 20.8695652,6.7826087 C20.8695652,6.4952447 20.6372285,6.26086957 20.3478261,6.26086957 Z" />
{{ else if eq "clock" . }}
<circle cx="12" cy="12" r="10"/>
<polyline points="12 6 12 12 15 15"/>
Expand Down