Skip to content

Commit

Permalink
add grammar cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
coolya committed Apr 26, 2021
1 parent fb4b4fd commit 58ecb2b
Show file tree
Hide file tree
Showing 12 changed files with 169 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title = "Heavy Meta TV"

# Hero section (from here on is for icon theme)
[params.hero]
img = "images/hero.jpg"
img = "/images/hero.jpg"
title = "Tutorials for JetBrains Meta Programming System (MPS)"
description = "Comprehensive tutorials and information about how to build and design your languages."

Expand Down
8 changes: 8 additions & 0 deletions content/grammar-cookies/0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title : "What's in the Jar?"
video : "Ell9uPVREgc"
type: "cookie"
date: "2021-04-19"

---

7 changes: 7 additions & 0 deletions content/grammar-cookies/1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title : "Wrap Cell"
video : "UXXlX9B7LjE"
type: "cookie"
date: "2021-04-26"

---
11 changes: 11 additions & 0 deletions content/grammar-cookies/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title : "Grammar Cookies"
date: 2019-05-14T14:46:10+06:00
inMenu: true
type: grammar-cookies

---

Grammar Cookies is series of short tutorial videos around Grammar Cells. Grammar Cells is a extension to JetBrains Meta Programming System that makes writing consistent textual editors easy. Each video is around 5 minutes and focuses on one use case of grammar cells. New episodes are released every week.

You can find the code used in the tutorials [here](https://github.com/coolya/grammar-cookies) on Github.
19 changes: 19 additions & 0 deletions layouts/_default/cookie.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<div class="cookies">
<div class="container">
<div class="col-md-6 col-md-offset-3 text-center fh5co-heading">
<h2>{{ .Title}} </h2>
</div>

<div class="col-md-12">
<p>{{ .Content }}</p>
</div>



<div class="col-md-12 text-center">
{{ partial "youtube.html" .}}
</div>

</div>

</div> <!-- END fh5co-services -->
41 changes: 41 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <![endif]-->
<html>
<head>
{{ partial "header.html" . }}
</head>
<body>


<div class="fh5co-page">
<div id="fh5co-container">

{{ partial "nav-pages.html" . }}

<div data-section="mission">
<div class="container">
<div class="col-md-6 col-md-offset-3 text-center fh5co-heading">
<h2> {{.Title}}</h2>
</div>
<div class="col-md-12">
{{.Content}}
</div>
</div>
</div>



{{ if .Site.Params.footer.enable }}
{{ partial "footer.html" .}}
{{ end }}

</div>
</div>

{{ partial "js.html" .}}

</body>
</html>
43 changes: 43 additions & 0 deletions layouts/grammar-cookies/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <![endif]-->
<html>
<head>
{{ partial "header.html" . }}
</head>
<body>


<div class="fh5co-page">
<div id="fh5co-container">

{{ partial "nav-pages.html" . }}

<div data-section="mission">
<div class="container">
<div class="col-md-6 col-md-offset-3 text-center fh5co-heading">
<h2> {{.Title}}</h2>
</div>
<div class="col-md-12">
{{.Content}}
</div>
</div>
</div>

{{ range sort (where .Resources "Type" "cookie") "Date" "asc"}}
{{ .Render "cookie"}}
{{ end }}

{{ if .Site.Params.footer.enable }}
{{ partial "footer.html" .}}
{{ end }}

</div>
</div>

{{ partial "js.html" .}}

</body>
</html>
14 changes: 7 additions & 7 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@
<link rel="manifest" href="/site.webmanifest">

<!-- Animate.css -->
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="/css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<link rel="stylesheet" href="/css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<link rel="stylesheet" href="/css/simple-line-icons.css">
<!-- Magnific Popup -->
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="/css/magnific-popup.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="/css/bootstrap.css">
<!-- Theme style -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/additional.css">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/additional.css">
<script async defer data-domain="heavymeta.tv" src="https://plausible.io/js/plausible.js"></script>
<link rel="dns-prefetch" href="https://www.youtube-nocookie.com">
<link rel="preconnect" href="https://www.youtube-nocookie.com">
Expand Down
18 changes: 18 additions & 0 deletions layouts/partials/js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div class="gototop js-top">
<a href="#" class="js-gotop"><i class="icon-arrow-up"></i></a>
</div>
<!-- jQuery -->
<script src="/js/jquery.min.js"></script>
<!-- jQuery Easing -->
<script src="/js/jquery.easing.1.3.js"></script>
<!-- Bootstrap -->
<script src="/js/bootstrap.min.js"></script>
<!-- Waypoints -->
<script src="/js/jquery.waypoints.min.js"></script>
<!-- Stellar Parallax -->
<script src="/js/jquery.stellar.min.js"></script>
<!-- Magnific Popup -->
<script src="/js/jquery.magnific-popup.min.js"></script>
<script src="/js/magnific-popup-options.js"></script>
<!-- Main JS -->
<script src="/js/main.js"></script>
10 changes: 10 additions & 0 deletions layouts/partials/nav-pages.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="js-sticky">
<div class="fh5co-main-nav">
<div class="container">
<div class="fh5co-menu-1">
<a href="/" class="external" >{{ with .Site.Params.nav }}{{ if isset . "logo" }}<img src={{ .logo | absURL }} height="20" alt="">{{ end }}{{ if (not (isset . "logo")) }}Home{{ end }}{{ end }}</a>
<a href="/grammar-cookies" class="external">Grammar Cookies</a>
</div>
</div>
</div>
</div>
3 changes: 3 additions & 0 deletions layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<a href="#" data-nav-section="episodes-{{.Params.id}}">{{ .Params.id | markdownify }}</a>
{{ end }}

<a href="/grammar-cookies" class="external">Grammar Cookies</a>



{{ if .Site.Params.services.enable }}
<a href="#" data-nav-section="services">{{ with .Site.Params.nav.services }}{{ . | markdownify }}{{ end }}</a>
Expand Down
1 change: 1 addition & 0 deletions static/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/grammarcookies /grammar-cookies

0 comments on commit 58ecb2b

Please sign in to comment.