Skip to content

Commit

Permalink
[skip ci] fix theme references
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed May 24, 2021
1 parent 8b272b0 commit ef6a2c2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions exampleSite/content/posts/deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Add a Makefile to your repository to bundle the required steps.

```Makefile
THEME_VERSION := v0.8.2
THEME := hugo-geekdoc
THEME := hugo-geekblog
BASEDIR := docs
THEMEDIR := $(BASEDIR)/themes
.PHONY: doc
Expand Down Expand Up @@ -73,6 +73,6 @@ If you want to deploy your side to a subdirectory of your domain, some extra ste
There are two ways to get Markdown links or images working:

- Use the absolute path including your subdirectory e.g. `[testlink](/demo/example-site)`
- Overwrite the HTML base in your site configuration with `geekdocOverwriteHTMLBase = true` and use the relative path e.g. `[testlink](example-site)`
- Overwrite the HTML base in your site configuration with `geekblogOverwriteHTMLBase = true` and use the relative path e.g. `[testlink](example-site)`

But there is another special case if you use `geekdocOverwriteHTMLBase = true`. If you use anchors in your Markdown links you have to ensure to always include the page path. As an example `[testlink](#some-anchor)` will resolve to `http://localhost/demo/#some-anchor` and not automatically include the current page!
But there is another special case if you use `geekblogOverwriteHTMLBase = true`. If you use anchors in your Markdown links you have to ensure to always include the page path. As an example `[testlink](#some-anchor)` will resolve to `http://localhost/demo/#some-anchor` and not automatically include the current page!
12 changes: 6 additions & 6 deletions exampleSite/content/posts/post-with-images/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ If you need more flexibility for your embedded images, you could use the `img` s

**Attributes:**

| Name | Usage | default |
| ------------- | ------------------------------------------------------------------------------------------------------------- | ----------------- |
| name (string) | Name of the image resource defined in your front matter. | empty |
| alt (string) | Description for displayed image. | resource `.Title` |
| size (string) | Thumbnail size (tiny\|small\|medium\|large). | empty |
| lazy (bool) | Enable or disable image lazy loading. Can be controlled globally by site parameter `geekdocImageLazyLoading`. | true |
| Name | Usage | default |
| ------------- | -------------------------------------------------------------------------------------------------------------- | ----------------- |
| name (string) | Name of the image resource defined in your front matter. | empty |
| alt (string) | Description for displayed image. | resource `.Title` |
| size (string) | Thumbnail size (tiny\|small\|medium\|large). | empty |
| lazy (bool) | Enable or disable image lazy loading. Can be controlled globally by site parameter `geekblogImageLazyLoading`. | true |

**Example:**

Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/posts/shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Buttons are styled links that can lead to local page or external link.

```tpl
{{</* button relref="/" [class="..."] */>}}Get Home{{</* /button */>}}
{{</* button href="https://github.com/thegeeklab/hugo-geekdoc" */>}}Contribute{{</* /button */>}}
{{</* button href="https://github.com/thegeeklab/hugo-geekblog" */>}}Contribute{{</* /button */>}}
```

### Example

{{< button relref="/" >}}Get Home{{< /button >}}
{{< button href="https://github.com/thegeeklab/hugo-geekdoc" >}}Contribute{{< /button >}}
{{< button href="https://github.com/thegeeklab/hugo-geekblog" >}}Contribute{{< /button >}}

## Columns

Expand Down
2 changes: 1 addition & 1 deletion exampleSite/layouts/shortcodes/sprites.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="flex flex-wrap justify-center">
{{ range .Site.Data.sprites.geekdoc }}
{{ range .Site.Data.sprites.geekblog }}
<div class="flex flex-grid icon-grid">
<div class="flex align-center justify-center icon-grid__line">
<svg class="icon gblog_{{ . }}"><use xlink:href="#gblog_{{ . }}"></use></svg>
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ gulp.task("svg-sprite-list", function () {

return gulp
.src("src/icons/*.svg")
.pipe(filelist("exampleSite/data/sprites/geekdoc.json", config))
.pipe(filelist("exampleSite/data/sprites/geekblog.json", config))
.pipe(gulp.dest("."));
});

Expand Down

0 comments on commit ef6a2c2

Please sign in to comment.