Comments (3)
I'd almost forgotten about that list! I think this is somewhat linked to #4 in that what would be most useful is 1) a list of untranscribed memos with 2) an easy link to the original in a PDF. The first alone would suffice, but both together would make it easier to contribute?
from tindallgrams.
My original intention was for this issue to be a pull request that implements this, but
- poking around in the ruby code gave me the impression that a lot of interrelated things are happening, that I didn't want to accidentally break
- I wasn't sure of the proper way to get the list of already-converted tgrams
from tindallgrams.
If you look at one of the year indexes (1966, say), that's a good start. With the addition of some frontmatter, these just contain liquid tag markup:
{% tgindex year 1966 %}
Here tgindex
calls a plugin tgindex.rb with the two parameters indicating, as you can guess, "make a year index for 1966".
The entire list of Tindallgrams is loaded from the YAML file:
@grams = YAML.load_file('_data/tindallgrams-index.yaml')['tindallgrams']
The filter
method then filters this list according to the desired index type (currently year
or source
) and render_index
generates the table. Before it's generated, the get_published
method is called to make a list of already-transcribed Tindallgrams (by looking for files that actually exist). So, when the table is generated, links can be made to the transcribed version when they exist by seeing if they exist in that list.
Making an index of "done" or "to-do" Tindallgrams, would only require adding on to tgindex
so that it can generate the desired pages and then adding the new page templates. I would suggest enabling the tags:
{% tgindex transcribed true %}
{% tgindex transcribed false %}
The filter
method would then just have to use get_published
to filter the done memos in or out.
If you want to give this a go, don't worry about breaking anything -- we'll fix any problems before merging.
from tindallgrams.
Related Issues (19)
- Sources list fails to display HOT 2
- Source references in individual tindallgrams HOT 4
- 70-PA-T-2A is listed twice in index
- Tindallgram Tables (66-FM1-129)
- Move to new Cedar-14 Stack HOT 1
- Generate PDF output HOT 1
- Add title elements to pages
- Fix local config to not require .html in URLs HOT 1
- Add proper <title> HOT 1
- Add lang attribute
- DuckDuckGo searchbox iframe needs title
- Remove Github follow button
- Make twitter follow button a link
- Replace DDG iframe with form
- Add a <main> landmark
- Improve contrast of topic links
- Improve accessibility of Featured Tindallgrams table
- Tindallgrams.net is down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tindallgrams.