Skip to content

Commit e188dfd

Browse files
author
Michael Atambo
committed
test push
1 parent 00e1bc8 commit e188dfd

File tree

104 files changed

+4262
-184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+4262
-184
lines changed

mmg_website/404.html

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
11
---
2-
permalink: /404.html
3-
layout: default
2+
layout: 404
43
---
5-
6-
<style type="text/css" media="screen">
7-
.container {
8-
margin: 10px auto;
9-
max-width: 600px;
10-
text-align: center;
11-
}
12-
h1 {
13-
margin: 30px 0;
14-
font-size: 4em;
15-
line-height: 1;
16-
letter-spacing: -1px;
17-
}
18-
</style>
19-
20-
<div class="container">
21-
<h1>404</h1>
22-
23-
<p><strong>Page not found :(</strong></p>
24-
<p>The requested page could not be found.</p>
25-
</div>

mmg_website/Gemfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ source "https://rubygems.org"
1010
gem "jekyll", "~> 4.3.4"
1111
# This is the default theme for new Jekyll sites. You may change this to anything you like.
1212
# gem "minima", "~> 2.5"
13-
gem "jekyll-theme-yat"
13+
#gem "jekyll-theme-yat"
14+
15+
gem "jekyll-remote-theme", group: :jekyll_plugins
1416
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
1517
# uncomment the line below. To upgrade, run `bundle update github-pages`.
1618
# gem "github-pages", group: :jekyll_plugins
1719
# If you have any plugins, put them here!
18-
group :jekyll_plugins do
19-
gem "jekyll-feed", "~> 0.12"
20-
end
20+
#group :jekyll_plugins do
21+
# gem "jekyll-feed", "~> 0.12"
22+
#end
2123

2224
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
2325
# and associated library.

mmg_website/_config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,16 @@ url: "" # the base hostname & protocol for your site, e.g. http://example.com
3131

3232
# Build settings
3333
# theme: minima
34-
theme: jekyll-theme-yat
35-
plugins:
36-
- jekyll-feed
34+
#theme: jekyll-theme-yat
35+
#plugins:
36+
# - jekyll-feed
37+
38+
# theme: owner/name --> Don't forget to remove/comment the gem-based theme option
39+
remote_theme: "jeffreytse/jekyll-theme-yat"
3740

41+
# Add the following to activate the plugin
42+
plugins:
43+
- jekyll-remote-theme
3844

3945
# Exclude from processing.
4046
# The following items will not be processed, by default.

mmg_website/_data/defaults.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
home:
2+
heading: "Your awesome heading"
3+
subheading: "Your awesome subheading"
4+
banner: "Your image url"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Translate languages
2+
# langs refer to https://cloud.google.com/translate/docs/languages
3+
4+
- lang: en
5+
img: https://cdn.countryflags.com/thumbs/united-states-of-america/flag-400.png
6+
text: English
7+
8+
- lang: sw
9+
img: https://cdn.countryflags.com/thumbs/kenya/flag-400.png
10+
text: Swahili
11+
12+
- lang: es
13+
img: https://cdn.countryflags.com/thumbs/spain/flag-400.png
14+
text: Spanish
15+
16+
- lang: fr
17+
img: https://cdn.countryflags.com/thumbs/france/flag-400.png
18+
text: French
19+
20+
- lang: zh-CN
21+
img: https://cdn.countryflags.com/thumbs/china/flag-400.png
22+
text: Chinese(Simple)
23+
24+
- lang: ja
25+
img: https://cdn.countryflags.com/thumbs/japan/flag-400.png
26+
text: Japanese
27+
28+
- lang: ko
29+
img: https://cdn.countryflags.com/thumbs/south-korea/flag-400.png
30+
text: Korean
31+
32+
- lang: ru
33+
img: https://cdn.countryflags.com/thumbs/russia/flag-400.png
34+
text: Russian
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% comment %}
2+
Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons:
3+
4+
1. Head over to https://realfavicongenerator.net/ to add your own favicons.
5+
2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet.
6+
{% endcomment %}
7+
8+
<link rel="icon" type="image/png" href="favicon/favicon-96x96.png" sizes="96x96" />
9+
<link rel="icon" type="image/svg+xml" href="favicon/favicon.svg" />
10+
<link rel="shortcut icon" href="/favicon.ico" />
11+
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png" />
12+
<link rel="manifest" href="/site.webmanifest" />
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<div id="click-to-top" class="click-to-top">
2+
<i class="fa fa-arrow-up"></i>
3+
</div>
4+
<script>
5+
(function () {
6+
const clickToTop = document.getElementById('click-to-top');
7+
window.addEventListener('scroll', () => {
8+
if (window.scrollY > 100) {
9+
clickToTop.classList.add('show')
10+
}else {
11+
clickToTop.classList.remove('show')
12+
}
13+
});
14+
clickToTop.addEventListener('click', () => {
15+
window.smoothScrollTo(0);
16+
});
17+
})();
18+
</script>
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/default.min.css">
2+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
3+
<!-- and it's easy to individually load additional languages -->
4+
<script charset="UTF-8"
5+
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/languages/go.min.js"
6+
async></script>
7+
8+
{%- assign name = 'code_badge.enabled' -%}
9+
{%- include functions.html func='get_value' default='true' -%}
10+
{%- assign badge_enabled = return -%}
11+
12+
{%- assign name = 'code_badge.color' -%}
13+
{%- include functions.html func='get_value' default='#fff' -%}
14+
{%- assign badge_color = return -%}
15+
16+
{%- assign name = 'code_badge.background_color' -%}
17+
{%- include functions.html func='get_value' default='#ff4e00' -%}
18+
{%- assign badge_background_color = return -%}
19+
20+
{%- assign name = 'code_badge.text_transform' -%}
21+
{%- include functions.html func='get_value' default='uppercase' -%}
22+
{%- assign badge_text_transform = return -%}
23+
24+
<script>
25+
// Init highlight js
26+
document.addEventListener('DOMContentLoaded', function(event) {
27+
var els = document.querySelectorAll('pre code')
28+
29+
function addLangData(block) {
30+
var outer = block.parentElement.parentElement.parentElement;
31+
var lang = block.getAttribute('data-lang');
32+
for (var i = 0; i < outer.classList.length; i++) {
33+
var cls = outer.classList[i];
34+
if (cls.startsWith('language-')) {
35+
lang = cls;
36+
break;
37+
}
38+
}
39+
if (!lang) {
40+
cls = block.getAttribute('class');
41+
lang = cls ? cls.replace('hljs ', '') : '';
42+
}
43+
if (lang.startsWith('language-')) {
44+
lang = lang.substr(9);
45+
}
46+
block.setAttribute('class', 'hljs ' + lang);
47+
block.parentNode.setAttribute('data-lang', lang);
48+
}
49+
50+
function addBadge(block) {
51+
var enabled = ('{{ badge_enabled }}' || 'true').toLowerCase();
52+
if (enabled == 'true') {
53+
var pre = block.parentElement;
54+
pre.classList.add('badge');
55+
}
56+
}
57+
58+
function handle(block) {
59+
addLangData(block);
60+
addBadge(block)
61+
hljs.highlightBlock(block);
62+
}
63+
64+
for (var i = 0; i < els.length; i++) {
65+
var el = els[i];
66+
handle(el);
67+
}
68+
});
69+
</script>
70+
71+
<style>
72+
/* code language badge */
73+
pre.badge::before {
74+
content: attr(data-lang);
75+
color: {{badge_color}};
76+
background-color: {{badge_background_color}};
77+
padding: 0 .5em;
78+
border-radius: 0 2px;
79+
text-transform: {{badge_text_transform}};
80+
text-align: center;
81+
min-width: 32px;
82+
display: inline-block;
83+
position: absolute;
84+
right: 0;
85+
}
86+
87+
/* fix wrong badge display for firefox browser */
88+
code > table pre::before {
89+
display: none;
90+
}
91+
</style>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div id="disqus_thread"></div>
2+
<script>
3+
var disqus_config = function () {
4+
this.page.url = '{{ page.url | absolute_url }}';
5+
this.page.identifier = '{{ page.url | absolute_url }}';
6+
};
7+
8+
(function() {
9+
var d = document, s = d.createElement('script');
10+
11+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
12+
13+
s.setAttribute('data-timestamp', +new Date());
14+
(d.head || d.body).appendChild(s);
15+
})();
16+
</script>
17+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<div id="gitment_thread"></div>
2+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/default.css"/>
3+
<script src="https://cdn.jsdelivr.net/gh/theme-next/theme-next-gitment@1/gitment.browser.js" async></script>
4+
<script>
5+
var gitment = new Gitment({
6+
id: '{{ page.id }}',
7+
owner: '{{ site.gitment.username }}',
8+
repo: '{{ site.gitment.repo }}',
9+
oauth: {
10+
client_id: '{{ site.gitment.client_id }}',
11+
client_secret: '{{ site.gitment.client_secret }}',
12+
},
13+
});
14+
gitment.render('gitment_thread')
15+
</script>

0 commit comments

Comments
 (0)