From 606933c20e0c12a18fd55610550c5991e2a701ed Mon Sep 17 00:00:00 2001 From: "David G. Simmons" Date: Wed, 14 Apr 2021 11:05:52 -0400 Subject: [PATCH 1/2] Fixed admins to use yaml --- config.toml | 3 ++- data/admins/dan.yaml | 3 +++ data/admins/davidgs.yaml | 3 +++ data/admins/jocelyn.yaml | 3 +++ data/admins/quintessence.yaml | 3 +++ themes/avocado/layouts/partials/admins.html | 2 ++ themes/avocado/layouts/partials/design.html | 18 +++++++++++------- themes/avocado/static/admin/config.yml | 1 + themes/avocado/theme.toml | 6 +++--- 9 files changed, 31 insertions(+), 11 deletions(-) create mode 100644 data/admins/dan.yaml create mode 100644 data/admins/davidgs.yaml create mode 100644 data/admins/jocelyn.yaml create mode 100644 data/admins/quintessence.yaml create mode 100644 themes/avocado/layouts/partials/admins.html diff --git a/config.toml b/config.toml index a249b81..4791b17 100644 --- a/config.toml +++ b/config.toml @@ -3,4 +3,5 @@ baseURL = "https://devrelcollective.fun/" languageCode = "en-us" title = "The DevRel Collective" theme = "avocado" -googleAnalytics = "UA-113313834-3" \ No newline at end of file +googleAnalytics = "UA-113313834-3" +meta = "DevRel Collective 🥑- and So Can You! exists to facilitate sharing information, resources, and encouragement among the Developer Relations community." \ No newline at end of file diff --git a/data/admins/dan.yaml b/data/admins/dan.yaml new file mode 100644 index 0000000..a136ca3 --- /dev/null +++ b/data/admins/dan.yaml @@ -0,0 +1,3 @@ +name: Dan +twitter: phrawzty +airport: Paris, France \ No newline at end of file diff --git a/data/admins/davidgs.yaml b/data/admins/davidgs.yaml new file mode 100644 index 0000000..0087217 --- /dev/null +++ b/data/admins/davidgs.yaml @@ -0,0 +1,3 @@ +name: David +twitter: davidgsIoT +airport: Raleigh, NC \ No newline at end of file diff --git a/data/admins/jocelyn.yaml b/data/admins/jocelyn.yaml new file mode 100644 index 0000000..bbb492c --- /dev/null +++ b/data/admins/jocelyn.yaml @@ -0,0 +1,3 @@ +name: Jocelyn +twitter: bffjossy +airport: San Francisco, CA \ No newline at end of file diff --git a/data/admins/quintessence.yaml b/data/admins/quintessence.yaml new file mode 100644 index 0000000..3b28dc5 --- /dev/null +++ b/data/admins/quintessence.yaml @@ -0,0 +1,3 @@ +name: Quintessence +twitter: QuintessenceAnx +airport: Buffalo, NY \ No newline at end of file diff --git a/themes/avocado/layouts/partials/admins.html b/themes/avocado/layouts/partials/admins.html new file mode 100644 index 0000000..95c6ee8 --- /dev/null +++ b/themes/avocado/layouts/partials/admins.html @@ -0,0 +1,2 @@ + + {{ .airport }} ({{ .name }})
diff --git a/themes/avocado/layouts/partials/design.html b/themes/avocado/layouts/partials/design.html index adf2489..bc43978 100644 --- a/themes/avocado/layouts/partials/design.html +++ b/themes/avocado/layouts/partials/design.html @@ -4,13 +4,17 @@
-

Location

-

The closest airport to

-

San Francisco, CA (Jocelyn)
- Buffalo, NY (Quintessence)
- Raleigh, NC (David)
- Paris, France (Dan)
-

+ {{ if $.Site.Data }} +

Location

+

The closest airport to

+

+ {{ range $.Site.Data.admins }} + {{ partial "admins.html" . }} + {{ end }} +

+ {{ else }} +

No Admins!

+ {{ end }}

Around the Web

diff --git a/themes/avocado/static/admin/config.yml b/themes/avocado/static/admin/config.yml index 82fbc98..3743f81 100644 --- a/themes/avocado/static/admin/config.yml +++ b/themes/avocado/static/admin/config.yml @@ -17,6 +17,7 @@ collections: - { label: 'Description', name: 'description', widget: 'string' } - { label: 'Logo', name: 'icon', widget: 'string' } - { label: 'Background', name: 'background', widget: 'image' } + - { label: 'Meta', name: 'meta', widget: 'string' } - name: 'pages' label: 'Pages' folder: 'content/' diff --git a/themes/avocado/theme.toml b/themes/avocado/theme.toml index 47850d3..4333da6 100644 --- a/themes/avocado/theme.toml +++ b/themes/avocado/theme.toml @@ -1,4 +1,4 @@ -name = "Dimension" +name = "Avocado" license = "CC 3.0" licenselink = "https://creativecommons.org/licenses/by/3.0/" description = "A port of HTML5UP's dimension theme, optimized for markdown based CMS." @@ -8,8 +8,8 @@ features = ["blog", "syntax highlighting"] min_version = 0.54 [author] - name = "d-asnaghi" - homepage = "https://d-asnaghi.github.io" + name = "davidgs" + homepage = "https://davidgs.com" [original] author = "HTML5UP" From 817906e1b7896193db8b0e53d9649273ce66ab34 Mon Sep 17 00:00:00 2001 From: "David G. Simmons" Date: Wed, 14 Apr 2021 11:10:56 -0400 Subject: [PATCH 2/2] Fix twitter --- themes/avocado/layouts/partials/design.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/avocado/layouts/partials/design.html b/themes/avocado/layouts/partials/design.html index bc43978..3aa95b9 100644 --- a/themes/avocado/layouts/partials/design.html +++ b/themes/avocado/layouts/partials/design.html @@ -29,7 +29,7 @@

Around the Web

  • - +