Skip to content

Commit 92b2e1f

Browse files
committed
feat: Update pages
1 parent 7794c24 commit 92b2e1f

File tree

5 files changed

+42
-24
lines changed

5 files changed

+42
-24
lines changed

cheatsheets/jekyll/code-blocks/basics.md

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
---
2-
title: Basics
32
description: Backticks vs highlight tag
4-
render_with_liquid: false
53
---
4+
# Basics
65

76
## Markdown code blocks
87

98
This works in Jekyll and plain markdown too.
109

1110
Code:
1211

13-
{% highlight markdown %}
14-
```ruby
15-
def foo
16-
puts 'foo'
17-
end
18-
```
19-
{% endhighlight %}
12+
```ruby
13+
def foo
14+
puts 'foo'
15+
end
16+
```
2017

2118
Result:
2219

@@ -75,7 +72,28 @@ def foo
7572
end
7673
{% endhighlight %}
7774

78-
Unfortunately this renders poorly in Minima as it becomes a table - the width must be reduced to not be 100% and there are borders must be removed.
75+
Unfortunately this renders poorly in Minima as it becomes a table - the width must be reduced to not be 100% and there are borders must be removed:
76+
77+
Code:
78+
79+
```html
80+
<style>
81+
.rouge-table {
82+
width: initial;
83+
}
84+
table {
85+
border: none;
86+
}
87+
table td {
88+
border: none;
89+
}
90+
td pre {
91+
border: none;
92+
}
93+
</style>
94+
```
95+
96+
<!-- Hidden on frontend -->
7997

8098
<style>
8199
.rouge-table {

cheatsheets/jekyll/plugins/standard.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
2-
title: Standard plugins
32
description: How to add common plugins to your site
4-
render_with_liquid: false # Jekyll 4 only
53
---
4+
# Standard plugins
65

76
{% raw %}
87
These are useful to add for most sites and work on GH Pages.
@@ -25,7 +24,7 @@ These are useful to add for most sites and work on GH Pages.
2524
- > The plugin will automatically generate an Atom feed at /feed.xml.
2625
- Produce an feed of posts.
2726
- If you don't have a `_posts` directory, this won't be useful for you.
28-
- But useful for consumers of your blog add to their reader tools.
27+
- But useful for consumers of your blog add to their reader tools.
2928
- This uses _Atom_ and not _RSS_, which is explained why in the docs.
3029
- Follow the docs to configure.
3130
- After installing, add to your `head` HTML tag such as in `_layouts/default.html`.
@@ -35,11 +34,11 @@ These are useful to add for most sites and work on GH Pages.
3534

3635
Sample:
3736

38-
- `index.html`
37+
- `index.html`
3938
- The reason for the metadata is to generate a tag like this from [/michaelcurrin.github.io/jekyll-blog-demo](https://michaelcurrin.github.io/jekyll-blog-demo/).
4039
```html
41-
<link type="application/atom+xml" rel="alternate"
42-
href="https://michaelcurrin.github.io/jekyll-blog-demo/feed.xml"
40+
<link type="application/atom+xml" rel="alternate"
41+
href="https://michaelcurrin.github.io/jekyll-blog-demo/feed.xml"
4342
title="Jekyll Blog Demo" />
4443
```
4544
- `feed.xml`
@@ -88,11 +87,11 @@ Sample:
8887
<meta property="og:locale" content="en_US" />
8988
<meta name="description" content="A collection of code snippets and CLI guides for quick and easy reference while coding" />
9089
<meta property="og:description" content="A collection of code snippets and CLI guides for quick and easy reference while coding" />
91-
90+
9291
<link rel="canonical" href="https://michaelcurrin.github.io/dev-cheatsheets/" />
9392
<meta property="og:url" content="https://michaelcurrin.github.io/dev-cheatsheets/" />
9493
<meta property="og:site_name" content="Dev Cheatsheets" />
95-
94+
9695
<script type="application/ld+json">
9796
{
9897
"description": "A collection of code snippets and CLI guides for quick and easy reference while coding",

cheatsheets/jekyll/whitespace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Whitespace
32
render_with_liquid: false
43
---
4+
# Whitespace
55

66
## Variable
77

cheatsheets/markdown/html.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
---
2-
title: HTML
3-
render_with_liquid: false
4-
---
1+
# HTML
2+
3+
{% raw %}
54

65
> How to add HTML tags to your markdown files
76
@@ -194,3 +193,5 @@ Or use ensure every line starts with an opening tag.
194193
<p>C</p>
195194
<p>D</p>
196195
</div>
196+
197+
{% endraw %}

cheatsheets/vscode-extensions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: VS Code Extensions
32
description: From how to develop an extension all the way to publishing it
43
layout: listing
54
logo: visualstudiocode
65
---
6+
# VS Code Extensions
77

88
If you are new to developing an extension, see one of the _Beginner_ links in the Resources section.
99

0 commit comments

Comments
 (0)