1"use strict";(self.webpackChunkwoodpecker=self.webpackChunkwoodpecker||[]).push([["1659"],{78839(e){e.exports=JSON.parse('{"name":"Hugo","slug":"hugo","url":"https://github.com/maurerle/woodpecker-hugo","icon":"https://raw.githubusercontent.com/gohugoio/gohugoioTheme/refs/heads/master/static/images/icon-h/hugo-h-1.svg","description":"Use Hugo static site generator to create HTML output","docs":"<p>The Hugo plugin automatically generates static web page files, which can be published afterwards!</p>\\n<p>The example below demonstrates how you can use the plugin to automatically create static web page files using Hugo plugin:</p>\\n<pre><code class=\\"language-yml\\">steps:\\n- name: build\\n image: ghcr.io/maurerle/woodpecker-hugo\\n settings:\\n hugo_version: 0.144\\n</code></pre>\\n<h4>Customize source, output, theme, config, layout OR content directory paths</h4>\\n<p>You can customize the paths for e. g. the theme, layout, content directory and output directory and much more!</p>\\n<pre><code class=\\"language-yml\\">steps:\\n- name: build\\n image: ghcr.io/maurerle/woodpecker-hugo\\n settings:\\n hugo_version: 0.144\\n url: https://foo.com\\n+ config: path/to/config\\n+ content: path/to/content/\\n+ layout: path/to/layout\\n+ output: path/to/public\\n+ source: path/to/source\\n+ theme: path/themes/THEMENAME/\\n</code></pre>\\n<h4>Set hostname (and path) to the root</h4>\\n<p>You can also define a base URL directly in the pipeline, which is used when generating the files.</p>\\n<pre><code class=\\"language-yml\\">steps:\\n- name: build\\n image: ghcr.io/maurerle/woodpecker-hugo\\n settings:\\n hugo_version: 0.144\\n url: https://foo.com\\n config: path/to/config\\n content: path/to/content/\\n layout: path/to/layout\\n output: path/to/public\\n source: path/to/source\\n theme: path/themes/THEMENAME/\\n+ url: https://foo.com\\n</code></pre>\\n<h4>Build sites and include expired, drafts or future content</h4>\\n<p>You can set the <code>buildDrafts</code>, <code>buildExpired</code>, <code>buildFuture</code> settings to configure the generated files.</p>\\n<ul>\\n<li><code>buildDrafts</code> - include content marked as draft</li>\\n<li><code>buildExpired</code> - include expired content</li>\\n<li><code>buildFuture</code> - include content with publishdate in the future</li>\\n</ul>\\n<pre><code class=\\"language-yml\\">steps:\\n- name: build\\n image: ghcr.io/maurerle/woodpecker-hugo\\n settings:\\n hugo_version: 0.144\\n url: https://foo.com\\n config: path/to/config\\n content: path/to/content/\\n layout: path/to/layout\\n output: path/to/public\\n source: path/to/source\\n theme: path/themes/THEMENAME/\\n url: https://foo.com\\n+ buildDrafts: true\\n+ buildExpired: true\\n+ buildFuture: true\\n</code></pre>\\n<h4><strong>Example</strong>: Generate Hugo static files and publish them to remote directory using scp</h4>\\n<p>Here is a short example of how to define a pipeline that automatically generates the static web page files with Hugo and then copies them to a remote server via scp. This makes publishing websites a breeze!</p>\\n<pre><code class=\\"language-yml\\">steps:\\n- name: build\\n image: ghcr.io/maurerle/woodpecker-hugo\\n settings:\\n hugo_version: 0.144\\n pull: always\\n url: https://foo.com\\n\\n- name: deploy\\n image: appleboy/drone-scp\\n settings:\\n host: 192.168.162.1\\n target: /var/www/site\\n source: public/*\\n username:\\n from_secret: ssh_username\\n password:\\n from_secret: ssh_password\\n port:\\n from_secret: ssh_port\\n when:\\n branch:\\n - master\\n event:\\n exclude:\\n - pull_request\\n</code></pre>\\n<h1>Parameter Reference</h1>\\n<p>buildDrafts\\n: Include content marked as draft</p>\\n<p>buildExpired\\n: include expired content</p>\\n<p>buildFuture\\n: include content with publishdate in the future</p>\\n<p>config\\n: config file (default is path/config.yaml|json|toml)</p>\\n<p>content\\n: filesystem path to content directory</p>\\n<p>layout\\n: filesystem path to layout directory</p>\\n<p>output\\n: filesystem path to write files to</p>\\n<p>source\\n: filesystem path to read files relative from</p>\\n<p>theme\\n: theme to use (located in /themes/THEMENAME/)</p>\\n<p>
1url\\n: hostname (and path) to the root</p>\\n<h1>Contributing</h1>\\n<p>You have suggestions for improvements or features you miss? You are welcome to express all your wishes here. Just create a new Issue on Github and it will be taken care of quickly!</p>\\n<p>Github: <a href=\\"https://github.com/maurerle/woodpecker-hugo\\">https://github.com/maurerle/woodpecker-hugo</a></p>\\n","tags":["tool","hugo","generation","static"],"author":"cbrgm, maurerle","containerImage":"ghcr.io/maurerle/woodpecker-hugo","containerImageUrl":"https://github.com/maurerle/woodpecker-hugo/pkgs/container/woodpecker-hugo","verified":false,"iconDataUrl":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTIxIiBoZWlnaHQ9IjU5NCIgdmlld0JveD0iMCAwIDUyMSA1OTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxtYXNrIGlkPSJtYXNrMF80XzMiIHN0eWxlPSJtYXNrLXR5cGU6bHVtaW5hbmNlIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iNTIxIiBoZWlnaHQ9IjU5NCI+CjxwYXRoIGQ9Ik0wIDBINTIwLjc4N1Y1OTMuNTIxSDBWMFoiIGZpbGw9IndoaXRlIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF80XzMpIj4KPHBhdGggZD0iTTUwOS4yNDUgMTM5Ljc1QzUxNS41OTQgMTQzLjQxNiA1MjAuNzkyIDE1Mi40MTYgNTIwLjc5MiAxNTkuNzVWNDMzLjc3NkM1MjAuNzkyIDQ0MS4xMDkgNTE1LjU5NCA0NTAuMTA5IDUwOS4yNDUgNDUzLjc3NkwyNzEuOTMyIDU5MC43NzFDMjY1LjU4MyA1OTQuNDM3IDI1NS4xODggNTk0LjQzNyAyNDguODM5IDU5MC43NzFMMTEuNTQ2OSA0NTMuNzc2QzUuMTk3OTIgNDUwLjEwOSAwIDQ0MS4xMDkgMCA0MzMuNzc2VjE1OS43NUMwIDE1Mi40MTYgNS4xOTc5MiAxNDMuNDE2IDExLjU0NjkgMTM5Ljc1TDI0OC44MzkgMi43NTQ4OEMyNTUuMTg4IC0wLjkxMTc4NCAyNjUuNTgzIC0wLjkxMTc4NCAyNzEuOTMyIDIuNzU0ODgiIGZpbGw9IiNDQjAwN0MiLz4KPC9nPgo8cGF0aCBkPSJNNDYwLjAzMSAxNjguMTYxQzQ2Ni4zODUgMTcxLjgyOCA0NzEuNTgzIDE4MC44MjggNDcxLjU4MyAxODguMTYxVjQwNS4zNjVDNDcxLjU4MyA0MTIuNjk4IDQ2Ni4zODUgNDIxLjY5OCA0NjAuMDMxIDQyNS4zNjVMMjcxLjkzMiA1MzMuOTQ4QzI2NS41ODMgNTM3LjYxNSAyNTUuMTkzIDUzNy42MTUgMjQ4LjgzOSA1MzMuOTQ4TDYwLjc2MDQgNDI1LjM2NUM1NC40MDYyIDQyMS42OTggNDkuMjA4MyA0MTIuNjk4IDQ5LjIwODMgNDA1LjM2NVYxODguMTYxQzQ5LjIwODMgMTgwLjgyOCA1NC40MDYyIDE3MS44MjggNjAuNzYwNCAxNjguMTYxTDI0OC44MzkgNTkuNTc4MUMyNTUuMTkzIDU1LjkxMTUgMjY1LjU4MyA1NS45MTE1IDI3MS45MzIgNTkuNTc4MSIgZmlsbD0iI0ZGNDFCNCIvPgo8cGF0aCBkPSJNMTk1LjExMiAyNjQuNzM5SDMyMi41OTFWMTQ5LjExNEgzNjcuMTk1VjQ0NC42NTZIMzIyLjU5MVYzMDYuNjU2SDE5NS4xMTJWNDQ0LjY1NkgxNTAuNTI5VjE0OS4xMTRIMTk1LjExMlYyNjQuNzM5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTE5NS4wNTIgMTQ5LjM2NUgxNTAuNDk1VjQ0NC42NTZIMTk1LjA1MlYzMDYuNzY2SDMyMi40MjdWNDQ0LjY1NkgzNjYuOTlWMTQ5LjM2NUgzMjIuNDI3VjI2NC44OEgxOTUuMDUyVjE0OS4zNjVaIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjE0LjY2NjciIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIvPgo8L3N2Zz4K"}')}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.