diff options
-rw-r--r-- | exampleSite/content/posts/theme-documentation-basics/index.en.md | 14 | ||||
-rw-r--r-- | layouts/posts/single.html | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 1a0b885..9f5e62f 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -48,7 +48,7 @@ The following steps are here to help you initialize your new website. If you don Hugo provides a `new` command to create a new website: -```bash +```shell script hugo new site my_website cd my_website ``` @@ -61,13 +61,13 @@ You can download the [latest release :(far fa-file-archive fa-fw): .zip file](ht Alternatively, clone this repository to the `themes` directory: -```bash +```shell script git clone https://github.com/upagge/uBlogger.git themes/uBlogger ``` Or, create an empty git repository and make this repository a submodule of your site directory: -```bash +```shell script git init git submodule add https://github.com/upagge/uBlogger.git themes/uBlogger ``` @@ -136,7 +136,7 @@ When building the website, you can set a theme by using `--theme` option. Howeve Here is the way to create your first post: -```bash +```shell script hugo new posts/first_post.md ``` @@ -154,7 +154,7 @@ You can copy /uBlogger/archetypes/default.md to your archetypes folder to create Launch by using the following command: -```bash +```shell script hugo serve ``` @@ -170,7 +170,7 @@ When you run `hugo serve`, when the contents of the files change, the page autom Since the theme use `.Scratch` in Hugo to implement some features, it is highly recommended that you add `--disableFastRender` parameter to `hugo server` command for the live preview of the page you are editing. -```bash +```shell script hugo serve --disableFastRender ``` {{< /admonition >}} @@ -179,7 +179,7 @@ hugo serve --disableFastRender When your site is ready to deploy, run the following command: -```bash +```shell script hugo ``` diff --git a/layouts/posts/single.html b/layouts/posts/single.html index d2b9491..8fd4edf 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -86,7 +86,7 @@ <h2 class="single-subtitle">{{ . }}</h2> {{- end -}} - {{- if and (or (eq $pageTheme "classic") (eq $pageTheme "wide")) (eq $pageImageHidden "true") -}} + {{- if and (or (eq $pageTheme "classic") (eq $pageTheme "wide")) (not $pageImageHidden) -}} {{- with $image -}} <div class="image-theme-{{ $pageTheme }}"> <img src="{{ $image }}" style="width: 100%"> |