Skip to content

Commit

Permalink
Update document theme (#139)
Browse files Browse the repository at this point in the history
* pass color in url

* add css file

* convert html to md

* try with css file

* remove unwanted code

* remove unwanted code
  • Loading branch information
cp-sidhdhi-p authored Nov 19, 2024
1 parent 58721e7 commit a46a239
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 157 deletions.
2 changes: 2 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: Khelo
title: null
29 changes: 29 additions & 0 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: " en-US" }}">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="theme.css">
{% seo %}
<link rel="stylesheet" href="{{ "
/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
{% include head-custom.html %}
</head>
<body>
<div class="container-lg px-3 my-5 markdown-body">
{% if site.title and site.title != page.title %}
<h1>{{ site.title }}</h1>
{% endif %}

{{ content }}
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js"
integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg="
crossorigin="anonymous"></script>
<script>
anchors.add();

</script>
</body>
</html>
11 changes: 11 additions & 0 deletions docs/_layouts/theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
body {
background-color: #ffffff;
color: #24292e;
}

@media (prefers-color-scheme: dark) {
body {
background-color: #0d1117;
color: #c9d1d9;
}
}
Loading

0 comments on commit a46a239

Please sign in to comment.