Revert "CAMEL-11492 New Camel website" This reverts commit 4c608ba83ff92cff5e706f1b0dc461906243cac9.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cfd7aa86 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cfd7aa86 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cfd7aa86 Branch: refs/heads/master Commit: cfd7aa8647781007a132b08f3235e06d5d53d222 Parents: f3e2625 Author: Andrea Cosentino <anco...@gmail.com> Authored: Thu Jul 6 08:43:53 2017 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Thu Jul 6 08:43:53 2017 +0200 ---------------------------------------------------------------------- camel-website/.eslintrc.js | 33 - camel-website/.gitignore | 6 +- camel-website/.yarnclean | 43 - camel-website/Gruntfile.js | 62 + camel-website/archetypes/default.md | 6 - camel-website/config.toml | 55 - camel-website/content/.gitignore | 3 - camel-website/content/_index.md | 1 - camel-website/content/about.adoc | 2 - camel-website/data/.gitignore | 1 - camel-website/gulpfile.js | 48 - camel-website/i18n/en.toml | 41 - camel-website/layouts/404.html | 1 - camel-website/layouts/_default/li.html | 17 - camel-website/layouts/_default/list.html | 21 - camel-website/layouts/_default/single.html | 19 - camel-website/layouts/_default/terms.html | 12 - camel-website/layouts/index.html | 11 - camel-website/layouts/partials/data/description | 11 - camel-website/layouts/partials/data/title | 17 - camel-website/layouts/partials/disqus.html | 3 - .../layouts/partials/entry/content.html | 3 - .../layouts/partials/entry/footer.html | 10 - .../layouts/partials/entry/header.html | 13 - camel-website/layouts/partials/entry/meta.html | 18 - .../layouts/partials/entry/taxonomy-list.html | 14 - .../layouts/partials/extras/term_cloud.html | 27 - camel-website/layouts/partials/footer.html | 22 - .../layouts/partials/footer/copyright.html | 15 - camel-website/layouts/partials/head/head.html | 8 - .../layouts/partials/head/includes.html | 7 - camel-website/layouts/partials/head/meta.html | 5 - .../layouts/partials/head/opengraph.html | 73 - camel-website/layouts/partials/header.html | 19 - .../layouts/partials/nav/entry_nav.html | 33 - .../layouts/partials/nav/menus/main.html | 17 - .../layouts/partials/nav/menus/social.html | 16 - .../layouts/partials/nav/pagination.html | 46 - camel-website/layouts/partials/svg/icons.html | 38 - camel-website/layouts/shortcodes/center | 3 - camel-website/npm-shrinkwrap.json | 1253 ++++ camel-website/package.json | 36 +- camel-website/pom.xml | 74 +- .../resources/styles/impact/css/pygmentize.css | 126 + .../main/resources/styles/impact/css/site.css | 234 + .../src/main/resources/user-manual/index.html | 38 + camel-website/src/scripts/asciidoctor-shim.js | 34 - camel-website/src/scripts/site.js | 1 - camel-website/src/stylesheets/_config.scss | 3 - camel-website/src/stylesheets/_nav.scss | 40 - camel-website/src/stylesheets/site.scss | 9 - camel-website/static/.gitignore | 3 - camel-website/static/.htaccess | 935 --- camel-website/static/404.html | 60 - camel-website/static/apple-touch-icon.png | Bin 3959 -> 0 bytes camel-website/static/browserconfig.xml | 12 - camel-website/static/favicon.ico | Bin 766 -> 0 bytes camel-website/static/humans.txt | 3 - camel-website/static/index.html | 71 - camel-website/static/robots.txt | 5 - camel-website/static/tile-wide.png | Bin 1854 -> 0 bytes camel-website/static/tile.png | Bin 3482 -> 0 bytes camel-website/webpack.config.js | 64 - camel-website/yarn.lock | 5542 ------------------ 64 files changed, 1777 insertions(+), 7566 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/.eslintrc.js ---------------------------------------------------------------------- diff --git a/camel-website/.eslintrc.js b/camel-website/.eslintrc.js deleted file mode 100644 index 759e42d..0000000 --- a/camel-website/.eslintrc.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -const path = require('path'); - -module.exports = { - 'parserOptions': { - 'ecmaVersion': 6, - 'sourceType': 'module', - }, - 'plugins': [ - 'header', - ], - 'rules': { - 'max-len': [2, 120], - 'header/header': [2, '../buildingtools/src/main/resources/header-java.txt'], - }, - 'extends': 'google', -}; http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/.gitignore ---------------------------------------------------------------------- diff --git a/camel-website/.gitignore b/camel-website/.gitignore index 579bf5c..f4af8ab 100644 --- a/camel-website/.gitignore +++ b/camel-website/.gitignore @@ -1,4 +1,2 @@ -node_modules -node -asciidoctor -public +node_modules/ +node/ http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/.yarnclean ---------------------------------------------------------------------- diff --git a/camel-website/.yarnclean b/camel-website/.yarnclean deleted file mode 100644 index d9454e7..0000000 --- a/camel-website/.yarnclean +++ /dev/null @@ -1,43 +0,0 @@ -# test directories -__tests__ -test -tests -powered-test - -# asset directories -docs -doc -website -images -assets - -# examples -example -examples - -# code coverage directories -coverage -.nyc_output - -# build scripts -Makefile -Gulpfile.js -Gruntfile.js - -# configs -.tern-project -.gitattributes -.editorconfig -.*ignore -.eslintrc -.jshintrc -.flowconfig -.documentup.json -.yarn-metadata.json -.*.yml -*.yml -!svgo/.svgo.yml - -# misc -*.gz -*.md http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/Gruntfile.js ---------------------------------------------------------------------- diff --git a/camel-website/Gruntfile.js b/camel-website/Gruntfile.js new file mode 100644 index 0000000..bbf181c --- /dev/null +++ b/camel-website/Gruntfile.js @@ -0,0 +1,62 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + + 'http-server': { + dev: { + root: 'target/classes/user-manual/', + port: 8282, + host: "0.0.0.0", + showDir: false, + autoIndex: true, + ext: "html", + runInBackground: true, + logFn: function(req, res, error) { }, + + + // specify a logger function. By default the requests are + // sent to stdout. + // logFn: function(req, res, error) { }, + + // Proxies all requests which can't be resolved locally to the given url + // Note this this will disable 'showDir' + // proxy: "http://someurl.com", + // Tell grunt task to open the browser + // openBrowser : false + } + + }, + linkChecker: { + dev: { + site: 'localhost', + options: { + initialPort: 8282 + } + } + } + }); + + grunt.loadNpmTasks('grunt-http-server'); + grunt.loadNpmTasks('grunt-link-checker'); + + // Default task(s). + grunt.registerTask('default', ['http-server', 'linkChecker']); + +}; http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/archetypes/default.md ---------------------------------------------------------------------- diff --git a/camel-website/archetypes/default.md b/camel-website/archetypes/default.md deleted file mode 100644 index f5a9e45..0000000 --- a/camel-website/archetypes/default.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "{{ replace .TranslationBaseName "-" " " | title }}" -date: {{ .Date }} -draft: true ---- - http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/config.toml ---------------------------------------------------------------------- diff --git a/camel-website/config.toml b/camel-website/config.toml deleted file mode 100644 index 44ae254..0000000 --- a/camel-website/config.toml +++ /dev/null @@ -1,55 +0,0 @@ -baseURL = "https://camel.apache.org/" -languageCode = "en-us" -title = "Apache Camel: Integration that you want" - -[params] - comments = "false" - copyrightStartYear = "2004" - copyrightOwner = "The Apache Software Foundation." - copyrightNotice = "Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners." - description = "Apache Camel framework for easy integration" - -[taxonomies] - version = "versions" - -[[menu.main]] - name = "Home" - identifier = "home" - pre = "<i class='fa fa-space-shuttle'></i>" - weight = 1 - url = "/" - -[[menu.main]] - name = "About" - identifier = "about" - pre = "<i class='fa fa-space-shuttle'></i>" - weight = 10 - url = "/about/" - -[[menu.main]] - name = "News" - identifier = "news" - pre = "<i class='fa fa-space-shuttle'></i>" - weight = 20 - url = "/blog/" - -[[menu.main]] - name = "Getting started" - identifier = "getting-started" - pre = "<i class='fa fa-space-shuttle'></i>" - weight = 30 - url = "/getting-started/" - -[[menu.main]] - name = "Manual" - identifier = "manual" - pre = "<i class='fa fa-space-shuttle'></i>" - weight = 40 - url = "/manual/" - -[[menu.main]] - name = "Components" - identifier = "components" - pre = "<i class='fa fa-space-shuttle'></i>" - weight = 50 - url = "/components/" http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/content/.gitignore ---------------------------------------------------------------------- diff --git a/camel-website/content/.gitignore b/camel-website/content/.gitignore deleted file mode 100644 index 7d84395..0000000 --- a/camel-website/content/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -components.adoc -components - http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/content/_index.md ---------------------------------------------------------------------- diff --git a/camel-website/content/_index.md b/camel-website/content/_index.md deleted file mode 100644 index 1b37687..0000000 --- a/camel-website/content/_index.md +++ /dev/null @@ -1 +0,0 @@ -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/content/about.adoc ---------------------------------------------------------------------- diff --git a/camel-website/content/about.adoc b/camel-website/content/about.adoc deleted file mode 100644 index cf9dac9..0000000 --- a/camel-website/content/about.adoc +++ /dev/null @@ -1,2 +0,0 @@ -About Camel -^^^^^^^^^^^ http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/data/.gitignore ---------------------------------------------------------------------- diff --git a/camel-website/data/.gitignore b/camel-website/data/.gitignore deleted file mode 100644 index 778c242..0000000 --- a/camel-website/data/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/assets.json http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/gulpfile.js ---------------------------------------------------------------------- diff --git a/camel-website/gulpfile.js b/camel-website/gulpfile.js deleted file mode 100644 index 75b7ed5..0000000 --- a/camel-website/gulpfile.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -const gulp = require('gulp'); -const rename = require('gulp-rename'); -const chmod = require('gulp-chmod'); -const replace = require('gulp-replace'); - -const version = process.env.npm_package_version.replace(/-.*/, ''); - -gulp.task('docs', ['component-doc']); - -gulp.task('component-doc', () => { - gulp.src('../components/readme.adoc') - .pipe(replace(/link:.*\/(.*).adoc(\[.*)/g, `link:components/${version}/$1$2`)) - .pipe(rename('components.adoc')) - .pipe(gulp.dest('content')); - gulp.src('../components/**/src/main/docs/*.adoc') - .pipe(rename({dirname: ''})) - .pipe(gulp.dest(`content/components/${version}`)); -}); - -gulp.task('asciidoctor-shim', () => { - gulp.src('src/scripts/asciidoctor-shim.js') - .pipe(rename('asciidoctor')) - .pipe(chmod(0o755)) - .pipe(gulp.dest('node_modules/.bin/')); -}); - -gulp.task('default', ['docs', 'asciidoctor-shim']); - -gulp.task('watch', () => { - gulp.watch('../**/*.adoc', ['docs']); -}); - http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/i18n/en.toml ---------------------------------------------------------------------- diff --git a/camel-website/i18n/en.toml b/camel-website/i18n/en.toml deleted file mode 100644 index a45b2a0..0000000 --- a/camel-website/i18n/en.toml +++ /dev/null @@ -1,41 +0,0 @@ -[by] - other = "by" - -[currentPage] - other = "Current page" - -[mainMenu] - other = "Main Menu" - -[next] - other = "Next" - -[nextPage] - other = "Next page" - -[nextPost] - other = "Next post" - -[openSomethingInNewTab] - other = "Open {{ .Something }} in new tab" - -[page] - other = "Page" - -[previous] - other = "Previous" - -[previousPage] - other = "Previous page" - -[previousPost] - other = "Previous post" - -[postedOn] - other = "Posted on" - -[recentPosts] - other = "Recent Posts" - -[socialMenu] - other = "Social Menu" http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/404.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/404.html b/camel-website/layouts/404.html deleted file mode 100644 index fce07b2..0000000 --- a/camel-website/layouts/404.html +++ /dev/null @@ -1 +0,0 @@ -404 :) http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/_default/li.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/_default/li.html b/camel-website/layouts/_default/li.html deleted file mode 100644 index deb8d5d..0000000 --- a/camel-website/layouts/_default/li.html +++ /dev/null @@ -1,17 +0,0 @@ -<article class='list-item'> - <div class='meta'> - <span> - <span class='screen-reader'>{{ i18n "postedOn" }} </span> - <time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'> - {{- .Date.Format "2006, Jan 02" -}} - </time> - </span> - </div> - <header class='list-item-header'> - <h3 class='list-item-title'> - <a href='{{ .Permalink }}'> - {{- .Title -}} - </a> - </h3> - </header> -</article> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/_default/list.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/_default/list.html b/camel-website/layouts/_default/list.html deleted file mode 100644 index 106095b..0000000 --- a/camel-website/layouts/_default/list.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ partial "header" . }} - -<main class='main'> - <section class='list-container'> - <h1 class='list-title title'> - {{- if .Data.Singular -}} - <span class='taxonomy-type'>{{ .Data.Singular | title }}: </span> - {{- end -}} - {{- .Title -}} - </h1> - <div class='list'> - {{ range .Paginator.Pages }} - {{ .Render "li" }} - {{ end }} - </div> - - {{ partial "nav/pagination" . }} - </section> -</main> - -{{ partial "footer" . }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/_default/single.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/_default/single.html b/camel-website/layouts/_default/single.html deleted file mode 100644 index b38dca7..0000000 --- a/camel-website/layouts/_default/single.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ partial "header" . }} - -<main class='row content'> - <article lang='{{ .Params.Lang | default .Lang }}' class='entry'> - {{ partial "entry/header" . }} - {{ partial "entry/content" . }} - {{ partial "entry/footer" . }} - </article> - - {{ if not .Site.Params.HideEntryNavigation }} - {{ partial "nav/entry_nav" . }} - {{ end }} - - {{ if not ( eq .Params.comments false ) }} - {{ partial "disqus" . }} - {{ end }} -</main> - -{{ partial "footer" . }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/_default/terms.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/_default/terms.html b/camel-website/layouts/_default/terms.html deleted file mode 100644 index c66f917..0000000 --- a/camel-website/layouts/_default/terms.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ partial "header" . }} - -<main class='main'> - <section class='list-container'> - <h1 class='list-title title'> - {{- .Title -}} - </h1> - {{ partial "extras/term_cloud" . }} - </section> -</main> - -{{ partial "footer" . }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/index.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/index.html b/camel-website/layouts/index.html deleted file mode 100644 index 1fa529a..0000000 --- a/camel-website/layouts/index.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ partial "header" . }} - -<main class='main'> - {{ if .Content }} - <article class='entry'> - {{ partial "entry/content" . }} - </article> - {{ end }} -</main> - -{{ partial "footer" . }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/data/description ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/data/description b/camel-website/layouts/partials/data/description deleted file mode 100644 index baf52cf..0000000 --- a/camel-website/layouts/partials/data/description +++ /dev/null @@ -1,11 +0,0 @@ -{{- with .Description -}} - {{- . -}} -{{- else -}} - {{- if .IsPage -}} - {{- .Summary -}} - {{- else -}} - {{- with .Site.Params.description -}} - {{- . -}} - {{- end -}} - {{- end -}} -{{- end -}} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/data/title ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/data/title b/camel-website/layouts/partials/data/title deleted file mode 100644 index dd70e01..0000000 --- a/camel-website/layouts/partials/data/title +++ /dev/null @@ -1,17 +0,0 @@ -{{- $title := .Title -}} -{{- $siteTitle := .Site.Title -}} -{{- $authorName := .Site.Author.name -}} -{{- $sep := ( .Site.Params.SEO.titleSeparator | default "â¢" ) -}} -{{- if .IsHome -}} - {{ $siteTitle }} -{{- else if eq .Kind "taxonomy" -}} - {{ title .Data.Singular }}: {{ $title }} {{ $sep }} {{ $siteTitle }} -{{- else if ( or .IsNode ( eq .Section "page" ) ) -}} - {{ $title }} {{ $sep }} {{ $siteTitle }} -{{- else -}} - {{- with $authorName -}} - {{ $title }} {{ $sep }} {{ . }} - {{- else -}} - {{ $title }} {{ $sep }} {{ $siteTitle }} - {{- end -}} -{{- end -}} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/disqus.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/disqus.html b/camel-website/layouts/partials/disqus.html deleted file mode 100644 index 5347ada..0000000 --- a/camel-website/layouts/partials/disqus.html +++ /dev/null @@ -1,3 +0,0 @@ -<div class='comments-container'> - {{ template "_internal/disqus.html" . }} -</div> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/entry/content.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/entry/content.html b/camel-website/layouts/partials/entry/content.html deleted file mode 100644 index ea9c2f7..0000000 --- a/camel-website/layouts/partials/entry/content.html +++ /dev/null @@ -1,3 +0,0 @@ -<div class='entry-content'> - {{ .Content }} -</div> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/entry/footer.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/entry/footer.html b/camel-website/layouts/partials/entry/footer.html deleted file mode 100644 index d811a67..0000000 --- a/camel-website/layouts/partials/entry/footer.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ if not ( eq .Section "page" ) }} -<footer class='entry-footer'> - {{ range $taxonomy, $pages := .Site.Taxonomies }} - {{ if ( index $.Params $taxonomy ) }} - {{ $.Scratch.Set "taxonomy" $taxonomy }} - {{ partial "entry/taxonomy-list" $ }} - {{ end }} - {{ end }} -</footer> -{{ end }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/entry/header.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/entry/header.html b/camel-website/layouts/partials/entry/header.html deleted file mode 100644 index 709e4fd..0000000 --- a/camel-website/layouts/partials/entry/header.html +++ /dev/null @@ -1,13 +0,0 @@ -<header class='entry-header'> - <div class='entry-info'> - <h1 class='entry-title title'> - {{- .Title -}} - </h1> - {{ with .Description }} - <p class='entry-subtitle'> - {{ . }} - </p> - {{ end }} - </div> - {{ partial "entry/meta" . }} -</header> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/entry/meta.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/entry/meta.html b/camel-website/layouts/partials/entry/meta.html deleted file mode 100644 index e331120..0000000 --- a/camel-website/layouts/partials/entry/meta.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ if not ( eq .Section "page" ) }} -<div class='meta'> - <span class='posted-on'> - {{ partial "svg/icons" "calendar" }} - <span class='screen-reader'>{{ i18n "postedOn" }} </span> - <time class='date' datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'> - {{- .Date.Format ( or .Site.Params.dateFormat "2006, Jan 02" ) -}} - </time> - </span> - {{ with .Site.Author.name }} - <span class='byline'> - {{ partial "svg/icons" "author" }} - <span class='screen-reader'> {{ i18n "by" }} </span> - {{ . }} - </span> - {{ end }} -</div> -{{ end }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/entry/taxonomy-list.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/entry/taxonomy-list.html b/camel-website/layouts/partials/entry/taxonomy-list.html deleted file mode 100644 index 7a9b539..0000000 --- a/camel-website/layouts/partials/entry/taxonomy-list.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ $txs := ( $.Scratch.Get "taxonomy" ) }} -{{ $tx := ( $txs | singularize ) }} -<div class='{{ $txs }}'> - <span class='{{ $tx }}-icon'> - {{ partial "svg/icons" $tx }} - </span> - <span class='screen-reader'>{{ $txs | title }}: </span> - {{- range $i, $term := ( index $.Params $txs ) -}} - {{- if gt $i 0 }}, {{ end -}} - <a class='{{ $tx }}' href='{{ (print $txs "/") | relURL }}{{ $term | urlize }}'> - {{- $term -}} - </a> - {{- end -}} -</div> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/extras/term_cloud.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/extras/term_cloud.html b/camel-website/layouts/partials/extras/term_cloud.html deleted file mode 100644 index bac9b08..0000000 --- a/camel-website/layouts/partials/extras/term_cloud.html +++ /dev/null @@ -1,27 +0,0 @@ -{{- if gt (len .Data.Terms) 0 -}} - {{- $maxSize := 2.0 -}} - {{- $minSize := 1.0 -}} - {{- $sizeSpread := ( sub $maxSize $minSize ) -}} - - {{- $maxCount := (index .Data.Terms.ByCount 0).Count -}} - {{- $minCount := (index .Data.Terms.ByCount.Reverse 0).Count -}} - {{- $countSpread := ( sub $maxCount $minCount ) -}} - - {{- $.Scratch.Set "sizeStep" 0 -}} - {{- if gt $countSpread 0 -}} - {{- $.Scratch.Set "sizeStep" ( div $sizeSpread $countSpread ) -}} - {{- end -}} - - <ul class='term-cloud'> - {{- range .Data.Terms.Alphabetical -}} - {{- $count := .Count -}} - {{- $sizeStep := ( $.Scratch.Get "sizeStep" ) -}} - {{- $size := ( add $minSize ( mul $sizeStep ( sub $count $minCount ) ) ) -}} - <li> - <a href='{{ $.Data.Plural | relURL }}/{{ .Term | urlize }}' style='font-size:{{ $size }}em'> - {{- .Term -}} - </a> - </li> - {{- end -}} - </ul> -{{- end -}} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/footer.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/footer.html b/camel-website/layouts/partials/footer.html deleted file mode 100644 index a62890c..0000000 --- a/camel-website/layouts/partials/footer.html +++ /dev/null @@ -1,22 +0,0 @@ - <footer id='footer' class='footer-container'> - <div class='footer'> - <div class='social'> - {{ partial "nav/menus/social" . }} - </div> - - <div class='copyright'> - {{ partial "footer/copyright" . }} - </div> - </div> - </footer> - - </div> - - <script src='{{ print "js/" .Site.Data.assets.site.js | relURL }}'></script> - {{ range .Site.Params.customJS }} - <script src='{{ . | relURL }}'></script> - {{ end }} - -</body> - -</html> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/footer/copyright.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/footer/copyright.html b/camel-website/layouts/partials/footer/copyright.html deleted file mode 100644 index 40f1cbc..0000000 --- a/camel-website/layouts/partials/footer/copyright.html +++ /dev/null @@ -1,15 +0,0 @@ -<p> -{{- with .Site.Copyright -}} - {{ . }} -{{- else -}} - {{ with .Site.Params.CopyrightStartYear }} - {{ if lt ( int . ) now.Year }} - {{ $.Scratch.Set "copyrightStartYear" . }} - {{ end }} - {{ end }} - © {{ with $.Scratch.Get "copyrightStartYear" }}{{ . }}-{{ end }}{{ now.Year }} {{ or .Site.Params.CopyrightOwner ( or .Site.Author.name .Site.Title ) }} -</p> -<p> - {{ .Site.Params.CopyrightNotice }} -{{- end -}} -</p> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/head/head.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/head/head.html b/camel-website/layouts/partials/head/head.html deleted file mode 100644 index da9e930..0000000 --- a/camel-website/layouts/partials/head/head.html +++ /dev/null @@ -1,8 +0,0 @@ -<head> - {{ partial "head/meta" . }} - <base href='{{ .Site.BaseURL }}'> - <title>{{ partial "data/title" . }}</title> - <link rel='canonical' href='{{ .Permalink }}'> - <link href='{{ .RSSLink }}' rel='alternate' type='application/rss+xml' title='{{ .Site.Title }}' /> - {{ partial "head/includes" . }} -</head> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/head/includes.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/head/includes.html b/camel-website/layouts/partials/head/includes.html deleted file mode 100644 index 46c851a..0000000 --- a/camel-website/layouts/partials/head/includes.html +++ /dev/null @@ -1,7 +0,0 @@ -<link rel='icon' href='{{ ( or .Site.Params.favicon "favicon.ico" ) | relURL }}'> -<link href='//fonts.googleapis.com/css?family=Raleway:400,300,600' rel='stylesheet' type='text/css'> -<link rel='stylesheet' href='{{ print "css/" .Site.Data.assets.site.css | relURL }}'> -{{ range .Site.Params.customCSS }} - <link rel='stylesheet' href='{{ . | relURL }}'> -{{ end }} -{{ template "_internal/google_analytics_async.html" . }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/head/meta.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/head/meta.html b/camel-website/layouts/partials/head/meta.html deleted file mode 100644 index 3da7145..0000000 --- a/camel-website/layouts/partials/head/meta.html +++ /dev/null @@ -1,5 +0,0 @@ -<meta charset='utf-8'> -<meta name='viewport' content='width=device-width, initial-scale=1'> -<meta name='description' content='{{ partial "data/description" . }}'> - -{{ partial "head/opengraph" . }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/head/opengraph.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/head/opengraph.html b/camel-website/layouts/partials/head/opengraph.html deleted file mode 100644 index 3dfc993..0000000 --- a/camel-website/layouts/partials/head/opengraph.html +++ /dev/null @@ -1,73 +0,0 @@ -<meta property='og:title' content='{{ partial "data/title" . }}'> -<meta property='og:description' content='{{ partial "data/description" . }}'> -<meta property='og:url' content='{{ .Permalink }}'> -<meta property='og:site_name' content='{{ .Site.Title }}'> -<meta property='og:type' content=' - {{- if .IsPage -}} - article - {{- else -}} - website - {{- end -}} -'> - -{{- with .Params.locale -}} - <meta property='og:locale' content='{{ . }}'> -{{- end -}} - -{{- with .Params.images -}} - {{- range first 6 . -}} - <meta property='og:image' content='{{ . | absURL }}'> - {{- end -}} -{{- else -}} - {{- with .Site.Author.email -}} - <meta property='og:image' content='https://www.gravatar.com/avatar/ - {{- ( print .username "@" .host ) | md5 -}}?s=256'> - {{- end -}} -{{- end -}} - -{{- with .Params.audio -}} - <meta property='og:audio' content='{{ . }}'> -{{- end -}} - -{{- with .Params.videos -}} - {{- range first 6 . -}} - <meta property='og:video' content='{{ . | absURL }}'> - {{- end -}} -{{- end -}} - -{{- if .IsPage -}} - {{- with .Site.Author.social.facebook -}} - <meta property='article:author' content='https://facebook.com/{{ . }}'> - {{- end -}} - {{- with .Site.Social.facebook -}} - <meta property='article:publisher' content='https://facebook.com/{{ . }}'> - {{- end -}} - <meta property='article:section' content='{{ .Section | title }}'> - {{- range .Params.tags -}} - <meta property='article:tag' content='{{ . }}'> - {{- end -}} -{{- end -}} - -{{- if .IsPage -}} - {{- if not .PublishDate.IsZero -}} - <meta property='article:published_time' content='{{ .PublishDate.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}'/> - {{- else if not .Date.IsZero -}} - <meta property='article:published_time' content='{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}'/> - {{- end -}} - {{- if not .Lastmod.IsZero -}} - <meta property='article:modified_time' content='{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}'/> - {{- end -}} -{{- else -}} - {{- if not .Site.LastChange.IsZero -}} - <meta property='og:updated_time' content='{{ .Site.LastChange.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}'/> - {{- end -}} -{{- end -}} - -{{- with .Site.Params.opengraph.facebook -}} - {{- with .appid -}} - <meta property='fb:app_id' content='{{ . }}'> - {{- end -}} - {{- with .admins -}} - <meta property='fb:admins' content='{{ . }}'> - {{- end -}} -{{- end -}} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/header.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/header.html b/camel-website/layouts/partials/header.html deleted file mode 100644 index ec2be2a..0000000 --- a/camel-website/layouts/partials/header.html +++ /dev/null @@ -1,19 +0,0 @@ -<!DOCTYPE html> -<html lang='{{ .Site.Language.Lang }}'> - -{{ partial "head/head" . }} - -<body class='{{ .Kind }}'> - <div class='u-full-width u-max-full-width container'> - <header class='header'> - <div class='site-header'> - {{ if eq .Kind "home" }} - <h1 class='title'>{{ .Site.Title }}</h1> - {{ else }} - <p class='title'>{{ .Site.Title }}</p> - {{ end }} - <p>{{ .Site.Params.description }}</p> - </div> - </header> - - {{ partial "nav/menus/main" . }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/nav/entry_nav.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/nav/entry_nav.html b/camel-website/layouts/partials/nav/entry_nav.html deleted file mode 100644 index 9dd8e7b..0000000 --- a/camel-website/layouts/partials/nav/entry_nav.html +++ /dev/null @@ -1,33 +0,0 @@ -{{ if gt ( len ( where .Site.RegularPages "Section" .Section ) ) 1 }} -<nav class='entry-nav'> - <div class='entry-nav-links'> - - {{- if .PrevInSection -}} - <div class='prev-entry'> - <a href='{{ .PrevInSection.Permalink }}'> - <span aria-hidden='true'> - {{- partial "svg/icons" "prev" -}} - {{- print " " ( i18n "previous" ) -}} - </span> - <span class='screen-reader'>{{ i18n "previousPost" }}: </span> - {{- .PrevInSection.Title -}} - </a> - </div> - {{- end -}} - - {{- if .NextInSection -}} - <div class='next-entry'> - <a href='{{ .NextInSection.Permalink }}'> - <span class='screen-reader'>{{ i18n "nextPost" }}: </span> - {{- .NextInSection.Title -}} - <span aria-hidden='true'> - {{- print ( i18n "next" ) " " -}} - {{- partial "svg/icons" "next" -}} - </span> - </a> - </div> - {{- end -}} - - </div> -</nav> -{{ end }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/nav/menus/main.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/nav/menus/main.html b/camel-website/layouts/partials/nav/menus/main.html deleted file mode 100644 index 9e45777..0000000 --- a/camel-website/layouts/partials/nav/menus/main.html +++ /dev/null @@ -1,17 +0,0 @@ -<nav class='navbar' aria-label='{{ i18n "mainMenu" }}'> - <div class='container'> - <ul class='navbar-list'> - {{ range .Site.Menus.main }} - <li class='navbar-item'> - <a class='navbar-link' href='{{ .URL }}' - {{- if or ( $.IsMenuCurrent "main" . ) ( $.HasMenuCurrent "main" . ) -}} - class='current' aria-current='page' - {{- end -}} - > - {{- .Name -}} - </a> - </li> - {{ end }} - </ul> - </div> -</nav> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/nav/menus/social.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/nav/menus/social.html b/camel-website/layouts/partials/nav/menus/social.html deleted file mode 100644 index 40d8277..0000000 --- a/camel-website/layouts/partials/nav/menus/social.html +++ /dev/null @@ -1,16 +0,0 @@ -<nav aria-label='{{ i18n "socialMenu" }}'> - <ul class='social-menu'> - {{ range $platform, $username := .Site.Author.social }} - {{ if $username }} - <li> - <a href='{{ print ( index $.Site.Data.social.base $platform ) $username }}' target='_blank' rel='noopener'> - <span class='screen-reader'> - {{- i18n "openSomethingInNewTab" ( dict "Something" ( print ( $platform | title ) " account" ) ) -}} - </span> - {{ partial "svg/icons" $platform }} - </a> - </li> - {{ end }} - {{ end }} - </ul> -</nav> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/nav/pagination.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/nav/pagination.html b/camel-website/layouts/partials/nav/pagination.html deleted file mode 100644 index 05b763a..0000000 --- a/camel-website/layouts/partials/nav/pagination.html +++ /dev/null @@ -1,46 +0,0 @@ -{{ if gt .Paginator.TotalPages 1 }} -<nav class='pagination'> - <div class='page-links'> - - {{ with .Paginator.Prev }} - <a class='page-link' href='{{ .URL }}'> - {{ partial "svg/icons" "prev" }} - <span class='screen-reader'>{{ i18n "previousPage" }}</span> - </a> - {{ end }} - - {{ $.Scratch.Set "hasPrevDots" false }} - {{ $.Scratch.Set "hasNextDots" false }} - - {{ range .Paginator.Pagers }} - {{ if eq . $.Paginator }} - <span class='page-link current'> - <span class='screen-reader'>{{ i18n "currentPage" }}: </span> - {{- .PageNumber -}} - </span> - {{ else if or ( or ( eq . $.Paginator.First ) ( eq . $.Paginator.Prev ) ) ( or ( eq . $.Paginator.Next ) ( eq . $.Paginator.Last ) ) }} - <a class='page-link' href='{{ .URL }}'> - <span class='screen-reader'>{{ i18n "page" }}: </span> - {{- .PageNumber -}} - </a> - {{ else }} - {{ if and ( not ( $.Scratch.Get "hasPrevDots" ) ) ( lt .PageNumber $.Paginator.PageNumber ) }} - {{ $.Scratch.Set "hasPrevDots" true }} - <span class='page-link dots'>…</span> - {{ else if and ( not ( $.Scratch.Get "hasNextDots" ) ) ( gt .PageNumber $.Paginator.PageNumber ) }} - {{ $.Scratch.Set "hasNextDots" true }} - <span class='page-link dots'>…</span> - {{ end }} - {{ end }} - {{ end }} - - {{ with .Paginator.Next }} - <a class='page-link' href='{{ .URL }}'> - <span class='screen-reader'>{{ i18n "nextPage" }}</span> - {{ partial "svg/icons" "next" }} - </a> - {{ end }} - - </div> -</nav> -{{ end }} http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/partials/svg/icons.html ---------------------------------------------------------------------- diff --git a/camel-website/layouts/partials/svg/icons.html b/camel-website/layouts/partials/svg/icons.html deleted file mode 100644 index 3269576..0000000 --- a/camel-website/layouts/partials/svg/icons.html +++ /dev/null @@ -1,38 +0,0 @@ -<svg class='icon' viewbox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' aria-hidden='true'> - {{ if eq "category" . }} - <path d="M22,19a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V5A2,2,0,0,1,4,3H9l2,3h9a2,2,0,0,1,2,2Z"/> - {{ else if eq "tag" . }} - <path d="M20.59,13.41l-7.17,7.17a2,2,0,0,1-2.83,0L2,12V2H12l8.59,8.59A2,2,0,0,1,20.59,13.41Z"/> - <line x1="7" y1="7" x2="7" y2="7"/> - {{ else if eq "author" . }} - <path d="M21,21V20c0-2.76-4-5-9-5s-9,2.24-9,5v1"/> - <path d="M16,6.37A4,4,0,1,1,12.63,3,4,4,0,0,1,16,6.37Z"/> - {{ else if eq "calendar" . }} - <rect x="3" y="4" width="18" height="18" rx="2" ry="2"/> - <line x1="16" y1="2" x2="16" y2="6"/> - <line x1="8" y1="2" x2="8" y2="6"/> - <line x1="3" y1="10" x2="21" y2="10"/> - {{ else if eq "prev" . }} - <line x1="20" y1="12" x2="4" y2="12"/> - <polyline points="10 18 4 12 10 6"/> - {{ else if eq "next" . }} - <line x1="4" y1="12" x2="20" y2="12"/> - <polyline points="14 6 20 12 14 18"/> - {{ else if eq "codepen" . }} - <polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"/> - <line x1="12" y1="22" x2="12" y2="15.5"/> - <polyline points="22 8.5 12 15.5 2 8.5"/> - <polyline points="2 15.5 12 8.5 22 15.5"/> - <line x1="12" y1="2" x2="12" y2="8.5"/> - {{ else if eq "facebook" . }} - <path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"/> - {{ else if eq "github" . }} - <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/> - {{ else if eq "instagram" . }} - <rect x="2" y="2" width="20" height="20" rx="5" ry="5"/> - <path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"/> - <line x1="17.5" y1="6.5" x2="17.5" y2="6.5"/> - {{ else if eq "twitter" . }} - <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"/> - {{ end }} -</svg> http://git-wip-us.apache.org/repos/asf/camel/blob/cfd7aa86/camel-website/layouts/shortcodes/center ---------------------------------------------------------------------- diff --git a/camel-website/layouts/shortcodes/center b/camel-website/layouts/shortcodes/center deleted file mode 100644 index 7f4dc16..0000000 --- a/camel-website/layouts/shortcodes/center +++ /dev/null @@ -1,3 +0,0 @@ -<div class='center-align'> - {{ .Inner }} -</div>