From ba6f29b8848f5467e41220d25492255a637003ab Mon Sep 17 00:00:00 2001 From: Sebastian Pech Date: Thu, 19 Sep 2019 10:47:41 +0200 Subject: Added Bing/DuckDuckGo search box. --- README.md | 31 +---------- exampleSite/config.toml | 6 +- .../cover-home-office-599475_1920.jpg | Bin 433444 -> 0 bytes .../005-theme-info/feature-laptop-2838918_1920.jpg | Bin 415824 -> 0 bytes exampleSite/content/post/005-theme-info/index.md | 61 --------------------- layouts/index.html | 12 +++- 6 files changed, 17 insertions(+), 93 deletions(-) delete mode 100644 exampleSite/content/post/005-theme-info/cover-home-office-599475_1920.jpg delete mode 100644 exampleSite/content/post/005-theme-info/feature-laptop-2838918_1920.jpg delete mode 100644 exampleSite/content/post/005-theme-info/index.md diff --git a/README.md b/README.md index 833e49b..d4f0d40 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ Most settings should be done with hugo specific variables. There are only a few * `welcomeText = "Startpage!"` is the text above the search box * `showGoogleSearch = true` to switch Google search box on/off +* `showBingSearch = true` to switch Bing search box on/off +* `showDuckDuckGoSearch = true` to switch DuckDuckGo search box on/off * `startPageColumns = true` will show the start page in grouped lists ![startPageColumns = false](https://raw.githubusercontent.com/spech66/bootstrap-bp-hugo-startpage/master/images/screenshot.png) @@ -49,35 +51,6 @@ Define the links in a file in `data/links.yml`. This needs to be structured like Icons are taken from [Font Awesome](https://fontawesome.com/icons?d=gallery). -## Google Analytics - -This theme uses the internal asynchronous template for Google Analytics tracking. You only have to provide your tracking id in your configuration file: - -```yaml -googleAnalytics = "UA-123-45" -``` - -## Schema.org support - -Provide one author to enable the Schema.org support. - -```yaml -[Author] - name = "Sebastian Pech" -``` - -## Images, Open Graph and Twitter Cards - -This theme uses Hugos `feature/cover` name method to set the optimized feature image. This will also be in the Twitter Cards and Open Graph block. - -```yaml -# Site Config toml -title = "My hugo site" - -[params] - description = "Text about the site" -``` - ## Sources * Background image by [Mikael Gustafsson](https://www.artstation.com/artwork/Y2Wew) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 405af2c..108b946 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,7 +1,7 @@ baseURL = "https://example.com/" languageCode = "en-US" title = "My New Hugo Site" -theme = "bootstrap-bp-hugo-theme" +theme = "bootstrap-bp-hugo-startpage" # googleAnalytics = "UA-123-45" copyright = "Sebastian Pech" enableRobotsTXT = true @@ -27,4 +27,6 @@ paginate = 5 #images = ["logo.jpg"] startPageColumns = true welcomeText = "Bootstrap-BP hugo startpage" - showGoogleSearch = true \ No newline at end of file + showGoogleSearch = false + showBingSearch = false + showDuckDuckGoSearch = true diff --git a/exampleSite/content/post/005-theme-info/cover-home-office-599475_1920.jpg b/exampleSite/content/post/005-theme-info/cover-home-office-599475_1920.jpg deleted file mode 100644 index 4dff1c5..0000000 Binary files a/exampleSite/content/post/005-theme-info/cover-home-office-599475_1920.jpg and /dev/null differ diff --git a/exampleSite/content/post/005-theme-info/feature-laptop-2838918_1920.jpg b/exampleSite/content/post/005-theme-info/feature-laptop-2838918_1920.jpg deleted file mode 100644 index 5fa89d9..0000000 Binary files a/exampleSite/content/post/005-theme-info/feature-laptop-2838918_1920.jpg and /dev/null differ diff --git a/exampleSite/content/post/005-theme-info/index.md b/exampleSite/content/post/005-theme-info/index.md deleted file mode 100644 index 3dbd182..0000000 --- a/exampleSite/content/post/005-theme-info/index.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: "Theme Info" -type: post -date: 2018-10-28T08:59:27+01:00 -publishdate: 2018-10-28 -lastmod: 2018-10-28 -description: "Information about the theme" -tags: - - Code - - Lorem ipsum - - Test - - Table - - Quote -categories: - - Theme ---- - -## Headline 2 - -The header image is automatically added if there is a file called `*feature*` or `*cover*`. The first wildcard is prefered over the second one. If there are multiple images the first one is used. - -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. - -### Headline 3 - -#### Headline 4 - -##### Headline 5 - -###### Headline 6 - -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, **sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat**, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. _Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet_. - -> _"Be yourself; everyone else is already taken."_ ― Oscar Wilde - -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. - -```js -var config = { - [...] - language: "de", - timeFormat: 24, - units: "metric", - [...] -} -``` - -{{< optfigure src="cover-home-office-599475_1920" class="figure" title="Home office" caption="This is the home office caption. The image is resized automatically using `optfigure` shortcode." >}} - -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. - -| Test | More test | -|:-----|-----------| -| 12 | 21 | -| AB | BA | - -Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. - -  - -**Images from pixabay:** [laptop-2838918](https://pixabay.com/de/laptop-businessmann-von-oben-2838918/), [home-office-599475](https://pixabay.com/de/home-office-laptop-notebook-startup-599475/) \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index c567954..02df301 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,10 +3,20 @@

{{ .Site.Params.welcomeText }}

{{ if .Site.Params.showGoogleSearch }} -
+
{{ end }} +{{ if .Site.Params.showBingSearch }} +
+ +
+{{ end }} +{{ if .Site.Params.showDuckDuckGoSearch }} +
+ +
+{{ end }} {{ if .Site.Params.startPageColumns }}
-- cgit v1.2.3