Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
86cd6fd
commit
Jb-zn Mar 13, 2022
98da5aa
commit on 'main'
Jb-zn Mar 13, 2022
11d7ee0
commit on 'main'
Jb-zn Mar 13, 2022
846f70e
commit to main
Jb-zn Mar 16, 2022
2c9a598
commit to main
Jb-zn Mar 16, 2022
9a262f6
commit to main
Jb-zn Mar 16, 2022
9c54819
commit to main
Jb-zn Mar 16, 2022
d8eb4fe
commit to main
Jb-zn Mar 16, 2022
fc0ec84
Commit on main
Jb-zn Mar 16, 2022
023c155
commit on 'main'
Jb-zn Mar 23, 2022
3a7a80c
commit to 'main'
Jb-zn Mar 23, 2022
d11a36f
Commit on main'
Jb-zn Mar 30, 2022
cf80e13
commit on main
Jb-zn Mar 30, 2022
66f6404
commit on main
Jb-zn Mar 30, 2022
674f8c5
commit to main
Jb-zn Mar 30, 2022
3fe88c7
commit on main
Jb-zn Mar 30, 2022
46c3b92
commit to main
Jb-zn Mar 30, 2022
3e9378d
add socialmedia
Jb-zn Mar 30, 2022
7058f97
socialmedia
Jb-zn Mar 30, 2022
6e48ebe
commit to main
Jb-zn Mar 30, 2022
fcdce9a
commit to main
Jb-zn Mar 30, 2022
a624311
commit to main
Jb-zn Mar 30, 2022
c9ed23f
preliminary support for instagram galleries
titaniumbones Mar 30, 2022
ee56fbb
add new shortcode for inline instagallery
titaniumbones Mar 31, 2022
7f6894e
add _gallery.scss
titaniumbones Mar 31, 2022
b43f955
Merge pull request #1 from HackingHistory/jade
Jb-zn Apr 6, 2022
c03ecc7
Merge branch 'main' of https://github.com/Jb-zn/hh-project-11ty-start…
Jb-zn Apr 6, 2022
693e8e2
commit to main
Jb-zn Apr 6, 2022
90421e7
commit to main
Jb-zn Apr 6, 2022
c1773ad
commit on main
Jb-zn Apr 6, 2022
15506d6
commit on main
Jb-zn Apr 6, 2022
3e227e7
commit on main
Jb-zn Apr 21, 2022
e559b91
commint on main
Jb-zn Apr 21, 2022
38ebb31
commit on 'main'
Jb-zn Apr 21, 2022
84b7330
commit on main
Jb-zn Apr 21, 2022
caac527
commit on main
Jb-zn May 5, 2022
795150d
commit on main
Jb-zn May 5, 2022
83d5449
commit on main
Jb-zn May 5, 2022
559023c
commit on main
Jb-zn May 5, 2022
f76d073
commit on main
Jb-zn May 5, 2022
49f797f
commit on main
Jb-zn May 5, 2022
14ce928
commit on main
Jb-zn May 5, 2022
35d9459
commit on main
Jb-zn May 5, 2022
b977ab3
commit on main
Jb-zn May 5, 2022
464f369
commit on main
Jb-zn May 5, 2022
2286c7a
commit to main
Jb-zn May 12, 2022
f06d9fc
commit on main
Jb-zn May 12, 2022
9350cd3
commit on main
Jb-zn May 12, 2022
779bb54
commit on main
Jb-zn May 14, 2022
4d8836c
commit to main
Jb-zn May 14, 2022
dd61a06
commit on main
Jb-zn May 14, 2022
7d35761
commit on main
Jb-zn May 14, 2022
b3633f7
commit on main
Jb-zn May 14, 2022
dcf1f47
commit to main
Jb-zn May 15, 2022
c14388c
commit to main
Jb-zn May 15, 2022
f954e11
commit to main
Jb-zn May 15, 2022
eb7c530
commit on main
Jb-zn May 15, 2022
e399b46
commit to main
Jb-zn May 15, 2022
5dc6f75
commit on main
Jb-zn May 16, 2022
518ddba
commit to main
Jb-zn May 16, 2022
5c6e953
commit to main
Jb-zn May 16, 2022
bf292c0
commit to main
Jb-zn May 16, 2022
ac9246b
commit to main
Jb-zn May 16, 2022
b1810bb
commit to main
Jb-zn May 16, 2022
4ec5114
commit to main
Jb-zn May 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 58 additions & 26 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,52 @@ const markdownItFootnote = require("markdown-it-footnote")
// Local utilities/data
const packageVersion = require("./package.json").version;
const pluginTOC = require('eleventy-plugin-toc');

