Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rhnvrm/bodhi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohan Verma <hello@rohanverma.net>2020-05-19 21:50:36 +0300
committerRohan Verma <hello@rohanverma.net>2020-05-19 21:50:36 +0300
commit609b542a5360032818370526e2839c04ebaaed0f (patch)
treec3aaf65af38af32a7da5ef6794780cb947e7760b
parent04502390cda6d3c2575587bfd2d6cb7c27e236c0 (diff)
fix: minor design fixes
-rw-r--r--README.md59
-rw-r--r--layouts/_default/search.html9
-rw-r--r--layouts/partials/display_meta.html2
-rw-r--r--layouts/partials/header.html8
-rw-r--r--layouts/partials/list_preview.html4
-rw-r--r--layouts/partials/menu.html2
-rw-r--r--static/css/normalize.min.css2
-rw-r--r--static/css/style.css49
8 files changed, 100 insertions, 35 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..201805d
--- /dev/null
+++ b/README.md
@@ -0,0 +1,59 @@
+---
+title: Bodhi - Hugo Theme
+layout: article
+summary: Bodhi is a simple, minimal, personal website theme for Hugo.
+---
+
+Bodhi is a simple, minimal, personal website theme for Hugo.
+
+## Features
+
+- Google and Fathom Analytics integration
+- Syntax highlighting
+- Twitter cards and opengraph tags support
+- Disqus and Commento comments
+- RSS feeds
+- AddToAny support
+- Inbuilt Search Support
+- Minimal post metadata like Reading Time
+- Simple pagination with page indicators
+- Two navigation menus
+ - Menu bar with left/right split
+ - Navigation bar with custom tree
+- Included Archetypes (WIP)
+ - Posts (for blogs)
+ - Articles (for pages)
+
+## Previews
+
+### Home Page
+
+![preview](preview.png)
+
+### Archive Page
+
+![archive page](blog_archive.png)
+
+### Inbuilt Search
+
+![search page](search.png)
+
+### Syntax Highlighting
+
+![syntax](syntax.png)
+
+### Minimal Blog Metadata
+
+![blog](blog.png)
+
+### Simple but Responsive
+
+![responsive](responsive.png)
+
+## Inspiration
+
+## suckless
+
+![suckless](suckless.png)
+
+[suckless](https://suckless.org) is known for their focus on simplicity and clarity. Their website is a good example of simple website design. I really liked how they use the two-column design as a mini-sitemap. This tree layout, is something that is familiar and intuitive to a lot of people. This inspired me to build [Bodhi](/projects/bodhi) to have a two-column layout with the column showing a tree like column on the left.
diff --git a/layouts/_default/search.html b/layouts/_default/search.html
index 318de3f..cbefb44 100644
--- a/layouts/_default/search.html
+++ b/layouts/_default/search.html
@@ -5,16 +5,19 @@
<script src="{{ "js/search.js" | absURL }}"></script>
{{ end }}
{{ define "main" }}
-<section class="resume-section p-3 p-lg-5 d-flex flex-column">
+<div>
+ <h2>Search</h2>
<div class="my-auto" >
<form action="{{ "search" | absURL }}">
- <input id="search-query" name="s" placeholder="press enter to search"/>
+ <input id="search-query" name="s" placeholder="search"/>
</form>
+ <span class="small">press enter to search</span>
+
<div id="search-results">
<h3>Matching pages</h3>
</div>
</div>
-</section>
+</div>
<!-- this template is sucked in by search.js and appended to the search-results div above. So editing here will adjust style -->
<script id="search-result-template" type="text/x-js-template">
<div id="summary-${key}">
diff --git a/layouts/partials/display_meta.html b/layouts/partials/display_meta.html
index 1e8de6f..17d67f9 100644
--- a/layouts/partials/display_meta.html
+++ b/layouts/partials/display_meta.html
@@ -2,7 +2,7 @@
<span>{{ dateFormat "02 Jan 2006" $.Date }}</span> -
<span>{{ .ReadingTime }} minute read</span>
</div>
-<div class="small">
+<div class="small light">
{{ with .Params.categories }}
categories:
{{ range . }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 519bffe..b76287a 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -22,9 +22,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
-<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" integrity="sha256-l85OmPOjvil/SOvVt3HnSSjzF1TUMyT9eV0c2BzEGzU=" crossorigin="anonymous" />
-<link rel="stylesheet" type="text/css" href="/css/style.css"/>
-<link href="https://fonts.googleapis.com/css?family=Inter" rel="stylesheet">
-<link href="https://fonts.googleapis.com/css?family=Source+Serif+Pro" rel="stylesheet" type="text/css">
-
+<link rel="stylesheet" href="/css/normalize.min.css" />
+<link rel="stylesheet" type="text/css" href="/css/style.css" />
+<link href="https://fonts.googleapis.com/css?family=Inter|Source+Serif+Pro" rel="stylesheet" type="text/css" />
{{ partial "favicon.html" . }}
diff --git a/layouts/partials/list_preview.html b/layouts/partials/list_preview.html
index 7adae6b..6df0779 100644
--- a/layouts/partials/list_preview.html
+++ b/layouts/partials/list_preview.html
@@ -8,8 +8,8 @@
<div>
{{ if isset .Params "description" }}
- {{ .Description }}
+ <p>{{ .Description }}</p>
{{ else }}
- {{ .Summary }}
+ <p>{{ .Summary }}</p>
{{ end }}
</div>
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 9d06d38..42a1696 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -12,7 +12,7 @@
{{if eq $currentPage.URL .URL }}</b>{{end}}
{{ end }}
{{if eq $currentPage.URL "/search/" }}<b>{{end}}
- <a href="/search">search <svg aria-hidden="true" class="i-search" viewBox="0 0 32 32" width="10" height="10" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"><circle cx="14" cy="14" r="12"></circle><path d="M23 23l7 7"></path></svg></a>
+ <a href="/search">search<svg aria-hidden="true" class="i-search" viewBox="0 0 32 32" width="10" height="10" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"><circle cx="14" cy="14" r="12"></circle><path d="M23 23l7 7"></path></svg></a>
{{if eq $currentPage.URL "/search/" }}</b>{{end}}
</span>
</div>
diff --git a/static/css/normalize.min.css b/static/css/normalize.min.css
new file mode 100644
index 0000000..87aa24d
--- /dev/null
+++ b/static/css/normalize.min.css
@@ -0,0 +1,2 @@
+/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}
+/*# sourceMappingURL=normalize.min.css.map */ \ No newline at end of file
diff --git a/static/css/style.css b/static/css/style.css
index d79d52e..8568ad9 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -16,11 +16,11 @@ body {
margin: 0;
height: 100%;
line-height: 1.6em;
- font-size: 17px;
+ font-size: 1.0em;
}
.small {
- font-size: 13px;
+ font-size: 0.9em;
}
pre, code {
@@ -29,6 +29,12 @@ pre, code {
a {
color: #005386;
+ padding: 2px;
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
}
#header a, #nav a, #menu a {
@@ -36,7 +42,7 @@ a {
}
#nav a:hover {
- background-color: #ddd;
+ background-color: #eee;
}
#menu {
@@ -77,22 +83,27 @@ h1, h2, h3, h4, h5, h6 {
h1 {
margin: 1em 1ex 0.5ex 0;
- font-size: 1.4em;
+ font-size: 1.6em;
}
h2 {
margin: 1em 1ex 0.5ex 0;
- font-size: 1.3em;
+ font-size: 1.5em;
}
h3 {
margin: 1em 1ex 0.5ex 0;
- font-size: 1.0em;
+ font-size: 1.3em;
}
h4 {
margin: 1em 1ex 0.5ex 0;
- font-size: 0.9em;
+ font-size: 1.2em;
+}
+
+h5 {
+ margin: 1em 1ex 0.5ex 0;
+ font-size: 1.0em;
}
#headerSubtitle {
@@ -113,7 +124,7 @@ h4 {
float: left;
margin: 0 1px 0 0;
padding: 1em 0;
- width: 200px;
+ width: 20%;
}
#nav ul {
@@ -140,11 +151,10 @@ h4 {
#main {
min-height: 100%;
margin: 0 0 0 10px;
- max-width: 50em;
+ min-width: 75%;
padding: 1.5em;
+ padding-top: 0em;
border-left: 1px solid rgba(0, 0, 0, 0.1);
- display: flex;
- flex-direction: column;
}
.left {
@@ -176,17 +186,6 @@ div.avatar {
}
table {
- -ms-overflow-style: -ms-autohiding-scrollbar;
- -webkit-overflow-scrolling: touch;
- background-color: transparent;
- margin-bottom: 1rem;
- overflow-x: auto;
- width: 100%;
-}
-
-
-
-table {
width:100%;
border-collapse:collapse;
margin:1.75rem 0;
@@ -199,7 +198,7 @@ table th {
padding:10px
}
table thead th {
- font-size:10px
+ font-size:0.8em;
}
table tbody td:first-child {
font-weight:700;
@@ -236,6 +235,10 @@ img {
max-width: 100%;
}
+.i-search {
+ margin-left: 5px;
+}
+
@media only screen and (max-width:632px) {
#content {
flex-direction: column;