-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8f46232
Showing
69 changed files
with
13,574 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build and deploy Jekyll site to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
github-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.2.2' # Not needed with a .ruby-version file | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- uses: helaili/jekyll-action@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
jekyll_build_options: "--config _config.yml,_config_base.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
_site | ||
.sass-cache | ||
.jekyll-metadata | ||
node_modules | ||
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<style type="text/css" media="screen"> | ||
.container { | ||
margin: 10px auto; | ||
max-width: 600px; | ||
text-align: center; | ||
} | ||
h1 { | ||
margin: 30px 0; | ||
font-size: 4em; | ||
line-height: 1; | ||
letter-spacing: -1px; | ||
} | ||
</style> | ||
|
||
<div class="container"> | ||
<h1>404</h1> | ||
|
||
<p><strong>Page not found :(</strong></p> | ||
<p>The requested page could not be found.</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
source "https://rubygems.org" | ||
ruby RUBY_VERSION | ||
|
||
# Hello! This is where you manage which Jekyll version is used to run. | ||
# When you want to use a different version, change it below, save the | ||
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: | ||
# | ||
# bundle exec jekyll serve | ||
# | ||
|
||
# If you have any plugins, put them here! | ||
gem 'wdm', '>= 0.1.0' if Gem.win_platform? | ||
group :jekyll_plugins do | ||
gem 'jekyll-feed' | ||
gem 'jekyll-sitemap' | ||
gem 'jekyll-paginate' | ||
gem 'jekyll-seo-tag' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Magicblock blog | ||
|
||
Magicblock uses as blog the following Jekyll Theme by Mundana by WowThemes.net | ||
|
||
## Jekyll Theme - Mundana by WowThemes.net | ||
|
||
[Live Demo](https://wowthemesnet.github.io/mundana-theme-jekyll/) | | ||
[Download](https://github.com/wowthemesnet/mundana-theme-jekyll/archive/master.zip) | | ||
[Buy me a coffe](https://www.wowthemes.net/donate/) | [Documentation](https://bootstrapstarter.com/mundana-theme-jekyll/) | | ||
[WordPress version](https://www.wowthemes.net/themes/mundana-wordpress/) | ||
|
||
![mundana jekyll theme screenshot](assets/images/screenshot.jpg) | ||
|
||
### Documentation | ||
|
||
[How to install & use](https://bootstrapstarter.com/bootstrap-templates/mundana-theme-jekyll/) | ||
|
||
### Contribute to Mundana repository | ||
|
||
1. In the top-right corner of this page, click **Fork**. | ||
|
||
2. Clone a copy of your fork on your local, replacing *YOUR-USERNAME* with your Github username. | ||
|
||
`git clone https://github.com/YOUR-USERNAME/mundana-theme-jekyll.git` | ||
|
||
3. **Create a branch**: | ||
|
||
`git checkout -b <my-new-feature-or-fix>` | ||
|
||
4. **Make necessary changes and commit those changes**: | ||
|
||
`git add .` | ||
|
||
`git commit -m "new feature or fix"` | ||
|
||
5. **Push changes**, replacing `<add-your-branch-name>` with the name of the branch you created earlier at step #3. : | ||
|
||
`git push origin <add-your-branch-name>` | ||
|
||
6. Submit your changes for review. Go to your repository on GitHub, you'll see a **Compare & pull request** button. Click on that button. Now submit the pull request. | ||
|
||
That's it! Soon I'll be merging your changes into the master branch of this project. You will get a notification email once the changes have been merged. Thank you for your contribution. | ||
|
||
|
||
### Copyright | ||
|
||
Copyright (C) 2019 WowThemes.net. | ||
|
||
Theme designed and developed by [Sal](https://www.wowthemes.net), *free* under MIT license. | ||
|
||
<a href="https://www.wowthemes.net/donate/" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a> | ||
|
||
### Live Demo | ||
|
||
[Live Demo](https://wowthemesnet.github.io/mundana-theme-jekyll/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Site | ||
name: 'Magicblock' | ||
description: 'The Framework for on-chain games on Solana/SVM' | ||
logo: 'assets/images/magicblock_black.png' | ||
favicon: 'assets/images/favicon.ico' | ||
baseurl: '' | ||
email: 'dev@magicblock.gg' | ||
mailchimp-list: 'https://wowthemes.us11.list-manage.com/subscribe/post?u=8aeb20a530e124561927d3bd8&id=8c3d2d214b' | ||
|
||
include: ["_pages"] | ||
permalink: /:title/ | ||
|
||
# Plugins | ||
plugins: | ||
- jekyll-feed | ||
- jekyll-sitemap | ||
- jekyll-paginate | ||
- jekyll-seo-tag | ||
|
||
authors: | ||
sal: | ||
name: Magicblock | ||
site: https://www.magicblock.gg | ||
avatar: /assets/images/avatar1.png | ||
bio: "" | ||
email: "" | ||
twitter: https://twitter.com/magicblock | ||
|
||
|
||
# Defaults | ||
defaults: | ||
|
||
# all posts | ||
- scope: | ||
path: "_posts" | ||
values: | ||
layout: post | ||
author: sal | ||
avatar: /assets/images/avatar1.jpg | ||
|
||
# all pages | ||
- scope: | ||
path: "_pages" | ||
values: | ||
layout: page | ||
|
||
# Syntax | ||
markdown: kramdown | ||
highlighter: rouge | ||
|
||
# Paginate | ||
paginate: 10 | ||
|
||
|
||
|
||
# Exclude metadata and development time dependencies (like Grunt plugins) | ||
exclude: [README.markdown, package.json, grunt.js, Gruntfile.js, Gruntfile.coffee, node_modules] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
baseurl: "" | ||
url: "https://blog.magicblock.gg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- Don't edit anything here. Set your disqus id in _config.yml --> | ||
|
||
<!-- <div id="comments" class="mt-5"> | ||
<div id="disqus_thread"> | ||
</div> | ||
<script type="text/javascript"> | ||
var disqus_shortname = '{{site.disqus}}'; | ||
var disqus_developer = 0; | ||
(function() { | ||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
dsq.src = window.location.protocol + '//' + disqus_shortname + '.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
</script> | ||
<noscript> | ||
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a> | ||
</noscript> | ||
</div> --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div class="mb-5 d-flex justify-content-between main-loop-card"> | ||
<div class="pr-3"> | ||
<h2 class="mb-1 h4 font-weight-bold"> | ||
<a class="text-dark" href="{{site.baseurl}}{{post.url}}">{{ post.title }}</a> | ||
</h2> | ||
<p class="excerpt"> | ||
{{ post.excerpt | strip_html | strip_newlines | truncate: 186}} | ||
</p> | ||
<small class="d-block text-muted"> | ||
In <span class="catlist"> | ||
{% for category in post.categories %} | ||
<a class="text-capitalize text-muted smoothscroll" href="{{site.baseurl}}/categories.html#{{ category | downcase }}">{{ category }}</a><span class="sep">, </span> | ||
{% endfor %} | ||
</span> | ||
</small> | ||
<small class="text-muted"> | ||
{{ post.date | date: '%b %d, %Y' }} | ||
</small> | ||
</div> | ||
{% if post.image %} | ||
<div class="col-md-3 pr-0 text-right"> | ||
<a href="{{site.baseurl}}{{post.url}}"> | ||
<img class="w-100" src="{% if post.image contains "://" %}{{ post.image }}{% else %}{{ site.baseurl }}/{{ post.image }}{% endif %}" alt="{{ post.title }}"> | ||
</a> | ||
</div> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!-- Replace menu links here --> | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link" href="{{site.baseurl}}/index.html">Home</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{{site.baseurl}}/categories.html">Categories</a> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<span class="reading-time"> | ||
{% assign words = content | number_of_words %} | ||
{% if words < 360 %} | ||
1 min read | ||
{% else %} | ||
{{ words | divided_by:180 }} mins read | ||
{% endif %} | ||
</span> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<script src="{{site.baseurl}}/assets/js/lunr.js"></script> | ||
|
||
<script> | ||
$(function() { | ||
$("#lunrsearchresults").on('click', '#btnx', function () { | ||
$('#lunrsearchresults').hide( 1000 ); | ||
$( "body" ).removeClass( "modal-open" ); | ||
}); | ||
}); | ||
|
||
{% assign counter = 0 %} | ||
var documents = [{% for page in site.pages %}{% if page.url contains '.xml' or page.url contains 'assets' %}{% else %}{ | ||
"id": {{ counter }}, | ||
"url": "{{ site.url }}{{site.baseurl}}{{ page.url }}", | ||
"title": "{{ page.title }}", | ||
"body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %} | ||
}, {% endif %}{% endfor %}{% for page in site.without-plugin %}{ | ||
"id": {{ counter }}, | ||
"url": "{{ site.url }}{{site.baseurl}}{{ page.url }}", | ||
"title": "{{ page.title }}", | ||
"body": "{{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %} | ||
}, {% endfor %}{% for page in site.posts %}{ | ||
"id": {{ counter }}, | ||
"url": "{{ site.url }}{{site.baseurl}}{{ page.url }}", | ||
"title": "{{ page.title }}", | ||
"body": "{{ page.date | date: "%Y/%m/%d" }} - {{ page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | replace: '</p>', ' ' | strip_html | strip_newlines | replace: ' ', ' ' | replace: '"', ' ' }}"{% assign counter = counter | plus: 1 %} | ||
}{% if forloop.last %}{% else %}, {% endif %}{% endfor %}]; | ||
var idx = lunr(function () { | ||
this.ref('id') | ||
this.field('title') | ||
this.field('body') | ||
documents.forEach(function (doc) { | ||
this.add(doc) | ||
}, this) | ||
}); | ||
function lunr_search(term) { | ||
$('#lunrsearchresults').show( 1000 ); | ||
$( "body" ).addClass( "modal-open" ); | ||
document.getElementById('lunrsearchresults').innerHTML = '<div id="resultsmodal" class="modal fade show d-block" tabindex="-1" role="dialog" aria-labelledby="resultsmodal"> <div class="modal-dialog shadow-lg" role="document"> <div class="modal-content"> <div class="modal-header" id="modtit"> <button type="button" class="close" id="btnx" data-dismiss="modal" aria-label="Close"> × </button> </div> <div class="modal-body"> <ul class="mb-0"> </ul> </div> <div class="modal-footer"><button id="btnx" type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">Close</button></div></div> </div></div>'; | ||
if(term) { | ||
document.getElementById('modtit').innerHTML = "<h5 class='modal-title'>Search results for '" + term + "'</h5>" + document.getElementById('modtit').innerHTML; | ||
//put results on the screen. | ||
var results = idx.search(term); | ||
if(results.length>0){ | ||
//console.log(idx.search(term)); | ||
//if results | ||
for (var i = 0; i < results.length; i++) { | ||
// more statements | ||
var ref = results[i]['ref']; | ||
var url = documents[ref]['url']; | ||
var title = documents[ref]['title']; | ||
var body = documents[ref]['body'].substring(0,160)+'...'; | ||
document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML + "<li class='lunrsearchresult'><a href='" + url + "'><span class='title'>" + title + "</span><br /><small><span class='body'>"+ body +"</span><br /><span class='url'>"+ url +"</span></small></a></li>"; | ||
} | ||
} else { | ||
document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = "<li class='lunrsearchresult'>Sorry, no results found. Close & try a different search!</li>"; | ||
} | ||
} | ||
return false; | ||
} | ||
</script> | ||
<style> | ||
.lunrsearchresult .title {color: #d9230f;} | ||
.lunrsearchresult .url {color: silver;} | ||
.lunrsearchresult a {display: block; color: #777;} | ||
.lunrsearchresult a:hover, .lunrsearchresult a:focus {text-decoration: none;} | ||
.lunrsearchresult a:hover .title {text-decoration: underline;} | ||
</style> | ||
|
||
|
||
|
||
|
||
<form class="bd-search hidden-sm-down" onSubmit="return lunr_search(document.getElementById('lunrsearch').value);"> | ||
<input type="text" class="form-control text-small" id="lunrsearch" name="q" value="" placeholder="Type keyword and enter..."> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="sticky-top sticky-top-offset"> | ||
<h4 class="font-weight-bold spanborder"><span>Featured</span></h4> | ||
<ol class="list-featured"> | ||
{% for post in site.tags.featured %} | ||
<li class="mb-4"> | ||
<span> | ||
<h6 class="font-weight-bold"> | ||
<a href="{{site.baseurl}}{{ post.url }}" class="text-dark">{{ post.title }}</a> | ||
</h6> | ||
<span class="d-block text-muted"> | ||
In <span class="catlist"> | ||
{% for category in post.categories %} | ||
<a class="text-capitalize text-muted smoothscroll" href="{{site.baseurl}}/categories.html#{{ category | downcase }}">{{ category }}</a><span class="sep">, </span> | ||
{% endfor %} | ||
</span> | ||
</span> | ||
</span> | ||
</li> | ||
{% endfor %} | ||
</ol> | ||
</div> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- All this area goes before </body> closing tag --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- This goes before </head> closing tag, Google Analytics can be placed here --> |
Oops, something went wrong.