on master help sign in
small fixes in readme and url trimming
085a907DYM
README.md+1−1
@@ -17,7 +17,7 @@ Alternatively, if you your website has a dark background, use `icon.white.svg`.
17Only the `url`, `contact`, and `langs` keys are required to join the webring. Below you can find a list of all the available keys for the various areas of the webring.
17Only the `url`, `contact`, and `langs` keys are required to join the webring. Below you can find a list of all the available keys for the various areas of the webring.
18```javascript
18```javascript
19 {
19 {
20− author: <string used in the Hallway REQUIRED FOR HALLWAY>',
20+ author: <string used in the Hallway REQUIRED FOR HALLWAY>,
21 contact: <string used to contact if necessary REQUIRED FOR ALL>,
21 contact: <string used to contact if necessary REQUIRED FOR ALL>,
22 feed: <string url used Hallway REQUIRED FOR HALLWAY>,
22 feed: <string url used Hallway REQUIRED FOR HALLWAY>,
23 langs: <array of iso language codes represented languages in your site ex. ['en'] REQUIRED FOR ALL>,
23 langs: <array of iso language codes represented languages in your site ex. ['en'] REQUIRED FOR ALL>,
scripts/portal.js+1−1
@@ -30,7 +30,7 @@ function Portal (sites) {
30 }
30 }
31
31
32 function _name (site) {
32 function _name (site) {
33− return site.title || `${site.url.split('//')[1]}`
33+ return site.title || `${site.url.split('//')[1].replace(/\/+$/,'')}`
34 }
34 }
35
35
36 function _type (site) {
36 function _type (site) {
scripts/sites.js+4−4
@@ -662,7 +662,7 @@ const sites = [
662 {
662 {
663 contact: 'm@cass.si',
663 contact: 'm@cass.si',
664 langs: ['en'],
664 langs: ['en'],
665− url: 'https://cass.si/'
665+ url: 'https://cass.si'
666 },
666 },
667
667
668 {
668 {
@@ -726,14 +726,14 @@ const sites = [
726 url: 'https://dym.sh'
726 url: 'https://dym.sh'
727 },
727 },
728
728
729− {
729+ {
730 author: 'Patrick Monaghan',
730 author: 'Patrick Monaghan',
731 contact: '0x5f.manpat@gmail.com',
731 contact: '0x5f.manpat@gmail.com',
732 langs: ['en'],
732 langs: ['en'],
733 type: 'portfolio',
733 type: 'portfolio',
734− url: 'https://patrick-is.cool/'
734+ url: 'https://patrick-is.cool'
735 },
735 },
736−
736+
737 {
737 {
738 author: 'icyphox',
738 author: 'icyphox',
739 contact: 'x@icyphox.sh',
739 contact: 'x@icyphox.sh',