Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
hugoVersion:
description: "Hugo Version"
required: false
default: "0.146.0"
default: "0.149.0"

# Allow one concurrent deployment
concurrency:
Expand All @@ -38,7 +38,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.146.0' }}
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.149.0' }}
steps:
- name: Install Hugo CLI
run: |
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Read Wiki => [hugo-PaperMod - Installation](https://github.com/adityatelange/hug

```
.(site root)
├── configTaxo.yml
├── config.yml
├── hugo.yml
├── content
│ ├── archives.fr.md
│ ├── archives.md
Expand Down
18 changes: 9 additions & 9 deletions content/posts/papermod/papermod-faq.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "FAQs / How To's Guide"
summary: We'll try to answer frequently asked qestions by users.
summary: We'll try to answer frequently asked questions by users.
date: 2021-01-20
aliases: ["/papermod-how-to-guide"]
tags: ["PaperMod", "Docs"]
Expand Down Expand Up @@ -58,7 +58,7 @@ Why was the `asset` not loading ? : [How_browsers_handle_Subresource_Integrity](

**Solution:**

Set the following in `config.yml`
Set the following in `hugo.yml`

```yml {linenos=true}
params:
Expand All @@ -78,11 +78,11 @@ Linked Issues:

- For adding custom css to be bundled inside one minimized css

Create folder in yout project directory as
Create folder in your project directory as

```
.(site root)
├── config.yml
├── hugo.yml
├── content/
├── theme/hugo-PaperMod/
└── assets/
Expand All @@ -108,7 +108,7 @@ Custom css/js can be added by way mentioned below.

```
.(site root)
├── config.yml
├── hugo.yml
├── content/
├── theme/hugo-PaperMod/
└── layouts
Expand All @@ -131,7 +131,7 @@ and contents of `extend_footer.html` will be added to bottom of page.

You can add menu entries which will appear in the header of every page.

To do so, add a `menu` section to your site's `config.yml`:
To do so, add a `menu` section to your site's `hugo.yml`:

```yml {linenos=true}
menu:
Expand Down Expand Up @@ -243,15 +243,15 @@ use `align=center` to center image with captions

## Using Hugo's Syntax highlighter "chroma"

1. Disable Highlight.js in site `config.yml`
1. Disable Highlight.js in site `hugo.yml`

```yml {linenos=true}
params:
assets:
disableHLJS: true
```

2. Set hugo's markdown styling in site `config.yml`
2. Set hugo's markdown styling in site `hugo.yml`

```yml {linenos=true}
markup:
Expand Down Expand Up @@ -288,7 +288,7 @@ Why? Take a look at [fastsearch.js#L35](https://github.com/adityatelange/hugo-Pa

We fetch the `index.json` (where the search function looks for the keywords typed) one level up of the website `search.min.js` is hosted on.

We have used this insted of assigning `baseURL` so as to work with multilingual websites ex. `example.com/fr/` and websites being placed under a subdirectory ex. `example.com/blog/`.
We have used this instead of assigning `baseURL` so as to work with multilingual websites ex. `example.com/fr/` and websites being placed under a subdirectory ex. `example.com/blog/`.

To fix for _single_ language websites hosting assets from CDN, this you may [override](#override-theme-template) [fastsearch.js#L35](https://github.com/adityatelange/hugo-PaperMod/blob/fb4988cfb6d0d6e4e489f17d89f0fa618def3396/assets/js/fastsearch.js#L35) and placing appropriate URL as in

Expand Down
8 changes: 4 additions & 4 deletions content/posts/papermod/papermod-features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Create a page with `archive.md` in `content` directory with following content

```shell
.
├── config.yml
├── hugo.yml
├── content/
│ ├── archives.md <--- Create archive.md here
│ └── posts/
Expand Down Expand Up @@ -162,7 +162,7 @@ params:

PaperMod uses [Fuse.js Basic](https://fusejs.io/getting-started/different-builds.html#explanation-of-different-builds) for search functionality

Add the following to site config, `config.yml`
Add the following to site config, `hugo.yml`

```yml {linenos=true,hl_lines=[5]}
outputs:
Expand Down Expand Up @@ -315,7 +315,7 @@ params:
ShowBreadCrumbs: true
```

Can be diabled for particular page's front-matter
Can be disabled for particular page's front-matter

```yml
---
Expand Down Expand Up @@ -397,7 +397,7 @@ author: ["Me", "You"]
---
```

To use Multiple Authors Site-wide, in `config.yml`:
To use Multiple Authors Site-wide, in `hugo.yml`:

```yml
params:
Expand Down
12 changes: 6 additions & 6 deletions content/posts/papermod/papermod-installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Install / Update PaperMod"
summary: Read aboout Install and Update instructions and sampled configuration templates
summary: Read about Install and Update instructions and sampled configuration templates
date: 2021-01-20
series: ["PaperMod"]
weight: 1
Expand Down Expand Up @@ -59,7 +59,7 @@ git pull

{{</ collapse >}}

> {{< collapse summary="**Expand Method 2 - Git Submodule (recomended)**" >}}
> {{< collapse summary="**Expand Method 2 - Git Submodule (recommended)**" >}}

**INSTALL** : Inside the folder of your Hugo site `MyFreshWebsite`, run:

Expand Down Expand Up @@ -102,13 +102,13 @@ Direct Links:

- Install [Go programming language](https://go.dev/doc/install) in your operating system.

- Intialize your own hugo mod
- Initialize your own hugo mod

```
hugo mod init YOUR_OWN_GIT_REPOSITORY
```

- Add PaperMod in your `config.yml` file
- Add PaperMod in your `hugo.yml` file

```go {linenos=true}
module:
Expand All @@ -128,7 +128,7 @@ Read more : [Hugo Docs's - HUGO MODULES](https://gohugo.io/hugo-modules/use-modu

### Finally set theme as PaperMod in your site config

In `config.yml` add:
In `hugo.yml` add:

```yml {linenos=true}
theme: ["PaperMod"]
Expand Down Expand Up @@ -173,7 +173,7 @@ You can go through few videos which are available on YouTube for getting to know

---

## Sample `config.yml`
## Sample `hugo.yml`

> **Example Site Structure is present here**: [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite/)

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions layouts/_shortcodes/gist.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}"></script>