diff options
author | Karl Hallsby <karl@hallsby.com> | 2021-10-03 02:16:25 -0500 |
---|---|---|
committer | Karl Hallsby <karl@hallsby.com> | 2021-10-03 02:16:55 -0500 |
commit | b988a125d9c4d408a0bc88318cf005691e565fd7 (patch) | |
tree | daf46f5418a41d4c0ce2d3f77cb84f14a1130e25 /_drafts | |
parent | e2c06d2681e18946ab6c3e3e6075aed92a4d13be (diff) |
Update rest of site to work with new al-folio theme
Diffstat (limited to '_drafts')
-rw-r--r-- | _drafts/2015-03-15-formatting-and-links.md | 28 | ||||
-rw-r--r-- | _drafts/2015-05-15-images.md | 45 | ||||
-rw-r--r-- | _drafts/2015-07-15-code.md | 39 | ||||
-rw-r--r-- | _drafts/2015-10-20-comments.md | 8 | ||||
-rw-r--r-- | _drafts/2015-10-20-math.md | 25 | ||||
-rw-r--r-- | _drafts/2018-12-22-distill.md | 275 | ||||
-rw-r--r-- | _drafts/2020-09-28-github-metadata.md | 34 | ||||
-rw-r--r-- | _drafts/2020-09-28-twitter.md | 18 |
8 files changed, 472 insertions, 0 deletions
diff --git a/_drafts/2015-03-15-formatting-and-links.md b/_drafts/2015-03-15-formatting-and-links.md new file mode 100644 index 0000000..82a989a --- /dev/null +++ b/_drafts/2015-03-15-formatting-and-links.md @@ -0,0 +1,28 @@ +--- +layout: post +title: a post with formatting and links +date: 2015-03-15 16:40:16 +description: march & april, looking forward to summer +--- +Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch. <a href="https://www.pinterest.com" target="blank">Pinterest</a> DIY authentic Schlitz, hoodie Intelligentsia butcher trust fund brunch shabby chic Kickstarter forage flexitarian. Direct trade <a href="https://en.wikipedia.org/wiki/Cold-pressed_juice" target="blank">cold-pressed</a> meggings stumptown plaid, pop-up taxidermy. Hoodie XOXO fingerstache scenester Echo Park. Plaid ugh Wes Anderson, freegan pug selvage fanny pack leggings pickled food truck DIY irony Banksy. + +#### Hipster list +<ul> + <li>brunch</li> + <li>fixie</li> + <li>raybans</li> + <li>messenger bag</li> +</ul> + +Hoodie Thundercats retro, tote bag 8-bit Godard craft beer gastropub. Truffaut Tumblr taxidermy, raw denim Kickstarter sartorial dreamcatcher. Quinoa chambray slow-carb salvia readymade, bicycle rights 90's yr typewriter selfies letterpress cardigan vegan. + +<hr> + +Pug heirloom High Life vinyl swag, single-origin coffee four dollar toast taxidermy reprehenderit fap distillery master cleanse locavore. Est anim sapiente leggings Brooklyn ea. Thundercats locavore excepteur veniam eiusmod. Raw denim Truffaut Schlitz, migas sapiente Portland VHS twee Bushwick Marfa typewriter retro id keytar. + +<blockquote> + We do not grow absolutely, chronologically. We grow sometimes in one dimension, and not in another, unevenly. We grow partially. We are relative. We are mature in one realm, childish in another. + —Anais Nin +</blockquote> + +Fap aliqua qui, scenester pug Echo Park polaroid irony shabby chic ex cardigan church-key Odd Future accusamus. Blog stumptown sartorial squid, gastropub duis aesthetic Truffaut vero. Pinterest tilde twee, odio mumblecore jean shorts lumbersexual. diff --git a/_drafts/2015-05-15-images.md b/_drafts/2015-05-15-images.md new file mode 100644 index 0000000..6347918 --- /dev/null +++ b/_drafts/2015-05-15-images.md @@ -0,0 +1,45 @@ +--- +layout: post +title: a post with images +date: 2015-05-15 21:01:00 +description: this is what included images could look like +--- +This is an example post with image galleries. + +<div class="row mt-3"> + <div class="col-sm mt-3 mt-md-0"> + <img class="img-fluid rounded z-depth-1" src="{{ site.baseurl }}/assets/img/9.jpg"> + </div> + <div class="col-sm mt-3 mt-md-0"> + <img class="img-fluid rounded z-depth-1" src="{{ site.baseurl }}/assets/img/7.jpg"> + </div> +</div> +<div class="caption"> + A simple, elegant caption looks good between image rows, after each row, or doesn't have to be there at all. +</div> + +Images can be made zoomable. +Simply add `data-zoomable` to `<img>` tags that you want to make zoomable. + +<div class="row mt-3"> + <div class="col-sm mt-3 mt-md-0"> + <img class="img-fluid rounded z-depth-1" src="{{ site.baseurl }}/assets/img/8.jpg" data-zoomable> + </div> + <div class="col-sm mt-3 mt-md-0"> + <img class="img-fluid rounded z-depth-1" src="{{ site.baseurl }}/assets/img/10.jpg" data-zoomable> + </div> +</div> + +The rest of the images in this post are all zoomable, arranged into different mini-galleries. + +<div class="row mt-3"> + <div class="col-sm mt-3 mt-md-0"> + <img class="img-fluid rounded z-depth-1" src="{{ site.baseurl }}/assets/img/11.jpg" data-zoomable> + </div> + <div class="col-sm mt-3 mt-md-0"> + <img class="img-fluid rounded z-depth-1" src="{{ site.baseurl }}/assets/img/12.jpg" data-zoomable> + </div> + <div class="col-sm mt-3 mt-md-0"> + <img class="img-fluid rounded z-depth-1" src="{{ site.baseurl }}/assets/img/7.jpg" data-zoomable> + </div> +</div> diff --git a/_drafts/2015-07-15-code.md b/_drafts/2015-07-15-code.md new file mode 100644 index 0000000..2dc73ce --- /dev/null +++ b/_drafts/2015-07-15-code.md @@ -0,0 +1,39 @@ +--- +layout: post +title: a post with code +date: 2015-07-15 15:09:00 +description: an example of a blog post with some code +--- +This theme implements a built-in Jekyll feature, the use of Rouge, for syntax highlighting. +It supports more than 100 languages. +This example is in C++. +All you have to do is wrap your code in a liquid tag: + +{% raw %} +{% highlight c++ linenos %} <br/> code code code <br/> {% endhighlight %} +{% endraw %} + +The keyword `linenos` triggers display of line numbers. +Produces something like this: + +{% highlight c++ linenos %} + +int main(int argc, char const \*argv[]) +{ + string myString; + + cout << "input a string: "; + getline(cin, myString); + int length = myString.length(); + + char charArray = new char * [length]; + + charArray = myString; + for(int i = 0; i < length; ++i){ + cout << charArray[i] << " "; + } + + return 0; +} + +{% endhighlight %} diff --git a/_drafts/2015-10-20-comments.md b/_drafts/2015-10-20-comments.md new file mode 100644 index 0000000..55b900f --- /dev/null +++ b/_drafts/2015-10-20-comments.md @@ -0,0 +1,8 @@ +--- +layout: post +title: a post with comments +date: 2015-10-20 11:59:00-0400 +description: an example of a blog post with comments +comments: true +--- +This post shows how to add DISQUS comments. diff --git a/_drafts/2015-10-20-math.md b/_drafts/2015-10-20-math.md new file mode 100644 index 0000000..803b28a --- /dev/null +++ b/_drafts/2015-10-20-math.md @@ -0,0 +1,25 @@ +--- +layout: post +title: a post with math +date: 2015-10-20 11:12:00-0400 +description: an example of a blog post with some math +--- +This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/){:target="\_blank"} engine. You just need to surround your math expression with `$$`, like `$$ E = mc^2 $$`. If you leave it inside a paragraph, it will produce an inline expression, just like $$ E = mc^2 $$. + +To use display mode, again surround your expression with `$$` and place it as a separate paragraph. Here is an example: + +$$ +\sum_{k=1}^\infty |\langle x, e_k \rangle|^2 \leq \|x\|^2 +$$ + +You can also use `\begin{equation}...\end{equation}` instead of `$$` for display mode math. +MathJax will automatically number equations: + +\begin{equation} +\label{eq:caushy-shwarz} +\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) +\end{equation} + +and by adding `\label{...}` inside the equation environment, we can now refer to the equation using `\eqref`. + +Note that MathJax 3 is [a major re-write of MathJax](https://docs.mathjax.org/en/latest/upgrading/whats-new-3.0.html){:target="\_blank"} that brought a significant improvement to the loading and rendering speed, which is now [on par with KaTeX](http://www.intmath.com/cg5/katex-mathjax-comparison.php){:target="\_blank"}. diff --git a/_drafts/2018-12-22-distill.md b/_drafts/2018-12-22-distill.md new file mode 100644 index 0000000..9e7efd4 --- /dev/null +++ b/_drafts/2018-12-22-distill.md @@ -0,0 +1,275 @@ +--- +layout: distill +title: a distill-style blog post +description: an example of a distill-style blog post and main elements +date: 2021-05-22 + +authors: + - name: Albert Einstein + url: "https://en.wikipedia.org/wiki/Albert_Einstein" + affiliations: + name: IAS, Princeton + - name: Boris Podolsky + url: "https://en.wikipedia.org/wiki/Boris_Podolsky" + affiliations: + name: IAS, Princeton + - name: Nathan Rosen + url: "https://en.wikipedia.org/wiki/Nathan_Rosen" + affiliations: + name: IAS, Princeton + +bibliography: 2018-12-22-distill.bib + +# Below is an example of injecting additional post-specific styles. +# If you use this post as a template, delete this _styles block. +_styles: > + .fake-img { + background: #bbb; + border: 1px solid rgba(0, 0, 0, 0.1); + box-shadow: 0 0px 4px rgba(0, 0, 0, 0.1); + margin-bottom: 12px; + } + .fake-img p { + font-family: monospace; + color: white; + text-align: left; + margin: 12px 0; + text-align: center; + font-size: 16px; + } + +--- + +**NOTE:** +Citations, footnotes, and code blocks do not display correctly in the dark mode since distill does not support the dark mode by default. +If you are interested in correctly adding dark mode support for distill, please open [a discussion](https://github.com/alshedivat/al-folio/discussions) and let us know. + + +## Equations + +This theme supports rendering beautiful math in inline and display modes using [MathJax 3](https://www.mathjax.org/){:target="\_blank"} engine. +You just need to surround your math expression with `$$`, like `$$ E = mc^2 $$`. +If you leave it inside a paragraph, it will produce an inline expression, just like $$ E = mc^2 $$. + +To use display mode, again surround your expression with `$$` and place it as a separate paragraph. +Here is an example: + +$$ +\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) +$$ + +Note that MathJax 3 is [a major re-write of MathJax](https://docs.mathjax.org/en/latest/upgrading/whats-new-3.0.html){:target="\_blank"} that brought a significant improvement to the loading and rendering speed, which is now [on par with KaTeX](http://www.intmath.com/cg5/katex-mathjax-comparison.php){:target="\_blank"}. + + +*** + +## Citations + +Citations are then used in the article body with the `<d-cite>` tag. +The key attribute is a reference to the id provided in the bibliography. +The key attribute can take multiple ids, separated by commas. + +The citation is presented inline like this: <d-cite key="gregor2015draw"></d-cite> (a number that displays more information on hover). +If you have an appendix, a bibliography is automatically created and populated in it. + +Distill chose a numerical inline citation style to improve readability of citation dense articles and because many of the benefits of longer citations are obviated by displaying more information on hover. +However, we consider it good style to mention author last names if you discuss something at length and it fits into the flow well — the authors are human and it’s nice for them to have the community associate them with their work. + +*** + +## Footnotes + +Just wrap the text you would like to show up in a footnote in a `<d-footnote>` tag. +The number of the footnote will be automatically generated.<d-footnote>This will become a hoverable footnote.</d-footnote> + +*** + +## Code Blocks + +Syntax highlighting is provided within `<d-code>` tags. +An example of inline code snippets: `<d-code language="html">let x = 10;</d-code>`. +For larger blocks of code, add a `block` attribute: + +<d-code block language="javascript"> + var x = 25; + function(x) { + return x * x; + } +</d-code> + +**Note:** `<d-code>` blocks do not look well in the dark mode. +You can always use the default code-highlight using the `highlight` liquid tag: + +{% highlight javascript %} +var x = 25; +function(x) { + return x * x; +} +{% endhighlight %} + +*** + +## Layouts + +The main text column is referred to as the body. +It is the assumed layout of any direct descendants of the `d-article` element. + +<div class="fake-img l-body"> + <p>.l-body</p> +</div> + +For images you want to display a little larger, try `.l-page`: + +<div class="fake-img l-page"> + <p>.l-page</p> +</div> + +All of these have an outset variant if you want to poke out from the body text a little bit. +For instance: + +<div class="fake-img l-body-outset"> + <p>.l-body-outset</p> +</div> + +<div class="fake-img l-page-outset"> + <p>.l-page-outset</p> +</div> + +Occasionally you’ll want to use the full browser width. +For this, use `.l-screen`. +You can also inset the element a little from the edge of the browser by using the inset variant. + +<div class="fake-img l-screen"> + <p>.l-screen</p> +</div> +<div class="fake-img l-screen-inset"> + <p>.l-screen-inset</p> +</div> + +The final layout is for marginalia, asides, and footnotes. +It does not interrupt the normal flow of `.l-body` sized text except on mobile screen sizes. + +<div class="fake-img l-gutter"> + <p>.l-gutter</p> +</div> + + +Emphasis, aka italics, with *asterisks* or _underscores_. + +Strong emphasis, aka bold, with **asterisks** or __underscores__. + +Combined emphasis with **asterisks and _underscores_**. + +Strikethrough uses two tildes. ~~Scratch this.~~ + +1. First ordered list item +2. Another item +⋅⋅* Unordered sub-list. +1. Actual numbers don't matter, just that it's a number +⋅⋅1. Ordered sub-list +4. And another item. + +⋅⋅⋅You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown). + +⋅⋅⋅To have a line break without a paragraph, you will need to use two trailing spaces.⋅⋅ +⋅⋅⋅Note that this line is separate, but within the same paragraph.⋅⋅ +⋅⋅⋅(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.) + +* Unordered list can use asterisks +- Or minuses ++ Or pluses + +[I'm an inline-style link](https://www.google.com) + +[I'm an inline-style link with title](https://www.google.com "Google's Homepage") + +[I'm a reference-style link][Arbitrary case-insensitive reference text] + +[I'm a relative reference to a repository file](../blob/master/LICENSE) + +[You can use numbers for reference-style link definitions][1] + +Or leave it empty and use the [link text itself]. + +URLs and URLs in angle brackets will automatically get turned into links. +http://www.example.com or <http://www.example.com> and sometimes +example.com (but not on Github, for example). + +Some text to show that the reference links can follow later. + +[arbitrary case-insensitive reference text]: https://www.mozilla.org +[1]: http://slashdot.org +[link text itself]: http://www.reddit.com + +Here's our logo (hover to see the title text): + +Inline-style: +![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1") + +Reference-style: +![alt text][logo] + +[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2" + +Inline `code` has `back-ticks around` it. + +```javascript +var s = "JavaScript syntax highlighting"; +alert(s); +``` + +```python +s = "Python syntax highlighting" +print s +``` + +``` +No language indicated, so no syntax highlighting. +But let's throw in a <b>tag</b>. +``` + +Colons can be used to align columns. + +| Tables | Are | Cool | +| ------------- |:-------------:| -----:| +| col 3 is | right-aligned | $1600 | +| col 2 is | centered | $12 | +| zebra stripes | are neat | $1 | + +There must be at least 3 dashes separating each header cell. +The outer pipes (|) are optional, and you don't need to make the +raw Markdown line up prettily. You can also use inline Markdown. + +Markdown | Less | Pretty +--- | --- | --- +*Still* | `renders` | **nicely** +1 | 2 | 3 + +> Blockquotes are very handy in email to emulate reply text. +> This line is part of the same quote. + +Quote break. + +> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote. + + +Three or more... + +--- + +Hyphens + +*** + +Asterisks + +___ + +Underscores + +Here's a line for us to start with. + +This line is separated from the one above by two newlines, so it will be a *separate paragraph*. + +This line is also a separate paragraph, but... +This line is only separated by a single newline, so it's a separate line in the *same paragraph*.
\ No newline at end of file diff --git a/_drafts/2020-09-28-github-metadata.md b/_drafts/2020-09-28-github-metadata.md new file mode 100644 index 0000000..02c5072 --- /dev/null +++ b/_drafts/2020-09-28-github-metadata.md @@ -0,0 +1,34 @@ +---
+layout: post
+title: a post with github metadata
+date: 2020-09-28 21:01:00
+description: a quick run down on accessing github metadata.
+---
+
+A sample blog page that demonstrates the accessing of github meta data.
+
+## What does Github-MetaData do?
+* Propagates the site.github namespace with repository metadata
+* Setting site variables :
+ * site.title
+ * site.description
+ * site.url
+ * site.baseurl
+* Accessing the metadata - duh.
+* Generating edittable links.
+
+## Additional Reading
+* If you're recieving incorrect/missing data, you may need to perform a Github API<a href="https://github.com/jekyll/github-metadata/blob/master/docs/authentication.md"> authentication</a>.
+* Go through this <a href="https://jekyll.github.io/github-metadata/" target="blank">README</a> for more details on the topic.
+* <a href= "https://github.com/jekyll/github-metadata/blob/master/docs/site.github.md">This page</a> highlights all the feilds you can access with github-metadata.
+<br />
+
+## Example MetaData
+* Host Name : {{ site.github.hostname }}
+* URL : {{ site.github.url }}
+* BaseURL : {{ site.github.baseurl }}
+* Archived : {{ site.github.archived}}
+* Contributors :
+{% for contributor in site.github.contributors %}
+ * {{ contributor.login }}
+{% endfor %}
\ No newline at end of file diff --git a/_drafts/2020-09-28-twitter.md b/_drafts/2020-09-28-twitter.md new file mode 100644 index 0000000..edba12e --- /dev/null +++ b/_drafts/2020-09-28-twitter.md @@ -0,0 +1,18 @@ +---
+layout: post
+title: a post with twitter
+date: 2020-09-28 11:12:00-0400
+description: an example of a blog post with twitter
+---
+A sample blog page that demonstrates the inclusion of Tweets/Timelines/etc.
+
+# Tweet
+An example of displaying a tweet:
+{% twitter https://twitter.com/rubygems/status/518821243320287232 %}
+
+# Timeline
+An example of pulling from a timeline:
+{% twitter https://twitter.com/jekyllrb maxwidth=500 limit=3 %}
+
+# Additional Details
+For more details on using the plugin visit: [jekyll-twitter-plugin](https://github.com/rob-murray/jekyll-twitter-plugin){:target="\_blank"}
|