From 1cd26180a9360a1d46aaef38b738387d78cc67a1 Mon Sep 17 00:00:00 2001 From: Jason Brooks Date: Nov 30 2018 21:22:22 +0000 Subject: switch to haml-based layout --- diff --git a/.gitignore b/.gitignore index 5285ad4..e6da282 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ tmp/* Guardfile output.diff crash.log +_site/* diff --git a/_includes/navbar.haml b/_includes/navbar.haml new file mode 100644 index 0000000..f8b4ad6 --- /dev/null +++ b/_includes/navbar.haml @@ -0,0 +1,65 @@ +.navbar.navbar-inverse.navbar-static-top + .container + .navbar-header + %button.navbar-toggle( type="button" data-toggle="collapse" data-target=".navbar-collapse" ) + %span.icon-bar + %span.icon-bar + %span.icon-bar + %a.navbar-brand( href="/" title="Home" ) + %img( src="/images/logo_small.png" ) + .navbar-collapse.collapse + %ul.nav.navbar-nav + %li + %a( href="/download/" ) Get CentOS + %li.dropdown + %a.dropdown-toggle( href="#learn" title="About CentOS" data-toggle="dropdown" ) + About + %b.caret + %ul.dropdown-menu + %li + %a( href="/about/" ) About CentOS + %li + %a( href="http://wiki.centos.org/FAQ" ) FAQ + %li + %a( href="http://wiki.centos.org/SpecialInterestGroup" ) About SIGs + %li + %a( href="/variants/" ) CentOS Variants + %li + %a( href="/about/governance/" ) Governance + + %li.dropdown + %a.dropdown-toggle( href="#learn" title="The CentOS Community" data-toggle="dropdown" ) + Community + %b.caret + %ul.dropdown-menu + %li + %a( href="http://wiki.centos.org/Contribute" ) Contribute + %li + %a( href="http://www.centos.org/forums/" ) Forums + %li + %a( href="http://wiki.centos.org/GettingHelp/ListInfo" ) Mailing Lists + %li + %a( href="http://wiki.centos.org/irc" ) IRC + %li + %a( href="/community/calendar/" ) Calendar & IRC Meeting List + %li + %a( href="http://planet.centos.org" ) Planet + %li + %a( href="http://bugs.centos.org" ) Submit a Bug + %li + %a( href="/community/stories/" ) Stories + + %li.dropdown + %a.dropdown-toggle( href="#learn" title="CentOS Documentation" data-toggle="dropdown" ) + Documentation + %b.caret + %ul.dropdown-menu + %li + %a( href="http://wiki.centos.org" ) Wiki + %li + %a( href="/docs/" ) Manuals + %li + %a( href="/keys") GPG Key Info + + %li + %a( href="http://wiki.centos.org/Documentation?action=show&redirect=GettingHelp" ) Help diff --git a/_layouts/default.haml b/_layouts/default.haml new file mode 100644 index 0000000..97fcb65 --- /dev/null +++ b/_layouts/default.haml @@ -0,0 +1,39 @@ +!!!5 +%html + %head + %link( href="//fonts.googleapis.com/css?family=Oxygen+Mono|Source+Sans+Pro:400,300,300italic,400italic,600,600italic|Exo:400,100,100italic,200,200italic,300,300italic,400italic,500italic,500,600,600italic" rel="stylesheet" type="text/css") + %meta( charset="utf-8" ) + %meta( name = "viewport" content = "width=device-width, initial-scale=1.0" ) + %meta( name = "description" content = "" ) + %meta( name = "author" content = "" ) + %meta( http-equiv = "cache-control" content = "max-age=0" ) + %meta( http-equiv = "pragma" content = "no-cache" ) + %link( rel="shortcut icon" href="/images/favicon.ico" ) + %title= "{{ page.title }}" + %script{ :src=>'/assets/js/jquery.min.js' } + %script{ :src=>'/assets/js/jquery.cycle2.min.js' } + %script{ :src=>'/assets/js/jquery.cycle2.center.min.js' } + %script{ :src=>'/assets/js/jquery.backstretch.min.js' } + %script{ :src=>'/assets/js/sass-bootstrap.js' } + %script{ :src=>'/assets/js/jquery.tidy.table.min.js' } + %script{ :src=>'/assets/js/FeedEk.js' } + %script{ :src=>'/assets/js/google.js' } + %link(rel='stylesheet' type='text/css' href='/styles/site.css' ) + %link(rel='stylesheet' type='text/css' href='/assets/stylesheet.css' ) + %link(rel='stylesheet' type='text/css' href='/assets/jquery.tidy.table.css' ) + %link{:href => "/favicon.ico", :rel => "shortcut icon"} + /[if lt IE 9] + %script{ :type=>'text/javascript', :src=>'/assets/js/html5.js' } + %body + %script + $.backstretch("/images/background.jpeg"); + #wrap + #header + .container.text-center + {% haml navbar.haml %} + .container#main + = "{{ content }}" + #footer + .container.text-center + %p.text-muted.credit © #{ DateTime.now.year } The CentOS Project | Legal | Privacy + diff --git a/_layouts/default.html b/_layouts/default.html deleted file mode 100644 index 5947339..0000000 --- a/_layouts/default.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - About CentOS - - - - - - - - - - - - - - - - -
- - -
- {{ content }} -
- -
- -