├── themes └── hugowind │ ├── i18n │ ├── nl.json │ └── en.json │ ├── layouts │ ├── 404.html │ ├── _default │ │ ├── list.html │ │ ├── single.html │ │ └── baseof.html │ ├── index.html │ └── partials │ │ ├── footer.html │ │ ├── meta │ │ ├── googleNews.html │ │ ├── favicon.html │ │ ├── twitterCards.html │ │ ├── schema.html │ │ └── opengraph.html │ │ ├── translations.html │ │ ├── header.html │ │ └── head.html │ ├── theme.yaml │ ├── assets │ └── css │ │ └── main.css │ ├── postcss.config.js │ ├── LICENSE │ └── tailwind.config.js ├── config ├── _default │ ├── params.en.yaml │ ├── params.nl.yaml │ ├── languages.yaml │ └── config.yaml └── production │ └── config.yaml ├── .gitattributes ├── static ├── _redirects └── robots.txt ├── archetypes └── default.md ├── .editorconfig ├── package.json ├── content └── _index.md ├── netlify.toml ├── README.md └── .gitignore /themes/hugowind/i18n/nl.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/404.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/_default/params.en.yaml: -------------------------------------------------------------------------------- 1 | slogan: GoHugo and Tailwind CSS starter kit -------------------------------------------------------------------------------- /config/_default/params.nl.yaml: -------------------------------------------------------------------------------- 1 | slogan: GoHugo en Tailwind CSS starter kit -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /static/_redirects: -------------------------------------------------------------------------------- 1 | https://yoursite.netlify.app/* https://www.yoursite.com/:splat 200! -------------------------------------------------------------------------------- /static/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent:* 2 | 3 | Sitemap: https://www.yoursite.com/sitemap.xml -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | date: {{ .Date }} 4 | draft: true 5 | --- 6 | 7 | -------------------------------------------------------------------------------- /config/_default/languages.yaml: -------------------------------------------------------------------------------- 1 | en: 2 | languageName: International (English) 3 | languageCode: en 4 | weight: 1 5 | nl: 6 | languageName: Dutch (Nederlands) 7 | languageCode: nl 8 | weight: 2 -------------------------------------------------------------------------------- /config/production/config.yaml: -------------------------------------------------------------------------------- 1 | minify: 2 | disableJSON: true 3 | disableSVG: true 4 | DisableXML: true 5 | build: 6 | writeStats: true 7 | outputs: 8 | section: 9 | - HTML 10 | - JSON -------------------------------------------------------------------------------- /themes/hugowind/i18n/en.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": "copyright", 4 | "translation": "Copyright" 5 | }, 6 | { 7 | "id": "translation_available", 8 | "translation": "Translation available" 9 | } 10 | ] -------------------------------------------------------------------------------- /themes/hugowind/layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 |
3 |
4 | {{.Content}} 5 |
6 |
7 | {{ end }} -------------------------------------------------------------------------------- /themes/hugowind/layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /config/_default/config.yaml: -------------------------------------------------------------------------------- 1 | baseURL: '' 2 | languageCode: en 3 | title: HugoWind 4 | theme: hugowind 5 | paginate: 100 6 | defaultContentLanguage: en 7 | markup: 8 | goldmark: 9 | renderer: 10 | unsafe: true 11 | permalinks: 12 | pages: /:slug/ 13 | -------------------------------------------------------------------------------- /themes/hugowind/theme.yaml: -------------------------------------------------------------------------------- 1 | name: hugowind 2 | license: MIT 3 | description: 'Hugo Tailwind CSS Starter theme' 4 | homepage: 'https://themes.dev/' 5 | tags: [] 6 | features: [] 7 | min_version: 0.79.1 8 | author: 9 | name: 'Frank Spin, for themes.dev' 10 | homepage: 'https://www.themes.dev/' 11 | -------------------------------------------------------------------------------- /themes/hugowind/assets/css/main.css: -------------------------------------------------------------------------------- 1 | @import "tailwindcss/base"; 2 | @import "tailwindcss/components"; 3 | @import "tailwindcss/utilities"; 4 | 5 | /* Custom Styles */ 6 | 7 | 8 | /* If you want something explicit not to be purged */ 9 | 10 | /* purgecss start ignore */ 11 | /* purgecss end ignore */ 12 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/partials/meta/googleNews.html: -------------------------------------------------------------------------------- 1 | {{/* This is a modified version of _internal/google_news.html */}} 2 | {{ $params := .Params }} 3 | {{- if .IsPage -}} 4 | {{- with $.Param "seo.tags" -}} 5 | 6 | {{- end -}} 7 | {{- end -}} -------------------------------------------------------------------------------- /themes/hugowind/postcss.config.js: -------------------------------------------------------------------------------- 1 | const autoprefixer = require("autoprefixer")({}); 2 | const path = require("path"); 3 | 4 | module.exports = { 5 | plugins: [ 6 | require("postcss-import"), 7 | require("tailwindcss")(path.resolve(__dirname) + '/tailwind.config.js'), 8 | ...(process.env.HUGO_ENVIRONMENT === "production" ? [autoprefixer] : []), 9 | ], 10 | }; -------------------------------------------------------------------------------- /themes/hugowind/layouts/_default/baseof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{- partial "head.html" . -}} 4 | 5 | {{- partial "header.html" . -}} 6 |
7 | {{- block "main" . }}{{- end }} 8 |
9 | {{- partial "translations.html" . -}} 10 | {{- partial "footer.html" . -}} 11 | 12 | 13 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/partials/translations.html: -------------------------------------------------------------------------------- 1 | {{ if .IsTranslated }} 2 |
3 |
4 | 5 | {{ T "translation_available" }} 6 | 7 | 14 |
15 |
16 | {{ end }} -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | indent_size = 2 14 | 15 | [*.blade.php] 16 | indent_style = space 17 | indent_size = 2 18 | 19 | [lang.php] 20 | indent_style = space 21 | indent_size = 2 22 | 23 | [*.js] 24 | indent_style = space 25 | indent_size = 2 26 | 27 | [*.vue] 28 | indent_size = 2 29 | 30 | [*.yml] 31 | indent_size = 2 32 | 33 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hugowind", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "serve": "hugo server --disableFastRender", 8 | "serve:network": "hugo server --bind=0.0.0.0 --baseURL=http://0.0.0.0:1313 --disableFastRender", 9 | "build": "hugo --gc --minify" 10 | }, 11 | "author": "", 12 | "license": "ISC", 13 | "devDependencies": { 14 | "@tailwindcss/typography": "^0.4.0", 15 | "autoprefixer": "^10.2.3", 16 | "postcss": "^8.2.4", 17 | "postcss-cli": "^8.3.1", 18 | "postcss-import": "^14.0.0", 19 | "tailwindcss": "^2.0.2" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/partials/header.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | {{ if .IsHome }} 4 |
5 | {{ .Site.Title }} 6 | {{ with .Site.Params.slogan}} 7 | {{ . }} 8 | {{ end}} 9 |
10 | {{ else }} 11 | 12 | {{ .Site.Title }} 13 | {{ with .Site.Params.slogan}} 14 | {{ . }} 15 | {{ end }} 16 | 17 | {{ end }} 18 | 21 |
22 |
-------------------------------------------------------------------------------- /themes/hugowind/layouts/partials/meta/favicon.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/partials/meta/twitterCards.html: -------------------------------------------------------------------------------- 1 | 2 | {{ $params := .Params }} 3 | {{- with $.Param "seo.image" -}} 4 | {{ with $.Page.Resources.GetMatch . }} 5 | {{ with . }} 6 | {{ $image := (.Fill "1260x630 Center") }} 7 | 8 | 9 | {{ end }} 10 | {{- else -}} 11 | 12 | {{- end -}} 13 | {{- end -}} 14 | 15 | 16 | {{- with .Site.Params.twitterhandle -}} 17 | 18 | {{- end -}} 19 | -------------------------------------------------------------------------------- /content/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: HugoWind 3 | --- 4 | 5 | # HugoWind 6 | 7 | _HugoWind is still work in progress, check [HugoWind homepage](https://www.themes.dev/hugowind/) for updates_ 8 | 9 | Basic Starter Kit for [GoHugo](https://gohugo.io/) and [Tailwind CSS](https://www.tailwindcss.com), made by [themes.dev](https://www.themes.dev/). 10 | 11 | Comes with best practices out of the box, ready to be deployed at Netlify. Supports multi language mode, custom 404 pages and many more features. 12 | 13 | Easily edit your content with the [Netlify CMS](https://www.netlifycms.org/). Uses [alpine.js](https://github.com/alpinejs/alpine) for interactions. 14 | 15 | ## Stack 16 | 17 | * Tailwind 2.x 18 | * Tailwind Typography Plugin 19 | * GoHugo 0.79.x 20 | * AlpineJS 21 | * Netlify CMS 22 | 23 | ## Features 24 | 25 | * Basic Page & Blog Layouts 26 | * Multi Language 27 | * Top & Footer navigation 28 | * SEO best practices 29 | * Custom 404 pages 30 | * Image optimization 31 | * Purge CSS + HTML Minify configured 32 | * Ready to deploy @Netlify -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | publish = "public" 3 | command = "hugo --gc --minify" 4 | 5 | [context.production.environment] 6 | HUGO_VERSION = "0.79.1" 7 | NODE_VERSION = "14.2.0" 8 | HUGO_ENV = "production" 9 | HUGO_ENABLEGITINFO = "true" 10 | 11 | [context.split1] 12 | command = "hugo --enableGitInfo" 13 | 14 | [context.split1.environment] 15 | HUGO_VERSION = "0.79.1" 16 | NODE_VERSION = "14.2.0" 17 | 18 | HUGO_ENV = "production" 19 | 20 | [context.deploy-preview] 21 | command = "hugo --buildFuture -b $DEPLOY_PRIME_URL" 22 | 23 | [context.deploy-preview.environment] 24 | HUGO_VERSION = "0.79.1" 25 | NODE_VERSION = "14.2.0" 26 | 27 | [context.branch-deploy] 28 | command = "hugo -b $DEPLOY_PRIME_URL" 29 | 30 | [context.branch-deploy.environment] 31 | HUGO_VERSION = "0.79.1" 32 | NODE_VERSION = "14.2.0" 33 | 34 | [context.next.environment] 35 | HUGO_ENABLEGITINFO = "true" 36 | 37 | 38 | [[plugins]] 39 | package = "netlify-plugin-hugo-cache-resources" 40 | 41 | [plugins.inputs] 42 | # If it should show more verbose logs (optional, default = true) 43 | debug = true -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HugoWind 2 | 3 | _HugoWind is still work in progress, check [HugoWind homepage](https://www.themes.dev/hugowind/) for updates_ 4 | 5 | Basic Starter Kit for [GoHugo](https://gohugo.io/) and [Tailwind CSS](https://www.tailwindcss.com), made by [themes.dev](https://www.themes.dev/). 6 | 7 | Comes with best practices out of the box, ready to be deployed at Netlify. Supports multi language mode, custom 404 pages and many more features. 8 | 9 | Easily edit your content with the [Netlify CMS](https://www.netlifycms.org/). Uses [alpine.js](https://github.com/alpinejs/alpine) for interactions. 10 | 11 | ## Stack 12 | 13 | * Tailwind 2.x 14 | * Tailwind Typography Plugin 15 | * GoHugo 0.79.x 16 | * AlpineJS 17 | * Netlify CMS 18 | 19 | ## Features 20 | 21 | * Basic Page & Blog Layouts 22 | * Multi Language 23 | * Top & Footer navigation 24 | * SEO best practices 25 | * Custom 404 pages 26 | * Image optimization 27 | * Purge CSS + HTML Minify configured 28 | * Ready to deploy @Netlify 29 | 30 | This website is build with [HugoWind](https://hugowind.netlify.app/) and shows all features. 31 | -------------------------------------------------------------------------------- /themes/hugowind/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2021 themes.dev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/partials/meta/schema.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{- with .Site.Social.GooglePlus -}} 5 | {{- end -}} 6 | {{- if .IsPage -}} 7 | {{- $ISO8601 := "2006-01-02T15:04:05-07:00" -}} 8 | {{- if not .PublishDate.IsZero -}} 9 | 10 | {{- end -}} 11 | {{- if not .Date.IsZero -}} 12 | 13 | {{- end -}} 14 | 15 | {{- with $.Param "images" -}} 16 | {{- range first 6 . -}} 17 | 18 | {{- end -}} 19 | {{- end -}} 20 | {{/* Output all taxonomies as schema.org keywords */}} 21 | 22 | {{- end -}} -------------------------------------------------------------------------------- /themes/hugowind/tailwind.config.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | const { fontFamily } = require('tailwindcss/defaultTheme') 3 | 4 | module.exports = { 5 | purge: { 6 | enabled: process.env.HUGO_ENVIRONMENT === "production", 7 | content: [path.resolve(__dirname) + "/layouts/**/*.html"], 8 | options: { 9 | whitelist: [], 10 | }, 11 | }, 12 | 13 | theme: { 14 | extend: { 15 | 16 | fontFamily: { 17 | ...fontFamily, 18 | 'sans': 'Poppins, sans-serif' 19 | }, 20 | 21 | typography: (theme) => ({ 22 | DEFAULT: { 23 | css: { 24 | color: theme('colors.gray.700'), 25 | h2: { 26 | color: theme('colors.gray.800'), 27 | }, 28 | 29 | h3: { 30 | color: theme('colors.gray.700'), 31 | }, 32 | strong: { 33 | color: theme('colors.gray.800'), 34 | }, 35 | em: { 36 | color: theme('colors.gray.400'), 37 | }, 38 | a: { 39 | color: theme('colors.green.500'), 40 | '&:hover': { 41 | color: theme('colors.gray.300') 42 | }, 43 | }, 44 | }, 45 | }, 46 | }) 47 | } 48 | }, 49 | variants: {}, 50 | plugins: [ 51 | require('@tailwindcss/typography'), 52 | ] 53 | } 54 | 55 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/partials/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{ $title := (cond (ne ($.Param "seo.title") nil) ($.Param "seo.title") ( printf "%s | %s" .Title .Site.Title) ) }} 4 | {{ $description := (cond (ne ($.Param "seo.description") nil) ($.Param "seo.description") .Description ) }} 5 | {{$title}} 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | {{- with .Keywords -}} 18 | 19 | {{- end -}} 20 | 21 | {{- partial "meta/opengraph" . -}} 22 | {{- partial "meta/googleNews" . -}} 23 | {{- partial "meta/schema" . -}} 24 | {{- partial "meta/twitterCards" . -}} 25 | {{- partial "meta/favicon" . -}} 26 | 27 | {{ if .Params.seo.noindex}} 28 | 29 | {{ end }} 30 | 31 | {{- if .IsHome -}} 32 | {{- range .Site.AllPages -}} 33 | {{- $section := .Section -}} 34 | {{- with .OutputFormats.Get "opensearch" -}} 35 | 36 | {{- end -}} 37 | {{- end -}} 38 | {{- end -}} 39 | 40 | {{ with .OutputFormats.Get "RSS" }} 41 | 42 | 43 | {{- end -}} 44 | 45 | {{ range .Translations }} 46 | 47 | {{ end}} 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | {{ $css := resources.Get "css/main.css" }} 58 | {{ if .Site.IsServer }} 59 | {{ $style := $css | resources.PostCSS }} 60 | 61 | {{ else }} 62 | {{ $style := $css | resources.PostCSS | minify | fingerprint | resources.PostProcess }} 63 | 64 | {{ end }} 65 | 66 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig 2 | 3 | # Created by https://www.gitignore.io/api/visualstudiocode,windows,hugo,node 4 | # Edit at https://www.gitignore.io/?templates=visualstudiocode,windows,hugo,node 5 | 6 | ### Hugo ### 7 | # gitginore template for Hugo projects 8 | # website: https://gohugo.io 9 | 10 | # generated files by hugo 11 | /public/ 12 | .idea 13 | # executable may be added to repository 14 | hugo.exe 15 | hugo.darwin 16 | hugo.linux 17 | 18 | /resources/ 19 | 20 | ### Node ### 21 | # Logs 22 | logs 23 | *.log 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | lerna-debug.log* 28 | 29 | # Diagnostic reports (https://nodejs.org/api/report.html) 30 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 31 | 32 | # Runtime data 33 | pids 34 | *.pid 35 | *.seed 36 | *.pid.lock 37 | 38 | # Directory for instrumented libs generated by jscoverage/JSCover 39 | lib-cov 40 | 41 | # Coverage directory used by tools like istanbul 42 | coverage 43 | 44 | # nyc test coverage 45 | .nyc_output 46 | 47 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 48 | .grunt 49 | 50 | # Bower dependency directory (https://bower.io/) 51 | bower_components 52 | 53 | # node-waf configuration 54 | .lock-wscript 55 | 56 | # Compiled binary addons (https://nodejs.org/api/addons.html) 57 | build/Release 58 | 59 | # Dependency directories 60 | node_modules/ 61 | jspm_packages/ 62 | 63 | # TypeScript v1 declaration files 64 | typings/ 65 | 66 | # Optional npm cache directory 67 | .npm 68 | 69 | # Optional eslint cache 70 | .eslintcache 71 | 72 | # Optional REPL history 73 | .node_repl_history 74 | 75 | # Output of 'npm pack' 76 | *.tgz 77 | 78 | # Yarn Integrity file 79 | .yarn-integrity 80 | 81 | # dotenv environment variables file 82 | .env 83 | .env.test 84 | 85 | # parcel-bundler cache (https://parceljs.org/) 86 | .cache 87 | 88 | # next.js build output 89 | .next 90 | 91 | # nuxt.js build output 92 | .nuxt 93 | 94 | # vuepress build output 95 | .vuepress/dist 96 | 97 | # Serverless directories 98 | .serverless/ 99 | 100 | # FuseBox cache 101 | .fusebox/ 102 | 103 | # DynamoDB Local files 104 | .dynamodb/ 105 | 106 | ### VisualStudioCode ### 107 | .vscode/* 108 | !.vscode/settings.json 109 | !.vscode/tasks.json 110 | !.vscode/launch.json 111 | !.vscode/extensions.json 112 | 113 | ### VisualStudioCode Patch ### 114 | # Ignore all local history of files 115 | .history 116 | 117 | ### Windows ### 118 | # Windows thumbnail cache files 119 | Thumbs.db 120 | ehthumbs.db 121 | ehthumbs_vista.db 122 | 123 | # Dump file 124 | *.stackdump 125 | 126 | # Folder config file 127 | [Dd]esktop.ini 128 | 129 | # Recycle Bin used on file shares 130 | $RECYCLE.BIN/ 131 | 132 | # Windows Installer files 133 | *.cab 134 | *.msi 135 | *.msix 136 | *.msm 137 | *.msp 138 | 139 | # Windows shortcuts 140 | *.lnk 141 | 142 | # End of https://www.gitignore.io/api/visualstudiocode,windows,hugo,node 143 | 144 | # Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option) 145 | 146 | 147 | # Local Netlify folder 148 | .netlify 149 | -------------------------------------------------------------------------------- /themes/hugowind/layouts/partials/meta/opengraph.html: -------------------------------------------------------------------------------- 1 | {{/* This is a heavily modified version of _internal/opengraph.html */}} 2 | {{ $title := (cond (ne ($.Param "seo.title") nil) ($.Param "seo.title") ( printf "%s | %s" .Title .Site.Title) ) }} 3 | {{ $params := .Params }} 4 | 5 | 6 | 7 | 8 | 9 | 10 | {{- with $.Param "seo.image" -}} 11 | {{ with $.Page.Resources.GetMatch . }} 12 | {{ with . }} 13 | {{ $image := (.Fill "1200x630 Center") }} 14 | 15 | {{ end}} 16 | {{- if in $.Site.BaseURL "https://" -}} 17 | 18 | {{- end -}} 19 | 20 | {{- end -}} 21 | {{- end -}} 22 | 23 | 24 | {{- if .IsPage -}} 25 | {{- if not .PublishDate.IsZero -}} 26 | 27 | {{ else if not .Date.IsZero -}} 28 | 29 | {{- end -}} 30 | {{- if not .Lastmod.IsZero -}} 31 | 32 | {{- end -}} 33 | {{ else -}} 34 | {{- if not .Date.IsZero -}} 35 | {{- end -}} 36 | {{- end -}} 37 | {{- with $.Param "audio" -}} 38 | 39 | {{- if in $.Site.BaseURL "https://" -}} 40 | 41 | {{- end -}} 42 | {{- end -}} 43 | 44 | 45 | {{- with .Site.Language -}} 46 | 47 | {{- end -}} 48 | {{- if .IsTranslated -}} 49 | {{ range .Translations -}} 50 | 51 | {{- end -}} 52 | {{- end -}} 53 | {{- with .Site.Params.title -}} 54 | 55 | {{- end -}} 56 | 57 | 58 | 59 | {{- with $.Param "videos" -}} 60 | {{ range . -}} 61 | 62 | {{- if in .Site.BaseURL "https://" -}} 63 | 64 | {{- end -}} 65 | {{- end -}} 66 | {{- end -}} 67 | 68 | 69 | {{/* If it is part of a series, link to related articles */}} 70 | {{ $permalink := .RelPermalink -}} 71 | {{ $siteSeries := .Site.Taxonomies.series -}} 72 | {{- with $.Param "series" -}} 73 | {{ range $name := . -}} 74 | {{ $series := index $siteSeries $name -}} 75 | {{- with $series.Pages -}} 76 | {{ range $page := first 6 $series.Pages -}} 77 | {{- if ne $page.Permalink $permalink -}} 78 | 79 | {{- end -}} 80 | {{- end -}} 81 | {{- end -}} 82 | {{- end -}} 83 | {{- end -}} 84 | {{- if .IsPage -}} 85 | 86 | {{ range .Site.Data.authors.authors -}} 87 | {{- with .facebook -}} 88 | 89 | {{- end -}} 90 | {{- end -}} 91 | {{- with .Site.Social.facebook -}} 92 | 93 | {{- end -}} 94 | {{- with $.Param "tags" -}} 95 | {{ range first 6 . -}} 96 | 97 | {{- end -}} 98 | {{- end -}} 99 | {{- end -}} 100 | 101 | 102 | 103 | {{- with .Site.Params.facebookadmin -}} 104 | 105 | {{- end -}} 106 | {{- with .Site.Params.facebookappid -}} 107 | 108 | {{- end -}} --------------------------------------------------------------------------------