Skip to content

Commit

Permalink
add javascript through custom.js and scripts.html
Browse files Browse the repository at this point in the history
update readme to document changes.
  • Loading branch information
iossefy committed Aug 19, 2022
1 parent cac42c4 commit 260f49d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 23 deletions.
51 changes: 28 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,38 @@ this theme is a fork of [Hugo-tanka](https://github.com/nanxstats/hugo-tanka) th

## new features

- remove the bloat (utterances comments, progressivly, highlight.js)

- scriptless by default.

- removed bootstrap completely. [see here](https://github.com/M1cR0xf7/kaslaanka/commit/7a33f88387150c0d483c289086001f7d4f776706).

- changed how the index, single pages and blog posts look.

- blog list on the home page is limited, if the users want to see more they go to /blog/

- listing projects on the home page.

- brief about me on the home page.

- support unlisted articles.

- better favicons.

- better tags

- add multiple languages support

- **HUGE** first letter paragraph (if you want)
* remove the bloat (utterances comments, progressivly, highlight.js)
* scriptless by default.
* removed bootstrap.
* changed how the index, single pages and blog posts look.
* blog list on the home page is limited, if the users want to see more they go to /blog/
* listing projects on the home page.
* brief about me on the home page.
* support unlisted articles.
* better favicons.
* better tags
* add multiple languages support
* **HUGE** first letter paragraph (if you want)

### custom.css

add your custom css here `/static/css/custom.css`

```css
/* <span class="first-letter">H</span>ello World! */
.first-letter {
font-family: "Roboto Serif";
}
```

### custom.js
add your custom javascript here `/static/js/custom.js`

```js
// be creative
for(;;){alert("HAHAHAHAHAH")}
```

### Tags

```yaml
Expand Down Expand Up @@ -96,6 +95,12 @@ unlisted: true

---
```
### external scripts
you can add external scripts in `/layouts/partials/scripts.html`

```html
<script src="..." ... ></script>
```

### LICENSE
GPL-3.0 [LICENSE](./LICENSE).
2 changes: 2 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
<!-- </span> -->
{{ .Site.Params.copyrights }}
</span>
<script defer src="{{.Site.BaseURL}}js/custom.js"></script>
{{ partial "scripts" . }}
</div>
1 change: 1 addition & 0 deletions layouts/partials/scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- Your scripts here-->
1 change: 1 addition & 0 deletions static/js/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* Your javascript here */

0 comments on commit 260f49d

Please sign in to comment.