Skip to content

Commit

Permalink
v3.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Nov 2, 2021
1 parent 6baedc4 commit b59a94e
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 36 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Expand Up @@ -15,10 +15,7 @@ Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
# Uncomment the following lines if you build assets on your server (recommended):
# Comment the following lines if you don't compile your assets on your server:
/public/js/
/public/css/
/public/mix-manifest.json

# Ignore the exported kit.
/statamic-peak/
8 changes: 8 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,13 @@
# Release Notes

## 3.25.0 (2021-11-02)

### What's improved
- Update social media globals. Rename fields and add email. #169 by @robdekort

### What's fixed
- Change incorrect comment in `.gitignore`.

## 3.24.0 (2021-10-30)

### What's improved
Expand Down
6 changes: 3 additions & 3 deletions content/globals/social_media.yaml
Expand Up @@ -2,17 +2,17 @@ title: 'Social media'
data:
social_media:
-
url: studio1902
handle: studio1902
prefix: 'https://www.twitter.com/'
type: twitter
enabled: true
-
url: studio1902/statamic-peak
handle: studio1902/statamic-peak
prefix: 'https://www.github.com/'
type: github
enabled: true
-
url: in/robdekort/
handle: in/robdekort/
prefix: 'https://www.linkedin.com/'
type: linkedin
enabled: true
8 changes: 8 additions & 0 deletions dev/CHANGELOG.md
@@ -1,5 +1,13 @@
# Release Notes

## 3.25.0 (2021-11-02)

### What's improved
- Update social media globals. Rename fields and add email. #169 by @robdekort

### What's fixed
- Change incorrect comment in `.gitignore`.

## 3.24.0 (2021-10-30)

### What's improved
Expand Down
73 changes: 45 additions & 28 deletions resources/blueprints/globals/social_media.yaml
Expand Up @@ -16,126 +16,143 @@ sections:
display: Facebook
fields:
-
handle: url
handle: handle
field:
input_type: text
type: text
localizable: true
listable: hidden
prepend: 'https://www.facebook.com/'
display: URL
display: Handle
validate: required
-
-
handle: prefix
field:
field:
type: hidden
default: 'https://www.facebook.com/'
email:
display: Email
fields:
-
handle: handle
field:
input_type: text
type: text
localizable: true
listable: hidden
display: Email
validate: required
-
handle: prefix
field:
type: hidden
default: 'mailto:'
instagram:
display: Instagram
fields:
-
handle: url
handle: handle
field:
input_type: text
type: text
localizable: true
listable: hidden
prepend: 'https://www.instagram.com/'
display: URL
display: Handle
validate: required
-
-
handle: prefix
field:
field:
type: hidden
default: 'https://www.instagram.com/'
linkedin:
display: LinkedIn
fields:
-
handle: url
handle: handle
field:
input_type: text
type: text
localizable: true
listable: hidden
prepend: 'https://www.linkedin.com/'
display: URL
display: Handle
validate: required
-
-
handle: prefix
field:
field:
type: hidden
default: 'https://www.linkedin.com/'
twitter:
display: Twitter
fields:
-
handle: url
handle: handle
field:
input_type: text
type: text
localizable: true
listable: hidden
prepend: 'https://www.twitter.com/'
display: URL
display: Handle
validate: required
-
-
handle: prefix
field:
field:
type: hidden
default: 'https://www.twitter.com/'
vimeo:
display: Vimeo
fields:
-
handle: url
handle: handle
field:
input_type: text
type: text
localizable: true
listable: hidden
prepend: 'https://www.vimeo.com/'
display: URL
display: Handle
validate: required
-
-
handle: prefix
field:
field:
type: hidden
default: 'https://www.vimeo.com/'
youtube:
display: YouTube
fields:
-
handle: url
handle: handle
field:
input_type: text
type: text
localizable: true
listable: hidden
prepend: 'https://www.youtube.com/'
display: URL
display: Handle
validate: required
-
-
handle: prefix
field:
field:
type: hidden
default: 'https://www.youtube.com/'
github:
display: GitHub
fields:
-
handle: url
handle: handle
field:
input_type: text
type: text
localizable: true
listable: hidden
prepend: 'https://www.github.com/'
display: URL
display: Handle
validate: required
-
-
handle: prefix
field:
field:
type: hidden
default: 'https://www.github.com/'
type: replicator
Expand Down
1 change: 1 addition & 0 deletions resources/svg/email.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/views/layout/_footer.antlers.html
Expand Up @@ -20,7 +20,7 @@
{{ if social_media:social_media }}
<div class="flex space-x-2">
{{ social_media:social_media }}
<a href="{{ prefix }}{{ url }}" rel="noopener" aria-label="{{ config:app:name }} {{ trans:strings.on }} {{ type | title }}" target="_blank">{{ svg :src="type" class="w-3 h-3 overflow-visible text-neutral hover:text-primary fill-current" alt="" aria-hidden="true" }}</a>
<a href="{{ prefix }}{{ handle }}" rel="noopener" aria-label="{{ config:app:name }} {{ trans:strings.on }} {{ type | title }}" target="_blank">{{ svg :src="type" class="w-3 h-3 overflow-visible text-neutral hover:text-primary fill-current" alt="" aria-hidden="true" }}</a>
{{ /social_media:social_media }}
</div>
{{ /if }}
Expand Down

0 comments on commit b59a94e

Please sign in to comment.