Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

fix admins to use Yaml #50

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ baseURL = "https://devrelcollective.fun/"
languageCode = "en-us"
title = "The DevRel Collective"
theme = "avocado"
googleAnalytics = "UA-113313834-3"
googleAnalytics = "UA-113313834-3"
meta = "DevRel Collective 🥑- and So Can You! exists to facilitate sharing information, resources, and encouragement among the Developer Relations community."
3 changes: 3 additions & 0 deletions data/admins/dan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Dan
twitter: phrawzty
airport: Paris, France
3 changes: 3 additions & 0 deletions data/admins/davidgs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: David
twitter: davidgsIoT
airport: Raleigh, NC
3 changes: 3 additions & 0 deletions data/admins/jocelyn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Jocelyn
twitter: bffjossy
airport: San Francisco, CA
3 changes: 3 additions & 0 deletions data/admins/quintessence.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Quintessence
twitter: QuintessenceAnx
airport: Buffalo, NY
2 changes: 2 additions & 0 deletions themes/avocado/layouts/partials/admins.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

{{ .airport }} (<a href="https://twitter.com/{{ .twitter }}">{{ .name }}</a>) <br>
20 changes: 12 additions & 8 deletions themes/avocado/layouts/partials/design.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@

<div class="row">
<div class="col-md-4">
<h3>Location</h3>
<p>The closest airport to</p>
<p>San Francisco, CA (<a href="https://twitter.com/bffjossy">Jocelyn</a>) <br>
Buffalo, NY (<a href="https://twitter.com/QuintessenceAnx">Quintessence</a>) <br>
Raleigh, NC (<a href="https://twitter.com/davidgsIoT">David</a>) <br>
Paris, France (<a href="https://twitter.com/phrawzty">Dan</a>) <br>
</p>
{{ if $.Site.Data }}
<h3>Location</h3>
<p>The closest airport to</p>
<p>
{{ range $.Site.Data.admins }}
{{ partial "admins.html" . }}
{{ end }}
</p>
{{ else }}
<p>No Admins!</p>
{{ end }}
</div>
<div class="col-md-4">
<h3>Around the Web</h3>
Expand All @@ -25,7 +29,7 @@ <h3>Around the Web</h3>
<i class="fab fa-github"></i></a>
</li>
<li>
<a href="https://twitter.com/pinkyswearing/lists/developer-evangelists" class="btn-circle">
<a href="https://twitter.com/devrelians" class="btn-circle">
<i class="fab fa-twitter"></i></a>
</li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions themes/avocado/static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
Expand Down
6 changes: 3 additions & 3 deletions themes/avocado/theme.toml
Original file line number Diff line number Diff line change
@@ -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."
Expand All @@ -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"
Expand Down