Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 69565a6

Browse files
committedNov 9, 2022
Basic page generation with screenshots but no text
1 parent 56a2bd7 commit 69565a6

32 files changed

+5677
-207
lines changed
 

‎.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,5 @@ captures
110110

111111
ajcore.*
112112
vagrant
113+
114+
_site

‎assets/generate-pages/.eleventy.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const markdownIt = require("markdown-it");
2+
const markdownItAnchor = require("markdown-it-anchor");
3+
4+
module.exports = (function(eleventyConfig){
5+
// When generating headings, wrap it in a hyperlink, for easy accessibility.
6+
let markdownLibrary = markdownIt({html: true}).use(markdownItAnchor, { permalink: markdownItAnchor.permalink.headerLink() });
7+
eleventyConfig.setLibrary("md", markdownLibrary);
8+
9+
// Copies the static and image files straight into the output folder, so that the HTML can reference it.
10+
eleventyConfig.addPassthroughCopy({ "static/": "static" });
11+
eleventyConfig.addPassthroughCopy({ "content/images/": "images" });
12+
13+
//Don't process README.md, that's for me!
14+
eleventyConfig.ignores.add("README.md");
15+
16+
eleventyConfig.addCollection('tour', function(collectionApi){
17+
return collectionApi.getFilteredByGlob('content/tour*.*');
18+
});
19+
20+
eleventyConfig.addCollection('more', function(collectionApi){
21+
return collectionApi.getFilteredByGlob('content/more*.*');
22+
});
23+
24+
25+
});
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"permalink": false
3+
}

‎assets/generate-pages/index.html

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
7+
<meta name="viewport" content="width=device-width">
8+
<title>GPSLogger for Android</title>
9+
<link rel="stylesheet"
10+
href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic|Anonymous+Pro:400,700,400italic,700italic|Merriweather:400,700,300">
11+
<link rel="stylesheet" href="static/main.css">
12+
<link rel="shortcut icon" type="image/png" href="static/images/favicon.png">
13+
<link rel="icon" type="image/png" href="static/images/favicon.png">
14+
</head>
15+
16+
<body>
17+
<header class="header">
18+
<div class="container"><img src="static/images/gps_icon05.png" class="pull-left logo">
19+
<h1><a href="https://gpslogger.app/">GPSLogger for Android</a></h1>
20+
<p class="description">A battery efficient GPS logging application</p>
21+
<section class="blurb">GPSLogger uses the GPS capabilities of your Android phone to log coordinates to GPS
22+
format files at regular intervals.
23+
This can be particularly useful if you want to geotag your photos after a day out or share your travel
24+
route with someone.
25+
The purpose of this application is to be battery efficient to save you battery power when abroad and
26+
last as long as
27+
possible.</section>
28+
<a href="#quick-tour" class="button">Tour</a> <a href="#frequentlyaskedquestionsandissues"
29+
class="button">FAQ</a> <a href="#morescreenshots" class="button">Screenshots</a>
30+
31+
<a href="https://github.com/mendhak/gpslogger/" class="pull-right"><img src="static/images/GitHub_Logo.png"
32+
height="40px" class="pull-right" style="margin-top:10px;"> <img
33+
src="static/images/GitHub-Mark-64px.png" height="40px" class="pull-right"
34+
style="margin-top:10px;"></a><a href="https://f-droid.org/packages/com.mendhak.gpslogger">
35+
<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="65px"
36+
class="pull-right">
37+
</a>
38+
39+
40+
</div>
41+
</header>
42+
<div class="container">
43+
<main>
44+
45+
{%- for item in collections.tour -%}
46+
<section>
47+
<div class="lead">
48+
{{ item.templateContent }}
49+
50+
</div>
51+
</section>
52+
{%- endfor -%}
53+
54+
<hr />
55+
56+
{%- for item in collections.more -%}
57+
<section>
58+
<div class="lead">
59+
{{ item.templateContent }}
60+
61+
</div>
62+
</section>
63+
{%- endfor -%}
64+
65+
66+
</main>
67+
</div>
68+
<footer class="container">
69+
<ul class="photostream">
70+
<li><a href="https://www.flickr.com/photos/mendhak/30454355997/"><img width="150" height="150"
71+
alt="thumbnail" src="https://live.staticflickr.com/1932/30454355997_287063f84b_q.jpg"></a></li>
72+
<li><a href="https://www.flickr.com/photos/mendhak/31366195988/"><img width="150" height="150"
73+
alt="thumbnail" src="https://live.staticflickr.com/1917/31366195988_3b8862fd7e_q.jpg"></a></li>
74+
<li><a href="https://www.flickr.com/photos/mendhak/38225459035/"><img width="150" height="150"
75+
alt="thumbnail" src="https://live.staticflickr.com/4596/38225459035_db33403af9_q.jpg"></a></li>
76+
<li><a href="https://www.flickr.com/photos/mendhak/23816072218/"><img width="150" height="150"
77+
alt="thumbnail" src="https://live.staticflickr.com/4478/23816072218_c6f2a65658_q.jpg"></a></li>
78+
<li><a href="https://www.flickr.com/photos/mendhak/37937678644/"><img width="150" height="150"
79+
alt="thumbnail" src="https://live.staticflickr.com/4521/37937678644_e569ddc8f6_q.jpg"></a></li>
80+
</ul>
81+
<section class="copy">
82+
<p>&mdash; &copy; ###YEAR### Mendhak &mdash;</p>
83+
</section>
84+
</footer>
85+
</body>
86+
87+
</html>

0 commit comments

Comments
 (0)
Please sign in to comment.