on master help sign in
Merge pull request #321 from dym-sh/master

small fixes in readme and url trimming

commite8175274d1c0fde0e588c202a98fff3480b58ed0 authorЛu Лinveгa <aliceffekt@gmail.com> dateSat 21 Sep 2019, 12:45 (7 years ago) parent34c4799085a907
3 files changed+6−6
README.md+1−1 scripts/portal.js+1−1 scripts/sites.js+4−4
README.md+1−1
@@ -17,7 +17,7 @@ Alternatively, if you your website has a dark background, use `icon.white.svg`.
1717Only 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.
1818```javascript
1919 {
20− author: <string used in the Hallway REQUIRED FOR HALLWAY>',
20+ author: <string used in the Hallway REQUIRED FOR HALLWAY>,
2121 contact: <string used to contact if necessary REQUIRED FOR ALL>,
2222 feed: <string url used Hallway REQUIRED FOR HALLWAY>,
2323 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) {
3030 }
3131
3232 function _name (site) {
33− return site.title || `${site.url.split('//')[1]}`
33+ return site.title || `${site.url.split('//')[1].replace(/\/+$/,'')}`
3434 }
3535
3636 function _type (site) {
scripts/sites.js+4−4
@@ -664,7 +664,7 @@ const sites = [
664664 {
665665 contact: 'm@cass.si',
666666 langs: ['en'],
667− url: 'https://cass.si/'
667+ url: 'https://cass.si'
668668 },
669669
670670 {
@@ -728,14 +728,14 @@ const sites = [
728728 url: 'https://dym.sh'
729729 },
730730
731− {
731+ {
732732 author: 'Patrick Monaghan',
733733 contact: '0x5f.manpat@gmail.com',
734734 langs: ['en'],
735735 type: 'portfolio',
736− url: 'https://patrick-is.cool/'
736+ url: 'https://patrick-is.cool'
737737 },
738−
738+
739739 {
740740 author: 'icyphox',
741741 contact: 'x@icyphox.sh',