Commit Graph

25 Commits (dev-1.26-ko.1)

Author SHA1 Message Date
Tim Bannister a1f43e9de5
Move canonical link earlier in metadata
To help search engines, make the canonical URL appear near the start of
the <head> HTML element. This improves the chance of a search engine
paying attention; some indexers only read part of the page and ignore
information that appears later within the <head> element.
2022-10-03 16:38:24 +01:00
Tim Bannister 1e436f4587 Revise page header styles
- more compact headers when announcements are showing
- when no announcement showing, top level docs sections
  (eg Concepts, Tasks, Reference) have a heading in the top nav
- when announcement is showing, rely on the breadcrumb trail plus
  page introduction text for each top level section
- switch from plain black docs header to match other sections
2021-10-13 22:47:29 +01:00
Tim Bannister 43a7be6495 If a blog article has a canonical URI set, link to it
This change lets us point search engines to the original article when we
mirror them from https://k8s.dev/ and potentially from other sites too.
2020-10-01 17:47:45 +01:00
Karen Bradshaw 71303db06b use docsy page edit/issue setup
setting feedback buttons, primary color setting

update i18n with issue string

remove local edit page string
2020-09-03 16:35:56 -04:00
Celeste Horgan 0815480036 Remove blog.css as it is no longer used
Signed-off-by: Celeste Horgan <celeste@cncf.io>
2020-09-02 10:30:43 -07:00
Tim Bannister 7e23f0f875 Tidy & fix deprecation warnings
Co-Authored-By: Karen Bradshaw <kbhawkey@gmail.com>
2020-08-16 18:34:09 +01:00
Aidan Ranney 0625ced466
Revise the Kubernetes website to use Docsy (#20874)
* Add Docsy, required packages and config

* Apply Docsy integration work to k8s website

This encompasses significant changes to the style system, layout files,
as well as changes to some of the static assets. To examine this work
and the iterations that were performed, the original repository can be
found at https://github.com/gearbox-built/kubernetes-hugo.git

* Address issues found in review

The styling and positioning of the header, footer, some shortcodes and
main container elements are improved. A new partial is added for
favicons. The sidebars, as well as inner table of contents, have been
altered for better positioning and rendering of content. Localization
has also been addressed.

* Enable announcements

The recent Black Lives Matter announcement surfaced issues which have
been addressed.
2020-06-15 12:09:57 -07:00
Celeste Horgan 9caa83d75b Improve announcements implementation
Signed-off-by: Celeste Horgan <celeste@cncf.io>

Co-authored-by: Tim Bannister <tim@scalefactory.com>
2020-06-04 14:20:47 -07:00
divya-mohan0209 56379649d3
Added date metadata to blog articles #19503 (#19523)
Added <time> </time> HTML element to the date heading in blog post articles. 
The opening <time> tag also was given a datetime attribute, with the value using another Hugo shortcode. Since these use Go time patterns; we included the following in the opening <time> tag datetime="{{ .Date.Format "2006-01-02" }}".
2020-03-07 05:31:34 -08:00
Chaitanya 6a4238aa71 Accessibility updates - main landmark roles (#17106)
* Removed multiple main tags from home page

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Removed multiple occurances of main in case-studies page

Signed-off-by: chaitanyakaranam <chaitanya.karanam@yahoo.com>

* Replaced css for main tag with .main-section class

Signed-off-by: ChaitanyaKaranam <karanam.krishna.25@gmail.com>

* Added main landmark role for all the pages

Signed-off-by: ChaitanyaKaranam <karanam.krishna.25@gmail.com>

* Force checks.

request-checks: true
2019-10-27 04:43:24 -07:00
mohamed chiheb ben jemaa 73ef2c557b adjust and center Blog links (#15541) 2019-08-15 20:28:33 -07:00
Harsh Vardhan b7b8ce0b25 Fix Prev/Next navigation buttons when viewing article (#15439)
Earlier both the on the left and right buttons had the text `Next>>` now
the left one will have the text `<< Prev`

fixes: https://github.com/kubernetes/website/issues/15438

Signed-off-by: Harsh Vardhan <harsh.vardhan@mayadata.io>
2019-07-21 01:46:54 -07:00
Alexandre Vilain b473890928 Fix 404 on link: "Download Kubernetes" (#14969) 2019-06-18 13:45:49 -07:00
Danny Berger 4029a7ab5e Normalize case: Github -> GitHub (#13828) 2019-04-25 09:40:47 -07:00
Rael Garcia 20842e037a Add localization support for layouts (#13832)
Add layouts/docs/glossary en i18n strings
Add layouts/docs/glossary es i18n strings
Use i18n strings in layouts/docs/glossary
Add layouts/blog/pager en i18n strings
Add layouts/blog/pager es i18n strings
Use i18n strings in layouts/blog/pager
Add layouts/blog/list en  i18n strings
Add layouts/blog/list es  i18n strings
Use i18n strings in layouts/case-studies/list
Add layouts/docs/search en i18n strings
Add layouts/docs/search es i18n strings
Use i18n strings in layouts/docs/search
Add layouts/partials/feedback en i18n strings
Add layouts/partials/feedback es i18n strings
Use i18n strings in layouts/partials/feedback
Set html lang using "{{ .Language }}"
2019-04-16 17:36:01 -07:00
Zach Corleissen 5bbd682613 Update the blog's download link (#13536) 2019-03-29 13:06:15 -07:00
Kaitlyn Barnard 2b6780ad94 Adding link to submit a blog (#13252) 2019-03-18 14:24:21 -07:00
Damini Satya 461fadb8c3 Update download icon and add RSS label (#12648)
* Add 'RSS feed' label

* Update download icon
2019-02-14 22:10:09 -08:00
Luc Perkins c6dd35ba51 Update to Hugo 0.53 and remove all .Site references (#12079)
* Remove all .Site variable references

* Update Hugo version in Travis CI config and Makefile
2019-02-05 08:33:23 -08:00
wangxy518 61afa0380f Update baseof.html (#10696) 2018-10-25 11:28:37 -07:00
Bjørn Erik Pedersen 32014f94b3 Merge missing translations (#10355)
* Merge missing translations

* Disable Norwegian
2018-10-01 12:38:37 -07:00
Bjørn Erik Pedersen 1b5ff98a44 Make the home page into reusable and translatable blocks (#10071)
* Make navigation and UI strings i18n friendly

This commit

* Extracts most UI strings into i18n bundles so they can be translated
* Makes a proper Hugo menu out of the hardcoded menu that is shown on smaller screens
* Changes the language selector logic to navigate to the current page in the other language if possible (e.g. the translation). If not possible, it takes you to the home page for that language.

For testing, this commit also adds Norwegian as a new language. This is turned off.

* Make the home page into reusable and translatable blocks

This commit adds a set of block type shortcodes that is then used to build the home page.

* These shortcodes gets common image resources from a new headless bundle. These resources can be inherited or overridden by translations.
* The hardcoded case studies section on the home page is replaced with a query and a loop.
* The hardcoded feature list on the home page is replaed qith a query and a loop.
2018-09-14 14:47:24 -07:00
Jorge O. Castro 227d0418c0 Add links to forum (#8945) 2018-06-11 17:26:27 -07:00
T N 3c1c581de6 Fix responsive around sidebar on blog (#8610) 2018-06-05 03:52:54 -07:00
Bjørn Erik Pedersen 7f3b633aa0 Convert site to Hugo (#8316)
This commit converts content and layout to use Hugo.
2018-05-05 09:00:51 -07:00