Skip to content

Commit

Permalink
remove git hooks support, etc
Browse files Browse the repository at this point in the history
remove templates
add 2 real items
  • Loading branch information
iandennismiller committed Sep 10, 2023
1 parent bda9c00 commit 9b587e0
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 123 deletions.
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ publish:
git commit -am "automatic publish"
git push

install:
rsync -acv --delete _site/ ~/www/

new:
_bin/template.py

artwork:
_bin/artwork.sh

js:
java -jar ~/Library/Code/compiler.jar --js _site/js/main.js --js_output_file js/main.min.js

requirements:
chmod 755 _bin/*
_bin/requirements.sh
Expand Down
10 changes: 0 additions & 10 deletions _bin/artwork.sh

This file was deleted.

1 change: 0 additions & 1 deletion _bin/data_uri.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# (cc) 2016 diamond-patterns

import sys

Expand Down
8 changes: 0 additions & 8 deletions _bin/git-hooks.sh

This file was deleted.

20 changes: 0 additions & 20 deletions _bin/git-init.sh

This file was deleted.

1 change: 0 additions & 1 deletion _bin/requirements.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
# (cc) 2016 diamond-patterns

if [ -f source ~/.rvm/scripts/rvm ]; then
source ~/.rvm/scripts/rvm
Expand Down
38 changes: 0 additions & 38 deletions _bin/template.py

This file was deleted.

4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# Site settings
title: Solarpunk
description: > # this means to ignore newlines until next variable
Data Items Site transforms data into pages
license: "cc 2022 Me"
Solarpunk literature and other resources
license: "cc 2023 Ian Dennis Miller"

# Links
baseurl: "/solarpunk" # the subpath of your site, e.g. /blog
Expand Down
25 changes: 18 additions & 7 deletions _data/items.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
{
"Item1": {
"chambers2021": {
"ENTRYTYPE": "item",
"ID": "Item1",
"abstract": "This is but an item",
"author": "Somebody Wrote this",
"issn": "03048608 14328798",
"title": "The First Item",
"year": "2023"
"ID": "chambers2021",
"abstract": "On a moon called Panga where AI and robots are a distant myth, Dex is an adventurous and friendly tea monk who travels the human-populated areas of their moon meeting villagers and townsfolk. Dex custom-blends tea to fit the people's needs and personalities, and they confide their misgivings to the monk. One day Dex, seeking a change in their routine, travels into the wild and meets a robot named Splendid Speckled Mosscap and they are thrown into a road-trip with a question on their minds: 'What do people need?'",
"author": "Becky Chambers",
"title": "A Psalm for the Wild-Built",
"year": "2021",
"image": "https://upload.wikimedia.org/wikipedia/en/a/a5/PsalmforWild.jpg",
"url": "https://en.wikipedia.org/wiki/A_Psalm_for_the_Wild-Built"
},
"robinson2020": {
"ENTRYTYPE": "item",
"ID": "robinson2020",
"abstract": "The Ministry for the Future is a climate fiction ('cli-fi') novel by American science fiction writer Kim Stanley Robinson published in 2020. Set in the near future, the novel follows a subsidiary body, established under the Paris Agreement, whose mission is to act as an advocate for the world's future generations of citizens as if their rights are as valid as the present generation's. While they pursue various ambitious projects, the effects of climate change are determined to be the most consequential. The plot primarily follows Mary Murphy, the head of the titular Ministry for the Future, and Frank May, an American aid worker traumatized by experiencing a deadly heat wave in India. Many chapters are devoted to other (mostly anonymous) characters' accounts of future events, as well as their ideas about ecology, economics, and other subjects. ",
"author": "Kim Stanley Robinson",
"title": "The Ministry for the Future",
"year": "2020",
"image": "https://upload.wikimedia.org/wikipedia/en/0/05/The_Ministry_for_the_Future.png",
"url": "https://en.wikipedia.org/wiki/The_Ministry_for_the_Future"
}
}
1 change: 0 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

<link rel="sitemap" href={{ "/sitemap.xml" | prepend: site.baseurl | prepend: site.url }} />
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}" />
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/blog/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
<link rel="shortcut icon" type="image/x-icon" href="{{"/favicon.ico" | prepend: site.baseurl }}"/>

<title>{% if page.title %}{{ site.title | escape }} - {{ page.title | escape }}{% else %}{{ site.title | escape }} measures open source influence {% endif %}</title>
Expand Down
2 changes: 1 addition & 1 deletion _includes/meta-facebook.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<meta property="og:site_name" content="{{ site.title }}"/>
<meta property="og:type" content="website"/>
<meta property="og:title" content="{{ page.title | prepend: site.title }}"/>
<meta property="og:title" content="{{ page.title }}"/>
<meta property="og:description" content="{{ page.excerpt }}"/>
<meta property="og:url" content="{{ page.url | prepend: site.baseurl | prepend: site.url }}"/>
<meta property="og:image" content="{{ page.image | prepend: site.baseurl | prepend: site.url }}"/>
10 changes: 7 additions & 3 deletions _layouts/gen-item.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: page-nosocial
layout: page
image: /media/thumb-big.jpg
---

Expand All @@ -18,6 +18,10 @@ <h1 class="post-title">📄 {{ site.data.items[id].title }}</h1>

<div class="home">

<div style="margin-bottom: 1em;">
<img src="{{ this.image }}">
</div>

<div style="margin-bottom: 1em;">
{{ this.abstract }}
</div>
Expand All @@ -34,8 +38,8 @@ <h1 class="post-title">📄 {{ site.data.items[id].title }}</h1>
</div>

<div>
<span class="var">issn</span>
<span class="value">🗄 {{ this.issn }}</span>
<span class="var">more</span>
<span class="value">🗄 <a href="{{ this.url }}">{{ this.url }}</a></span>
</div>

</div>
Expand Down
2 changes: 0 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ <h1 class="post-title">{{ page.title }}</h1>

<div class="social">
{% include share-twitter.html url=page.url text=page.title %}
{% include share-hacker-news.html url=page.url text=page.title %}
{% include share-facebook.html url=page.url text=page.title %}
</div>

</article>
4 changes: 2 additions & 2 deletions _pages/about.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
layout: page
layout: page-nosocial
title: About
permalink: /about/
menu: main
image: /media/thumb-big.jpg
excerpt: Read all about this site
---

This is a page about this site.
Solarpunk literature and other resources.
11 changes: 7 additions & 4 deletions _pages/index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
layout: default
title: A Data Items Website
title: Solarpunk literature and other resources
permalink: /
image: /media/thumb-big.jpg
excerpt: A Data Items Website
excerpt: Solarpunk literature and other resources
---

<div class="home">

<ul>
{% for item in site.data.items %}
<li>
<a role="button" class="btn btn-primary" href="{{ site.baseurl }}/items/{{ item[1].ID|downcase }}.html">[View]</a>
{{ item[1].author }}. ({{ item[1].year }}). {{ item[1].title }}.
<a href="{{ site.baseurl }}/items/{{ item[1].ID|downcase }}.html">
{{ item[1].title }}.
</a>
({{ item[1].year }}).
{{ item[1].author }}.
</li>
{% endfor %}
</ul>
Expand Down
11 changes: 0 additions & 11 deletions _templates/blog.txt

This file was deleted.

0 comments on commit 9b587e0

Please sign in to comment.