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

Mastodon verification #210

Merged
merged 6 commits into from
Nov 21, 2022
Merged
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: 2 additions & 0 deletions src/content/_data/site.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"header": "",
"faviconcolor": "#000000",
"authoremail": "Ragnar@valhalla",
"mastodon_verification": "",
"rss": true,
"splashscreen": false,
"authorname": "Ragnar",
"country": "denmark",
"errorpage": "404 Ush It haz broken",
Expand Down
3 changes: 2 additions & 1 deletion src/content/_data/some.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"pinterest_verification": "",
"mastodonme": true,
"youtube": "saga11dev",
"github": "",
"soundcloud": "",
"facebook": "",
"mastodon": "fosstodon.org/@saga11",
"mastodon": "htts://fosstodon.org/@saga11",
"discord": "",
"rss": true,
"instagram": "saga11dev",
Expand Down
38 changes: 30 additions & 8 deletions src/system/netlifycms/settings/site.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,38 @@
file: "src/content/_data/site.json"
fields:
- { label: Title, name: title, widget: string }
- { label: (fave)icon, name: icon, widget: image, choose_url: false, required: false, hint: "The icon is used to create favions Only takes square images - preferable an sbvg"}

- {label: 🐘 ✅ mastodon Verification (rel="me"),
name: mastodon_verification,
widget: string,
required: false,
hint: "The complete url (ex: https://fosstodon.org/@saga11) Used for mastodon verification ",
}
- {label: 👋 Github Verification (rel="me"),
name: github_verification,
widget: string,
required: false,
hint: "The complete url (ex: https://github.com/[name]) used for indieauth.com",
}
- {
label: 📍pinterest_verification,
name: pinterest_verification,
widget: string,
required: false,
hint: "can be found on https://www.pinterest.dk/settings/claim",
}
- { label: 👾 Header, name: header, widget: text, required: false, hint: "Data block placed inside the header tag ex for tracking scripts" }

- { label: 🌇 (fave)icon, name: icon, widget: image, choose_url: false, required: false, hint: "The icon is used to create favions Only takes square images - preferable an sbvg"}
- { label: Icon color, name: faviconcolor, widget: color, required: true, enableAlpha : true }
- { label: Browesercolor, name: color, widget: color, required: false }
- { label: Seo default Description, name: description, widget: text, required: false }
- { label: Seo default Keywords, name: keywords, widget: text, required: false }
- { label: Header, name: header, widget: text, required: false, hint: "Data block placed inside the header tag ex for tracking scripts" }
- { label: "404 Errorpage", name: errorpage, widget: text, required: false }
- { label: 🔎 Seo default Description, name: description, widget: text, required: false }
- { label: 🔎 Seo default Keywords, name: keywords, widget: text, required: false }
- { label: "😩 404 Errorpage", name: errorpage, widget: text, required: false }
- { label: "Humans.txt", name: humantxt, widget: text, required: false }
- { label: "RSS Feed", name: rss, widget: boolean, default: true, hint: "/feed.xml",}
- { label: "RSS Author", name: authorname, widget: string, required: false, hint: "Feed Author name"}
- { label: "RSS Author Email" , name: Authoremail,widget: string, required: false,hint: "Feed Author name"}
- { label: "🧡 RSS Feed", name: rss, widget: boolean, default: true, hint: "/feed.xml",}
- { label: "🧡 RSS Author", name: authorname, widget: string, required: false, hint: "Feed Author name"}
- { label: "🧡 RSS Author Email" , name: Authoremail,widget: string, required: false,hint: "Feed Author name"}
- { label: "📱 IOS Splashscreen", name: splashscreen, widget: boolean, default: true, hint: "Add the mobile Splashscreens for ios (npm run splash-screens:build)",}

{% endraw %}
34 changes: 13 additions & 21 deletions src/system/netlifycms/settings/some.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,67 +9,59 @@
name: mastodon,
widget: string,
required: false,
hint: "https://...",
hint: "Add the complete url with https",
}

- {
label: facebook,
label: facebook (username),
name: facebook,
widget: string,
required: false,
hint: "https://www.facebook.com/...",
}
- {
label: youtube,
label: youtube (username),
name: youtube,
widget: string,
required: false,
hint: "https://www.youtube.com/...",
}
- {
label: twitter,
label: twitter (username),
name: twitter,
widget: string,
required: false,
hint: "https://www.twitter.com/...",
hint: "https://www.twitter.com/[name]",
}
- {
label: pinterest,
label: pinterest (username),
name: pinterest,
widget: string,
required: false,
hint: "https://www.pinterest.com/...",
}
- {
label: pinterest_verification,
name: pinterest_verification,
widget: string,
required: false,
hint: "can be found on https://www.pinterest.dk/settings/claim",
hint: "https://www.pinterest.com/[name]",
}
- {
label: linkedin,
label: linkedin (username),
name: linkedin,
widget: string,
required: false,
hint: "https://www.linkedin.com/in/...",
hint: "https://www.linkedin.com/in/[name]",
}
- {
label: instagram,
label: instagram (username),
name: instagram,
widget: string,
required: false,
hint: "https://www.instagram.com/...",
hint: "https://www.instagram.com/[name]",
}
- {
label: github,
label: github (username),
name: github,
widget: string,
required: false,
hint: "https://github.com/...",
}
- {
label: dribble,
label: dribble (username),
name: dribble,
widget: string,
required: false,
Expand Down
Loading