diff --git a/exampleSite/assets/img/paint.png b/exampleSite/assets/img/paint.png new file mode 100644 index 00000000..6f6659ae Binary files /dev/null and b/exampleSite/assets/img/paint.png differ diff --git a/exampleSite/config/_default/menus.en.toml b/exampleSite/config/_default/menus.en.toml index fcfddb07..b124c359 100644 --- a/exampleSite/config/_default/menus.en.toml +++ b/exampleSite/config/_default/menus.en.toml @@ -15,13 +15,25 @@ pageRef = "docs" weight = 10 +[[main]] + name = "Examples" + weight = 20 + +[[main]] + name = "Guides" + parent = "Examples" + pageRef = "guides" + weight = 10 + [[main]] name = "Samples" + parent = "Examples" pageRef = "samples" weight = 20 [[main]] name = "Showcase" + parent = "Examples" pageRef = "examples" weight = 30 diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 0e72f986..2120eb57 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -17,7 +17,7 @@ mainSections = ["docs"] disableImageOptimization = true -defaultBackgroundImage = "/img/iceland.jpg" +defaultBackgroundImage = "/img/paint.png" highlightCurrentMenuArea = true smartTOC = true @@ -35,7 +35,7 @@ smartTOCHideUnfocusedChildren = false [homepage] layout = "custom" # valid options: page, profile, hero, card, background, custom - homepageImage = "/img/iceland.jpg" # used in: hero, and card + # homepageImage = "/img/iceland.jpg" # used in: hero, and card showRecent = false showRecentItems = 10 showMoreLink = true diff --git a/exampleSite/content/docs/blowfish.png b/exampleSite/content/docs/blowfish.png deleted file mode 100644 index d97bbf2e..00000000 Binary files a/exampleSite/content/docs/blowfish.png and /dev/null differ diff --git a/exampleSite/content/docs/cover.jpg b/exampleSite/content/docs/cover.jpg deleted file mode 100644 index 6352a781..00000000 Binary files a/exampleSite/content/docs/cover.jpg and /dev/null differ diff --git a/exampleSite/content/guides/_index.md b/exampleSite/content/guides/_index.md new file mode 100755 index 00000000..571ed9cb --- /dev/null +++ b/exampleSite/content/guides/_index.md @@ -0,0 +1,19 @@ +--- +title: "Guides" +description: "Recipes, guides, and tutorials for Blowfish" + +cascade: + showDate: false + showAuthor: false + invertPagination: true +--- + +{{< lead >}} +Recipes, guides, and tutorials for Blowfish +{{< /lead >}} + +**Blowfish user?** To add your guide to this list, [check the template](/guides/template/). + +This section contains guides for a variety of scnearios on how to configure your theme. If you're new, check out the [Installation]({{< ref "docs/installation" >}}) guide to begin or visit the [Samples]({{< ref "samples" >}}) section to see what Blowfish can do. + +--- diff --git a/exampleSite/content/guides/template/cover.png b/exampleSite/content/guides/template/cover.png new file mode 100644 index 00000000..6f6659ae Binary files /dev/null and b/exampleSite/content/guides/template/cover.png differ diff --git a/exampleSite/content/guides/template/img/example.jpg b/exampleSite/content/guides/template/img/example.jpg new file mode 100644 index 00000000..df153b3f Binary files /dev/null and b/exampleSite/content/guides/template/img/example.jpg differ diff --git a/exampleSite/content/guides/template/index.md b/exampleSite/content/guides/template/index.md new file mode 100644 index 00000000..41a1ad1f --- /dev/null +++ b/exampleSite/content/guides/template/index.md @@ -0,0 +1,36 @@ +--- +title: "Guide Template" +date: 2222-12-22 +draft: false +description: "Template for creating a guide" +tags: ["template"] +--- + +Thank you for wanting to contribute to Blowfish's community. + +## How to start? +This is a template article that will explain how to create a new article for Blowfish's guide section. + +## Clone Blowfish +Clone this repo with the following command: + +```bash +git clone https://github.com/nunocoracao/blowfish.git +``` + +## Setup your files +Copy and paste the entire folder where this `.md` file is. + +Name it using the following convention `YYYYMM-title`, no white spaces are allowed. + +## Write your guide +Write your guide :) + +Use the `img` folder to place your images and use them: + +![]() + +![Example](img/example.jpg "Image caption") + +## Open a PR +Open a PR and thanks in advance for your contribution. \ No newline at end of file diff --git a/exampleSite/content/samples/cover.jpg b/exampleSite/content/samples/cover.jpg deleted file mode 100644 index 6352a781..00000000 Binary files a/exampleSite/content/samples/cover.jpg and /dev/null differ diff --git a/exampleSite/content/users/cover.jpg b/exampleSite/content/users/cover.jpg deleted file mode 100644 index 6352a781..00000000 Binary files a/exampleSite/content/users/cover.jpg and /dev/null differ diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index e47c6165..4f95f448 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -170,7 +170,6 @@ var $mainmenu = $('.main-menu'); var path = window.location.pathname; $mainmenu.find('a[href="' + path + '"]').each(function (i, e) { - console.log($(e).children('a')) $(e).children('p').addClass('active'); }); })();