Skip to content

Commit

Permalink
chore: Initial blog setup
Browse files Browse the repository at this point in the history
  • Loading branch information
delisma committed Apr 18, 2021
1 parent a1ad681 commit f17d9ec
Show file tree
Hide file tree
Showing 18 changed files with 495 additions and 152 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ Icon
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
.apdisk

# Jekyll
.jekyll-cache
_site
vendor
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "jekyll-remote-theme", github: "benbalter/jekyll-remote-theme", branch: "master"
79 changes: 79 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
GIT
remote: https://github.com/benbalter/jekyll-remote-theme.git
revision: 272af47fce13f823d25f9896929d1251393aafd8
branch: master
specs:
jekyll-remote-theme (0.4.3)
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
rubyzip (>= 1.3.0, < 3.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.8)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.15.0)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
jekyll (4.2.0)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.3.1)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.5.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.0)
rubyzip (2.3.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.7.0)

PLATFORMS
universal-darwin-20

DEPENDENCIES
jekyll-remote-theme!

BUNDLED WITH
2.2.15
37 changes: 37 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

# Site settings
urlalt:
en: https://blog.tbs.alpha.canada.ca
fr: https://blogue.tbs.alpha.canada.ca

# Files excluded from Jekyll builds
exclude:
- .editorconfig
- .jekyll-cache
- .gitignore
- .github
- "*.gpg"
- "*.tmp"
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- CNAME
- gcweb-jekyll.gemspec
- Gemfile
- Gemfile.lock
- LICENSE*
- node_modules
- screenshot.png
- SECURITY.md
- README.md
- vendor/*

# Jekyll settings
markdown: kramdown
plugins:
- jekyll-remote-theme
remote_theme: wet-boew/gcweb-jekyll
title: Canada.ca Blog
collections:
pages:
output: true
permalink: /:path
11 changes: 11 additions & 0 deletions _includes/language/inc-languagetoggle.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<section id="wb-lng" class="col-xs-3 col-sm-12 pull-right text-right">
<h2 class="wb-inv">{{ i18nText-language }}</h2>
<ul class="list-inline mrgn-bttm-0">
<li>
<a lang="{{ i18nText-altLang }}" hreflang="{{ i18nText-altLang }}" href="{{ site.urlalt[ i18nText-altLang ] }}{{ page.altLangPage }}">
<span class="hidden-xs">{{ i18nText-altLanguage }}</span>
<abbr title="{{ i18nText-altLanguage }}" class="visible-xs h3 mrgn-tp-sm mrgn-bttm-0 text-uppercase">{{ i18nText-altLang }}</abbr>
</a>
</li>
</ul>
</section>
19 changes: 19 additions & 0 deletions _pages/en/another-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
altLangPage: /autre-page
dateModified: 2020-01-08
description:
en: This is just another page
footer: true
langtoggle: true
lang: en
noMainContainer: false
sitemenu: true
sitesearch: true
title: Another page
---

## Welcome to another page

_yay_

[back](./)
135 changes: 135 additions & 0 deletions _pages/en/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
---
altLangPage: /index
authorName: Service Canada
contentTitle: Test page - Canada.ca
dateModified: 2020-01-10
description:
en: "Get quick, easy access to all Government of Canada services and information."
fr: "Accédez rapidement et facilement à tous les services et renseignements du gouvernement du Canada."
lang: en
layout: default
noContentTitle: true
pageclass: wb-prettify all-pre
subject:
en: [GV Government and Politics, Government services]
fr: [GV Gouvernement et vie politique, Services gouvernementaux]
title: Test page - Canada.ca
---

This is a normal paragraph following a header. GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.

Text can be **bold**, _italic_, or ~~strikethrough~~.

[Link to another page](./another-page.html).

There should be whitespace between paragraphs.

There should be whitespace between paragraphs. We recommend including a README, or a file with information about your project.

## Header 2

> This is a blockquote following a header.
>
> When something is important enough, you do it even if the odds are not in your favor.
### Header 3

```js
// Javascript code with syntax highlighting.
var fun = function lang(l) {
dateformat.i18n = require('./lang/' + l)
return true;
}
```

```ruby
# Ruby code with syntax highlighting
GitHubPages::Dependencies.gems.each do |gem, version|
s.add_dependency(gem, "= #{version}")
end
```

#### Header 4

* This is an unordered list following a header.
* This is an unordered list following a header.
* This is an unordered list following a header.

##### Header 5

1. This is an ordered list following a header.
2. This is an ordered list following a header.
3. This is an ordered list following a header.

###### Header 6

| head1 | head two | three |
|:-------------|:------------------|:------|
| ok | good swedish fish | nice |
| out of stock | good and plenty | nice |
| ok | good `oreos` | hmm |
| ok | good `zoute` drop | yumm |

### There's a horizontal rule below this.

* * *

### Here is an unordered list:

* Item foo
* Item bar
* Item baz
* Item zip

### And an ordered list:

1. Item one
1. Item two
1. Item three
1. Item four

### And a nested list:

- level 1 item
- level 2 item
- level 2 item
- level 3 item
- level 3 item
- level 1 item
- level 2 item
- level 2 item
- level 2 item
- level 1 item
- level 2 item
- level 2 item
- level 1 item

### Small image

![Octocat](https://github.githubassets.com/images/icons/emoji/octocat.png)

### Large image

![Branching](https://guides.github.com/activities/hello-world/branching.png){: .img-responsive}


### Definition lists can be used with HTML syntax.

<dl>
<dt>Name</dt>
<dd>Godzilla</dd>
<dt>Born</dt>
<dd>1952</dd>
<dt>Birthplace</dt>
<dd>Japan</dd>
<dt>Color</dt>
<dd>Green</dd>
</dl>

```
Long, single-line code blocks should not wrap. They should horizontally scroll if they are too long. This line should be long enough to demonstrate this.
```

```
The final element.
```
19 changes: 19 additions & 0 deletions _pages/fr/autre-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
altLangPage: /another-page
dateModified: 2020-01-08
description:
fr: Ceci est juste une autre page
footer: true
langtoggle: true
lang: fr
noMainContainer: false
sitemenu: true
sitesearch: true
title: Autre page
---

## Bienvenue sur une autre page

__

[retour](./)
Loading

0 comments on commit f17d9ec

Please sign in to comment.