Skip to content

Commit

Permalink
Try Cobalt
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymkt committed Aug 27, 2024
1 parent 3cc98e1 commit dd474a1
Show file tree
Hide file tree
Showing 32 changed files with 245 additions and 291 deletions.
26 changes: 26 additions & 0 deletions .github/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Deploy Blog with Cobalt

on:
push:

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Cobalt
run: |
curl -fsSL https://raw.githubusercontent.com/cobalt-org/cobalt/master/install.sh | bash
cobalt --version
- name: Build with Cobalt
run: |
cobalt build
- name: Deploy Blog to GitHub Pages
uses: actions/deploy-pages@v2
with:
github_token: ${{ secrets.GTOKEN }}
folder: HTML
5 changes: 5 additions & 0 deletions Source/_defaults/pages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: default.liquid
---

# {{ page.title }}
7 changes: 7 additions & 0 deletions Source/_defaults/posts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: post.liquid

title: new post...
is_draft: true
---

4 changes: 4 additions & 0 deletions Source/_includes/footer.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
</div>
<script>addfooter();</script>
</body>
</html>
18 changes: 11 additions & 7 deletions wscript includes.txt → Source/_includes/header.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// all head
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="author" content="harry min khant">
<meta name="keywords" content="harry, min, khant, blind, social, visually impaired, computer, pc, mobile, android">
Expand All @@ -8,10 +10,12 @@
<script src="/scripts/all.js"></script>
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>
<script>sett("t");</script>

//navigation
{% if page.published_date -%}
<title>{{ page.title }} - {{ collections.posts.title }}</title>
{%- else -%}
<title>{{ page.title }} - {{ site.title }}</title>
{%- endif %}
</head>
<body>
<script>navstart();</script>

//footer
<script>addfooter();</script>
<div id="mainc">
5 changes: 5 additions & 0 deletions Source/_layouts/default.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% include "header.liquid" %}

{{ page.content }}

{% include "footer.liquid" %}
7 changes: 7 additions & 0 deletions Source/_layouts/post.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% include "header.liquid" %}
<h1>{{ page.title }}</h1>
<p>Published on: {{ page.date: "%A, %B %d %Y" }} </p>

{{ page.content }}

{% include "footer.liquid" %}
12 changes: 12 additions & 0 deletions Source/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: default.liquid
title: About
permalink: /about
---
# About me

<script>
document.write("<p>Greetings! I am "+calculate_age(new Date(2006, 6, 26))+" years old, my name is <b id=\"myname\">"+ownername+"</b>, a technology enthusiast from Myanmar who finds immense joy in the world of research. As someone who has been blind since birth, I have learned to navigate and appreciate the wonders of technology and research through alternative senses. Alongside my love for technology, I am also deeply passionate about music and audio production, where I can express myself creatively.</p>");
</script>

My journey is all about embracing the possibilities, breaking barriers, and connecting with others who share similar interests. Together, we can explore the realms of technology, music, and research while making a positive impact on the world around us. If you're intrigued or want to collaborate, feel free to reach out. Let's embark on this exciting journey together!
16 changes: 16 additions & 0 deletions Source/accessibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: default.liquid
title: Accessibility
permalink: /accessibility
---

# Accessibility
I use the structure of the site clean and accessible as possible, especially with the visually impaired people. As I am a blind people, I implemented the accessibility of the site to be fully and responsive.

## Headings
You can use Headings to navigate around each section. For example, each game is listed on each Heading at my Projects page.

## Unability
I am unable to process the colour designs for the site, look and appearances are also included. This is because I can't see the colour, look and appearances do to the blindness.

Therefore, although I have implemented CSS styles as possible, the look and appearances may not be accurate in some parts.
21 changes: 21 additions & 0 deletions Source/community.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
layout: default.liquid
title: Community
permalink: /community
---

# Useful communities</h1>
This is a list of useful and helpful communities. |Have a look!

## My own communities
This is the list that are all owned by me

### Inclusive Audio Lab
<a href="https://t.me/inaudiolab" target="_blank">Join on Telegram (Opens in a new tab)</a>

This channel shares audio Plugins and Softwares and primarily focused on accessibility.

### The World Of People
<a href="https://t.me/pworldmbh" target="_blank">Join on Telegram (Opens in a new tab)</a>

This is a chatting group, with over 160 active members. You can talk about everything here.
69 changes: 69 additions & 0 deletions Source/community_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
layout: default.liquid
title: Community Policy
permalink: /community_policy
---

# Community policy
If you are in my communities, please follow the below rules.

## General rules
These general rules are available in all comunities

### Spam
The first rule to follow is to avoid spamming. Spamming is strictly prohibited, and if you engage in spamming, you will be warned. Continued spamming after receiving multiple warnings will result in consequences, the severity of which will depend on the specific circumstances.

Spamming includes:

* Sending messages that contains random characters
* Sending either screen reader crash codes or codes that can crash the client nor the device.

While it is impossible to list all possible forms of spamming, it is important to note that if an administrator instructs you to stop spamming, you are expected to comply. Failure to follow their instructions may lead to consequences, which will be determined based on the severity of the situation.

### Respect
Respecting one another is of utmost importance. It is essential to show respect to every member of the group. Respect should not be limited to specific individuals; it should be extended to everyone, including administrators and moderators. In order to maintain a respectful environment, all members should treat each other with respect and refrain from engaging in disrespectful behavior. If someone reports that you have shown a lack of respect towards them or have posted, sent, or said disrespectful things, appropriate consequences will be applied based on the severity of the incident and the specific community in which it occurred.

### Speaking and language
The speaking and language is an important of rules that you should follow. You will only speak with official languages in the group, or else you will get a penalty depending on the severity.

