blog.trnck.dev
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #72 from github/add-support-stackoverflow-behance

Add `social_media` support for Behance and Stack Overflow

authored by

Brandon Rosage and committed by
GitHub
b609e9bf 73231a93

+25 -4
+4 -2
README.md
··· 94 94 95 95 #### Social media 96 96 97 - Your website supports linking and sharing to social media services you're using, including Facebook, Dribbble, LinkedIn, Twitter, and YouTube. To identify the services you use: 97 + Your website supports linking and sharing to social media services you're using, including Behance, Facebook, Dribbble, LinkedIn, Stack Overflow, Twitter, and YouTube. To identify the services you use: 98 98 99 99 1. Edit your repository's `_config.yml` file. 100 - 2. Add a `social_media` dictionary line, and represent the services you like in a simple `key: value` form: 100 + 2. Edit the `social_media` dictionary line, and represent the services you like in a simple `key: value` form: 101 101 102 102 ``` 103 103 social_media: 104 + behance: your_username 104 105 facebook: your_username 105 106 dribbble: your_username 106 107 linkedin: your_username 108 + stackoverflow: your_user_id 107 109 twitter: your_username 108 110 youtube: your_username 109 111 ```
+9
_config.yml
··· 27 27 projects: 28 28 # - repo-name 29 29 30 + social_media: 31 + # behance: your_username 32 + # facebook: your_username 33 + # dribbble: your_username 34 + # linkedin: your_username 35 + # stackoverflow: your_user_id 36 + # twitter: your_username 37 + # youtube: your_username 38 + 30 39 topics: 31 40 - name: CSS 32 41 web_url: https://github.com/topics/css
+11 -1
_data/social_media.yml
··· 1 + behance: 2 + name: Behance 3 + profile_url_prefix: https://www.behance.net/ 4 + icon_svg: '<svg height="20" fill="#959da5" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 455 455" style="enable-background:new 0 0 455 455;" xml:space="preserve"> <g> <path style="fill-rule:evenodd;clip-rule:evenodd;" d="M181.289,242.565c-5.597-4.246-13.062-6.358-22.245-6.358h-46.379v53.356 h45.524c4.211,0,8.205-0.373,11.963-1.214c3.815-0.834,7.199-2.156,10.052-4.11c2.853-1.879,5.216-4.455,6.934-7.731 c1.724-3.247,2.55-7.465,2.55-12.559C189.688,253.961,186.879,246.873,181.289,242.565z"/> <path style="fill-rule:evenodd;clip-rule:evenodd;" d="M174.606,201.654c4.907-3.582,7.286-9.502,7.286-17.621 c0-4.509-0.79-8.235-2.379-11.126c-1.645-2.892-3.822-5.155-6.574-6.739c-2.73-1.649-5.813-2.788-9.391-3.402 c-3.513-0.687-7.199-0.956-10.972-0.956h-39.913v45.276h43.168C163.391,207.086,169.649,205.293,174.606,201.654z"/> <path style="fill-rule:evenodd;clip-rule:evenodd;" d="M0,0v455h455V0H0z M275.636,141.802h78.54v19.12h-78.54V141.802z M226.605,291.707c-3.793,7.204-8.959,13.041-15.326,17.546c-6.416,4.545-13.788,7.878-22.044,10.048 c-8.162,2.17-16.64,3.262-25.32,3.262H70V128.804h91.351c9.269,0,17.632,0.801,25.277,2.458c7.602,1.613,14.09,4.304,19.572,7.993 c5.396,3.69,9.621,8.597,12.645,14.78c2.953,6.09,4.434,13.717,4.434,22.734c0,9.754-2.213,17.901-6.639,24.414 c-4.462,6.502-11.014,11.838-19.773,15.98c11.927,3.427,20.758,9.463,26.613,18.045c5.885,8.641,8.766,18.979,8.766,31.101 C232.245,276.134,230.363,284.595,226.605,291.707z M384.755,261.692H283.518c0,11.09,3.75,21.591,9.542,27.227 c5.769,5.637,14.111,8.471,24.917,8.471c7.774,0,14.492-1.965,20.125-5.881c5.583-3.912,8.981-8.094,10.296-12.437h33.935 c-5.453,16.888-13.73,28.944-25.018,36.202c-11.158,7.289-24.768,10.921-40.624,10.921c-11.051,0-20.995-1.789-29.926-5.313 c-8.924-3.568-16.382-8.568-22.654-15.085c-6.115-6.549-10.864-14.287-14.248-23.38c-3.348-9.043-5.037-19.055-5.037-29.905 c0-10.49,1.753-20.291,5.18-29.348c3.499-9.089,8.335-16.931,14.694-23.509c6.373-6.614,13.931-11.834,22.733-15.645 c8.802-3.798,18.508-5.709,29.258-5.709c11.869,0,22.266,2.284,31.176,6.937c8.88,4.588,16.159,10.807,21.878,18.592 c5.719,7.771,9.786,16.659,12.33,26.628C384.597,240.41,385.481,250.807,384.755,261.692z"/> <path style="fill-rule:evenodd;clip-rule:evenodd;" d="M315.534,207.398c-6.157,0-11.252,1.035-15.332,3.147 c-3.988,2.084-7.257,4.677-9.757,7.731c-2.486,3.104-4.182,6.38-5.166,9.883c-0.991,3.413-1.58,6.51-1.76,9.248h62.697 c-0.92-9.826-4.283-17.09-8.881-22.198C332.757,210.139,324.997,207.398,315.534,207.398z"/> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> <g> </g> </svg>' 5 + 1 6 facebook: 2 7 name: Facebook 3 8 profile_url_prefix: https://www.facebook.com/ 4 - icon_svg: '<svg height="20" class="d-block v-align-top" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.3 15.4"><path d="M14.5 0H.8a.88.88 0 0 0-.8.9v13.6a.88.88 0 0 0 .8.9h7.3v-6h-2V7.1h2V5.4a2.87 2.87 0 0 1 2.5-3.1h.5a10.87 10.87 0 0 1 1.8.1v2.1h-1.3c-1 0-1.1.5-1.1 1.1v1.5h2.3l-.3 2.3h-2v5.9h3.9a.88.88 0 0 0 .9-.8V.8a.86.86 0 0 0-.8-.8z" fill="#959da5"/></svg>' 9 + icon_svg: '<svg height="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.3 15.4"><path d="M14.5 0H.8a.88.88 0 0 0-.8.9v13.6a.88.88 0 0 0 .8.9h7.3v-6h-2V7.1h2V5.4a2.87 2.87 0 0 1 2.5-3.1h.5a10.87 10.87 0 0 1 1.8.1v2.1h-1.3c-1 0-1.1.5-1.1 1.1v1.5h2.3l-.3 2.3h-2v5.9h3.9a.88.88 0 0 0 .9-.8V.8a.86.86 0 0 0-.8-.8z" fill="#959da5"/></svg>' 5 10 6 11 linkedin: 7 12 name: LinkedIn 8 13 profile_url_prefix: https://www.linkedin.com/in/ 9 14 icon_svg: '<svg height="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19 18"><path d="M3.94 2A2 2 0 1 1 2 0a2 2 0 0 1 1.94 2zM4 5.48H0V18h4zm6.32 0H6.34V18h3.94v-6.57c0-3.66 4.77-4 4.77 0V18H19v-7.93c0-6.17-7.06-5.94-8.72-2.91z" fill="#959da5"/></svg>' 15 + 16 + stackoverflow: 17 + name: Stack Overflow 18 + profile_url_prefix: http://stackoverflow.com/u/ 19 + icon_svg: '<svg height="20" fill="#959da5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><path class="st0" d="M84.4 93.8V70.6h7.7v30.9H22.6V70.6h7.7v23.2z"/><path class="st1" d="M38.8 68.4l37.8 7.9 1.6-7.6-37.8-7.9-1.6 7.6zm5-18l35 16.3 3.2-7-35-16.4-3.2 7.1zm9.7-17.2l29.7 24.7 4.9-5.9-29.7-24.7-4.9 5.9zm19.2-18.3l-6.2 4.6 23 31 6.2-4.6-23-31zM38 86h38.6v-7.7H38V86z"/></svg>' 10 20 11 21 twitter: 12 22 name: Twitter
+1 -1
_includes/masthead.html
··· 40 40 <div class="mr-3 mb-3"> 41 41 {% assign service_shortname = account[0] %} 42 42 {% assign service = site.data.social_media[service_shortname] %} 43 - <a href="{{ service.profile_url_prefix }}{{ account[1] }}" title="{{ service.name }}: {{ account[1] }}"> 43 + <a href="{{ service.profile_url_prefix }}{{ account[1] }}" title="{{ service.name }}: {{ account[1] }}" class="tooltipped tooltipped-s" aria-label="{{ service.name }}: {{ account[1] }}"> 44 44 {{ service.icon_svg }}<span class="d-none">{{ service.name }}</span> 45 45 </a> 46 46 </div>