templates
This commit is contained in:
parent
3baaf81b64
commit
b80c890671
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ _site
|
|||||||
.jekyll-cache
|
.jekyll-cache
|
||||||
.jekyll-metadata
|
.jekyll-metadata
|
||||||
vendor
|
vendor
|
||||||
|
.DS_Store
|
||||||
|
@ -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 Bentway’s Digital and/as Public Space Micro-Residency.
|
A public notebook / digital garden for The Bentway’s Digital and/as Public Space Micro-Residency.
|
||||||
|
28
_config.yml
28
_config.yml
@ -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 Bentway’s 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
3
_includes/footer.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<footer>
|
||||||
|
|
||||||
|
</footer>
|
10
_includes/head.html
Normal file
10
_includes/head.html
Normal 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
17
_includes/header.html
Normal 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
17
_layouts/default.html
Normal 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
3
_layouts/home.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
layout: default
|
||||||
|
---
|
11
_layouts/page.html
Normal file
11
_layouts/page.html
Normal 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
34
_layouts/post.html
Normal 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>
|
8
_sass/_digital-garden.scss
Normal file
8
_sass/_digital-garden.scss
Normal 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
3
_sass/_tachyons.min.scss
Normal file
File diff suppressed because one or more lines are too long
1
_sass/_variables.scss
Normal file
1
_sass/_variables.scss
Normal file
@ -0,0 +1 @@
|
|||||||
|
$accent-color: #137752;
|
8
assets/css/style.scss
Normal file
8
assets/css/style.scss
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
|
||||||
|
@import
|
||||||
|
"tachyons.min",
|
||||||
|
"variables",
|
||||||
|
"digital-garden"
|
||||||
|
;
|
0
assets/js/scripts.js
Normal file
0
assets/js/scripts.js
Normal file
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
Loading…
Reference in New Issue
Block a user