Official languages:

1. English. This is an international group, so in this group you should speak in english language for everyone to understand.
2. Burmese. This is only for those who could speak burmese, but could not speak english

You will not speak in other language accept from the list above, or you will get consequences depending on the severity and in which community it was happened.

### Posting contents
Posting contents in the community is to post about games, projects, things that about visually impaired, and all forms of technical, you can post whatever you want. However, some contents will never be allowed to post. All of my communities do not have place for those contents to live. They are:

* Post links to porn, murders, or any other adult rated material.
* Post messages, that are, or contain portions that are, racistic, vulgar, disrespectful to culture or religion or ethnicity...

If you are found to be sending the aforementioned content, there will be consequences depending on the severity, which may include temporary or permanent bans. In the case of Telegram, we may contact Telegram officials to request the deletion of your account.

### Respecting Everyone's Privacy
The privacy of every individual is taken seriously. Therefore, sharing, disclosing, providing, or leaking someone's information without their consent is strictly prohibited. Depending on the case, such actions may result in consequences such as bans, warnings, mutes, or other measures, depending on the community guidelines in place.


## Telegram
The following are also the rules (specificly on telegram)

### Bots and messages
On the Telegram community, I use group management bots to ensure that the community stays on topic and to check who sends unauthorized messages. However, under no circumstances are you allowed to abuse, spam, or use the bots in any way that would negatively impact the community's moderation and discussion.

Failure to follow this rule will result in a penalty ranging from a one-day ban to a permanent ban. You may also be permanently banned from the federation (see below) for violating this rule.

## Explaination
This is a list of explanations of certain parts of the rules and guidelines that I think you may not fully understand:

1. Federation ban : If you get banned from the federation, which is only available on Telegram, you will no longer be able to join any communities located on Telegram that are associated with Harry Min Khant.
2. Ban : If you get banned, it means that you are no longer allowed to join to the community again.
3. Warn : If you get warned, it means that you have broke one or more rules, and indicating that you should listen and follow all over the rules
4. Official language : The language used in the community or the languages that are allowed to use in the community.
5. Bot : A bot helps to moderate the community, insureing that no unauthorized messages or no messages that aren't allowed to be received.

## Changes to the community policy
I may update the community policy from time to time. The updated policies will be instantly affected and posted here.

## Agreement to the rules and guidelines
By joining or remaining in my communities, it is essential that you adhere to the rules and guidelines set forth. If you do not agree to abide by these rules and guidelines, I kindly request that you refrain from joining or participating in any of my communities.
31 changes: 9 additions & 22 deletions config/index.html → Source/config.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="author" content="harry min khant">
<meta name="keywords" content="harry, min, khant, blind, social, visually impaired, computer, pc, mobile, android">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/css/style.css" rel="stylesheet" type="text/css">
<script src="/scripts/functions.js"></script>
<script src="/scripts/all.js"></script>
<script src="/scripts/nav.js"></script>
<script src="/scripts/footer.js"></script>
<script>sett("Site configuration");</script>
</head>
<body>
<script>navstart();</script>
<h1 id="mainc">Site configuration</h1>
<p>Here you can change the preferences for the site.</p>
---
layout: default.liquid
title: Config
permalink: /config
---

# Site configuration</h1>
Here you can change the preferences for the site.

<form>
<fieldset>
Expand Down Expand Up @@ -86,7 +76,4 @@ <h1 id="mainc">Site configuration</h1>
alert(msg);
}
}
addfooter();
</script>
</body>
</html>
</script>
17 changes: 17 additions & 0 deletions Source/contact.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: default.liquid
title: Contact
permalink: /contact
---

# Contact
You can contact me with the following:

## Telegram
This is the recommended option if you have it. Send me message at <a href="https://t.me/harrymkt">harrymkt</a>.

## Facebook Messenger
Although not much reliable as Telegram, you can still contact me on Messenger. Send me at <a href="https://facebook.com/harry.mk.64">harry.mk.64</a>.

## Email
Although email is unreliable, you can contact me at <a href="mailto:harrymk64@gmail.com">harrymk64@gmail.com</a>.
File renamed without changes.
18 changes: 18 additions & 0 deletions Source/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: default.liquid
title: Home
permalink: /
---

<p id="welcome">
<script>document.getElementById("welcome").textContent="Hello "+get_storage("visitname","visiter")+", thanks for stopping bye! I am <b id=\"ownername\"></b>, and I hope my website will give you useful contents and creativities. Have a look around!";</script>

The navigation menu is located at the top. The footer section is located below. In the footer you'll found some links, including to my social profiles and other useful links.

## What can I help you with?

* **Coding** : I could, and interest to coding, especially contributing or helping.
* **Writing** : I love writing, especially Documentations and I would like to help as much as I can.
* **Music design** : I could design music for you, such as mixing, producing. I use Reaper as the ultimit audio software. Note, I'm not professional music producer and in still learning, especially because technology and programming is I interest the most.

For more information about what can I help you with and If it does not listed above, please contact me.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions Source/scripts/all.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//all.js
var birthyear = 2006; //the variable of the year which harry min khant born.
var ptype="https"; //the protercall type, http/"+ptype+".
var domain="harrymkt.github.io"; //domain.
var ownername="Harry Min Khant";
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions _cobalt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
source: Source
destination: HTML

site:
title: Harry Min Khant
description: Harry Min Khant
base_url: https://example.com
sitemap: sitemap.xml

posts:
title: Blog
description: Blog
dir: blog
33 changes: 0 additions & 33 deletions about/index.html

This file was deleted.

30 changes: 0 additions & 30 deletions accessibility/index.html

This file was deleted.

Loading

0 comments on commit dd474a1

Please sign in to comment.