const embeds = require("eleventy-plugin-embed-everything");
const instamarkup = function(url) {
const pattern = /(?=(\s*))\1(?:<a [^>]*?>)??(?=(\s*))\2(?:https?:\/\/)?(?:w{3}\.)?(?:instagram\.com)\/(?:p\/)?([0-9a-zA-Z-_]{11})(?:\S*)(?=(\s*))\4(?:<\/a>)?(?=(\s*))\5/;
const match = pattern.exec(url)
const id = match ? match[3] : null
let out = ''
if (id) {
out = '<blockquote ';
// class MUST include "instagram-media" because Instagram's script uses it for DOM parsing
out += `class="jade-gallery instagram-media"`;
out += ` data-instgrm-permalink="https://www.instagram.com/p/${id}">`;
out += '</blockquote>';
} else {
out = `<blockquote class="jade-gallery instagram-media">media not found</blockquote>`;
}
return out;
};
module.exports = function (eleventyConfig) {
let markdownLibrary = markdownIt({
html: true,
}).use(markdownItAnchor, {
permalink: markdownItAnchor.permalink.ariaHidden({
class: "tdbc-anchor",
space: false,
symbol: "🔗",
}),
level: [1, 2, 3],
slugify: (str) =>
slugify(str, {
lower: true,
strict: true,
remove: /["]/g,
}),
}).use(markdownItFootnote);
eleventyConfig.setLibrary("md", markdownLibrary);
eleventyConfig.addPlugin(socialImages);
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(embeds);
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(pluginTOC, {
tags: ['h2', 'h3', 'h4'], // which heading tags are selected headings must each have an ID attribute
wrapper: 'nav', // element to put around the root `ol`/`ul`
wrapperClass: 'toc', // class for the element around the root `ol`/`ul`
ul: false, // if to use `ul` instead of `ol`
flat: false, // if subheadings should appear as child of parent or as a sibling
})
tags: ['h2', 'h3', 'h4'], // which heading tags are selected headings must each have an ID attribute
wrapper: 'nav', // element to put around the root `ol`/`ul`
wrapperClass: 'toc', // class for the element around the root `ol`/`ul`
ul: false, // if to use `ul` instead of `ol`
flat: false, // if subheadings should appear as child of parent or as a sibling
})
eleventyConfig.addWatchTarget("./src/sass/");

eleventyConfig.addPassthroughCopy("./src/css");
Expand All @@ -45,26 +79,24 @@ module.exports = function (eleventyConfig) {
});
});

eleventyConfig.addFilter("instamarkup", instamarkup);

eleventyConfig.addPairedShortcode("instagallery", function(content,links) {
let instaEmbeds = links.map((l) => instamarkup(l));
return `<article class="gallery">
<section class="items">
${instaEmbeds.join('')}
</section>
<section class="text">
${markdownLibrary.render(content)}
<script async defer src="https://www.instagram.com/embed.js"></script>
</section>
</article>`
})

