templates

This commit is contained in:
Garry Ing 2021-03-07 17:59:37 -05:00
parent 3baaf81b64
commit b80c890671
No known key found for this signature in database
GPG Key ID: 3B379B1F2193CC3E
16 changed files with 134 additions and 12 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ _site
.jekyll-cache .jekyll-cache
.jekyll-metadata .jekyll-metadata
vendor vendor
.DS_Store

View File

@ -1,3 +1,5 @@
# digitalgarden # digitalgarden
[![HTMLProofer](https://github.com/hyphacoop/digitalgarden/actions/workflows/main.yml/badge.svg)](https://github.com/hyphacoop/digitalgarden/actions/workflows/main.yml)
A public notebook / digital garden for The Bentways Digital and/as Public Space Micro-Residency. A public notebook / digital garden for The Bentways Digital and/as Public Space Micro-Residency.

View File

@ -18,9 +18,10 @@
# You can create any custom variable you would like, and they will be accessible # You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}. # in the templates via {{ site.myvariable }}.
title: digitalgarden title: Digital Garden
email: project.digitalgarden@hypha.coop email: project.digitalgarden@hypha.coop
description: >- # this means to ignore newlines until "baseurl:" description: >- # this means to ignore newlines until "baseurl:"
A digital garden or public notebook for The Bentways Digital and/as Public Space Micro-Residency.
baseurl: "/" # the subpath of your site, e.g. /blog baseurl: "/" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com url: "" # the base hostname & protocol for your site, e.g. http://example.com
@ -28,6 +29,8 @@ url: "" # the base hostname & protocol for your site, e.g. http://example.com
theme: minima theme: minima
plugins: plugins:
- jekyll-feed - jekyll-feed
sass:
style: compressed
# Exclude from processing. # Exclude from processing.
# The following items will not be processed, by default. # The following items will not be processed, by default.
@ -37,14 +40,15 @@ plugins:
# Excluded items can be processed by explicitly listing the directories or # Excluded items can be processed by explicitly listing the directories or
# their entries' file path in the `include:` list. # their entries' file path in the `include:` list.
# #
# exclude: exclude:
# - .sass-cache/ - .sass-cache/
# - .jekyll-cache/ - .jekyll-cache/
# - gemfiles/ - gemfiles/
# - Gemfile - Gemfile
# - Gemfile.lock - Gemfile.lock
# - node_modules/ - node_modules/
# - vendor/bundle/ - vendor/bundle/
# - vendor/cache/ - vendor/cache/
# - vendor/gems/ - vendor/gems/
# - vendor/ruby/ - vendor/ruby/
- Rakefile

3
_includes/footer.html Normal file
View File

@ -0,0 +1,3 @@
<footer>
</footer>

10
_includes/head.html Normal file
View File

@ -0,0 +1,10 @@
{%- assign meta_description = page.excerpt | default: site.description -%}
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }} 🌱 {% endif %}{{ site.title }}</title>
<meta name="description" content="{{ meta_description }}">
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
{%- feed_meta -%}
</head>

17
_includes/header.html Normal file
View File

@ -0,0 +1,17 @@
<header class="f-6 flex">
{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
<a class="no-underline-hover" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
{%- if titles_size > 0 -%}
<nav>
{%- for path in page_paths -%}
{%- assign my_page = site.pages | where: "path", path | first -%}
{%- if my_page.title -%}
, <a class="no-underline-hover" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{%- endif -%}
{%- endfor -%}
</nav>
{%- endif -%}
</header>

17
_layouts/default.html Normal file
View File

@ -0,0 +1,17 @@
<!doctype html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
{%- include head.html -%}
<body class="dark-green garamond links-dark-green bg-washed-green">
{%- include header.html -%}
<main aria-label="Content">
{{ content }}
</main>
{%- include footer.html -%}
<script src="{{ "/assets/js/scripts.js" | relative_url }}" async></script>
</body>
</html>

3
_layouts/home.html Normal file
View File

@ -0,0 +1,3 @@
---
layout: default
---

11
_layouts/page.html Normal file
View File

@ -0,0 +1,11 @@
---
layout: default
---
<article class="measure-wide">
<header>
<h1 class="f-6 normal">{{ page.title | escape }}</h1>
</header>
<div class="lh-copy f5">
{{ content }}
</div>
</article>

34
_layouts/post.html Normal file
View File

@ -0,0 +1,34 @@
---
layout: default
---
<article itemscope itemtype="http://schema.org/BlogPosting">
<header>
<h1 itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: date_format }}
</time>
{%- if page.modified_date -%}
~
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<time class="dt-modified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
• {% for author in page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="p-author h-card" itemprop="name">{{ author }}</span></span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{%- endif -%}</p>
</header>
<div class="e-content" itemprop="articleBody">
{{ content }}
</div>
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>

View File

@ -0,0 +1,8 @@
.links-dark-green a {
color: $accent-color;
}
.no-underline-hover:hover,
.no-underline-hover:focus {
text-decoration: none;
}

3
_sass/_tachyons.min.scss Normal file

File diff suppressed because one or more lines are too long

1
_sass/_variables.scss Normal file
View File

@ -0,0 +1 @@
$accent-color: #137752;

8
assets/css/style.scss Normal file
View File

@ -0,0 +1,8 @@
---
---
@import
"tachyons.min",
"variables",
"digital-garden"
;

0
assets/js/scripts.js Normal file
View File

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB