Skip to content

Commit

Permalink
Adjust /resources to simplify
Browse files Browse the repository at this point in the history
Resources now is a simple list of links and references to books.
  • Loading branch information
jjcarstens authored and fhunleth committed Dec 4, 2022
1 parent 0e1134d commit 4b4607a
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 60 deletions.
39 changes: 20 additions & 19 deletions content/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ type: resources
title: Resources
date: 2022-01-01
tags: []
newsletter: |
The Nerves Newsletter covers some of these in each issue:
- Project news and releases
- Featured projects
- Featured talks
- Technical notes explaining parts of Nerves, straight from the core team
- Community contribution opportunities
books:
- name: Build a Binary Clock with Elixir and Nerves
linkUrl: https://pragprog.com/titles/thnerves/build-a-binary-clock-with-elixir-and-nerves/
Expand All @@ -20,15 +12,24 @@ books:
linkUrl: https://pragprog.com/titles/passweather/build-a-weather-station-with-elixir-and-nerves/
image: https://pragprog.com/titles/passweather/build-a-weather-station-with-elixir-and-nerves/passweather-250.jpg
description: Build and deploy a production-grade weather station sensor hub using Elixir and Nerves, all while leveraging the best practices established by the Nerves community for structuring and organizing Nerves applications.
talks:
- title: Gettin' tipsy with Nerves 🍻
videoId: BtUmxoccZGE
- title: Embedded Elixir with Nerves Livebook
videoId: dZzM-rLu-zo
- title: An Ode to Firmware Design
videoId: pn5fC12RVjQ
---

Our website provides a [Getting Started guide] to learn more about Nerves' foundations.

[Getting Started guide]: https://hexdocs.pm/nerves/getting-started.html
resources:
- name: Newsletter
image: img/newsletter.svg
link: newsletter
- name: Getting Started
image: img/getting_started.svg
link: getting_started
- name: Videos
image: img/videos.svg
link: videos
- name: Example Projects
image: img/nerves_new.png
link: https://github.com/nerves-project/nerves_examples
- name: Issues Tracker
image: img/github.svg
link: "https://github.com/issues?q=is%3Aopen+is%3Aissue+org%3Anerves-project+org%3Anerves-time+org%3Anerves-networking+archived%3Afalse+"
- name: Trademarks Policy
image: img/icon.png
link: trademarks
---
19 changes: 0 additions & 19 deletions layouts/partials/book-list.html

This file was deleted.

56 changes: 34 additions & 22 deletions layouts/resources/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,41 @@
{{ partial "simple-hero" . }}

<main class="container my-6 px-4">
<div class="content mb-6">
<ol>
<li><a href="#newsletter">Newsletter</a></li>
<li><a href="#books">Books</a></li>
<li><a href="{{ relURL "videos"}}">Videos</a></li>
</ol>
{{ .Content }}
</div>

<section class="mb-6" id="newsletter">
<h3 class="title">Newsletter</h3>
<div class="content">
{{ .Params.newsletter | markdownify }}
<div class="columns">
<div class="column is-one-quarter">
<article class="panel is-primary">
<p class="panel-heading">
Links
</p>
{{ range .Params.resources }}
{{ $link := relURL .link }}
{{ if hasPrefix .link "http" }}
{{ $link := .link}}
{{ end }}
<a class="panel-block" href="{{ $link }}">
<span class="panel-icon">
<img src="{{ relURL .image }}" alt="">
</span>
{{ .name }}
</a>
{{ end }}
</article>
</div>
<a href="https://underjord.io/nerves-newsletter.html" class="button is-primary is-medium">
Subscribe
</a>
</section>

<section class="mb-6" id="books">
<h3 class="title">Books</h3>
{{ partial "book-list" .Params.books }}
</section>
<div id="books" class="column box">
<h3 class="title">Books</h3>
<div class="columns is-multiline">
{{ range .Params.books }}
<div class="column">
<a href="{{ .linkUrl }}" target="_blank">
<figure class="image">
<img style="max-width: 250px" src="{{ .image }}">
</figure>
</a>
</div>
{{ end }}
</div>
</div>
</div>
</main>

{{ end }}
4 changes: 4 additions & 0 deletions static/img/getting_started.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions static/img/newsletter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions static/img/videos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b4607a

Please sign in to comment.