/* Markdown Overrides */
let markdownLibrary = markdownIt({
html: true,
}).use(markdownItAnchor, {
permalink: markdownItAnchor.permalink.ariaHidden({
class: "tdbc-anchor",
space: false,
symbol: "🔗",
}),
level: [1, 2, 3],
slugify: (str) =>
slugify(str, {
lower: true,
strict: true,
remove: /["]/g,
}),
}).use(markdownItFootnote);
eleventyConfig.setLibrary("md", markdownLibrary);

return {
return {
passthroughFileCopy: true,
pathPrefix: "/hh-project-11ty-starter-kit",
dir: {
Expand All @@ -73,4 +105,4 @@ module.exports = function (eleventyConfig) {
layouts: "_layouts",
},
};
};
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Hacking History 11ty starter

> Originally created by Stephanie Eckles ([@5t3ph](https://twitter.com/5t3ph)), and modified for use in Hacking History by Matt Price.
Expand Down
121 changes: 121 additions & 0 deletions docs/HackHistoryAssignment/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<!DOCTYPE html>
<html lang="en"><head>
<!-- Generated from the 11ty Netlify Jumpstart: https://github.com/5t3ph/11ty-netlify-jumpstart -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="eleventy" />
<title>Revolution Through Queer Fashion: Eastern Europe</title>
<meta
name="description"
content="This is a test page for assignment"
/>
<link rel="icon" href="/hh-project-11ty-starter-kit/favicon.png" />
<link href="/hh-project-11ty-starter-kit/css/style.css" rel="stylesheet" />
<meta name="twitter:card" content="summary_large_image" />

<meta name="twitter:creator" content="@mattpriceuoft" />

<meta
name="twitter:title"
content="Revolution Through Queer Fashion: Eastern Europe"
/>
<meta
name="twitter:description"
content="This is a test page for assignment"
/>

<meta
name="og:title"
content="Revolution Through Queer Fashion: Easter Europe"
/>
<meta
name="og:description"
content="This is a test page for assignment"
/>
<meta property="og:image" content="https://hackinghistory.github.io/hh-project-11ty-starter-kit//previews/home.png" />
<meta name="twitter:image" content="https://hackinghistory.github.io/hh-project-11ty-starter-kit//previews/home.png" />

<link
rel="alternate"
type="application/rss+xml"
title="RSS Feed for Revolution Through Queer Fashion: Easter Europe"
href="/feed/"
/>
</head>
<body class="">


<nav aria-labelledby="tdbc-siteid" class="tdbc-sitenav">
<div class="tdbc-sitenav__container">
<a id="tdbc-siteid" href="/"

>Revolution Through Queer Fashion: Easter Europe</a>
<ul role="list" class="tdbc-sitenav__navlist tdbc-list-unstyled">

<li>
<a

href="/hh-project-11ty-starter-kit/about/">
About
</a>
</li>
<li>
<a

href="/hh-project-11ty-starter-kit/styledemo/">
Style Demo
</a>
</li>
<li>
<a

href="/hh-project-11ty-starter-kit/HackHistoryAssignment/">

</a>
</li>
</ul>
</nav>



<header class="tdbc-hero">
<div class="tdbc-container">
<h1 class="tdbc-ink--primary tdbc-mb-none"></h1>
<h2 class="tdbc-lead tdbc-content-maxlength tdbc-ink--gray tdbc-mt-md tdbc-mx-auto">
This is a test page for assignment
</h2>
</div>
</header>


<main class="tdbc-container">
<article class="tdbc-mx-auto">
<p>Here is some uniformative content
templates can stack ontop of eachother</p>

</article>
</main>


<footer class="tdbc-background--secondary">
<div class="tdbc-container tdbc-text-align-center">
<div class="tdbc-row tdbc-ink--light tdbc-mx-auto">
<p class="tdbc-mb-none">&copy; 2022 Revolution Through Queer Fashion: Easter Europe • v1.2.0</p>
<span class="tdbc-row tdbc-row--center-content">
<a
href="https://twitter.com/mattpriceuoft/"
class="tdbc-icon-button tdbc-ink--light"
aria-label="Twitter"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 28" aria-hidden="true" focusable="false">
<path
d="M25.312 6.375c-0.688 1-1.547 1.891-2.531 2.609 0.016 0.219 0.016 0.438 0.016 0.656 0 6.672-5.078 14.359-14.359 14.359-2.859 0-5.516-0.828-7.75-2.266 0.406 0.047 0.797 0.063 1.219 0.063 2.359 0 4.531-0.797 6.266-2.156-2.219-0.047-4.078-1.5-4.719-3.5 0.313 0.047 0.625 0.078 0.953 0.078 0.453 0 0.906-0.063 1.328-0.172-2.312-0.469-4.047-2.5-4.047-4.953v-0.063c0.672 0.375 1.453 0.609 2.281 0.641-1.359-0.906-2.25-2.453-2.25-4.203 0-0.938 0.25-1.797 0.688-2.547 2.484 3.062 6.219 5.063 10.406 5.281-0.078-0.375-0.125-0.766-0.125-1.156 0-2.781 2.25-5.047 5.047-5.047 1.453 0 2.766 0.609 3.687 1.594 1.141-0.219 2.234-0.641 3.203-1.219-0.375 1.172-1.172 2.156-2.219 2.781 1.016-0.109 2-0.391 2.906-0.781z"
></path>
</svg>
</a>
</span>
</div>
</div>
</footer>
</body>
</html>
Loading