This is an automated email from the ASF dual-hosted git repository. lewismc pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/nutch-site.git
commit ae6f9f2cf51e7e6e84500cbcd8751ce99daa0ce3 Author: Lewis John McGibbney <lewis.mcgibb...@gmail.com> AuthorDate: Thu Aug 26 22:40:50 2021 -0700 NUTCH-2826 Migrate Nutch Site from Apache CMS to Hugo --- .gitmodules | 3 + README.md | 64 ++++++++++ archetypes/default.md | 6 + config.toml | 38 ++++++ content/community/mailing_lists/index.md | 0 content/community/people/index.md | 0 content/community/robots/index.md | 0 content/development/scm/index.md | 0 content/index.md | 0 content/javadoc/inddex.md | 0 content/posts/_index.md | 0 public/categories/index.xml | 10 ++ public/css/index.css | 86 ++++++++++++++ public/css/navbar.css | 53 +++++++++ public/img/IMG_0292.png | Bin 0 -> 15728243 bytes public/img/IMG_0295.png | Bin 0 -> 16275273 bytes public/img/server_rack.jpg | Bin 0 -> 214612 bytes public/img/wave.png | Bin 0 -> 4789 bytes public/index.html | 198 +++++++++++++++++++++++++++++++ public/index.xml | 20 ++++ public/posts/index.xml | 20 ++++ public/sitemap.xml | 28 +++++ public/tags/index.xml | 10 ++ themes/SimpleIntro | 1 + 24 files changed, 537 insertions(+) diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6378a22 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/SimpleIntro"] + path = themes/SimpleIntro + url = https://github.com/gangjun06/SimpleIntro diff --git a/README.md b/README.md new file mode 100644 index 0000000..b5e146f --- /dev/null +++ b/README.md @@ -0,0 +1,64 @@ +Nutch Website +============= + +<img src="https://nutch.apache.org/assets/img/nutch_logo_tm.png" align="right" width="300" /> + +This repository contains the website source code for the [Apache Nutch](https://nutch.apache.org) project. + +# Tooling + +The Website is built using [Hugo](https://gohugo.io/) a popular open-source static website generation framework. + +# Prerequisites +* [Install Hugo](https://gohugo.io/getting-started/installing/) + +# Local Build and Deploy + +```bash +$ hugo server +... +Start building sites … + + | EN +-------------------+----- + Pages | 10 + Paginator pages | 0 + Non-page files | 0 + Static files | 10 + Processed images | 0 + Aliases | 0 + Sitemaps | 1 + Cleaned | 0 + +Built in 107 ms +Watching for changes in /path/to/nutch_site/{archetypes,content,data,layouts,static,themes} +Watching for config changes in /path/to/nutch_site/config.toml +Environment: "development" +Serving pages from memory +Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender +Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) +Press Ctrl+C to stop +``` + +# Contributing + +To contribute a patch, follow these instructions (note that installing +[Hub](https://hub.github.com/) is not strictly required, but is recommended). + +``` +0. Download and install hub.github.com +1. File JIRA issue for your fix at https://issues.apache.org/jira/projects/NUTCH/issues +- you will get issue id NUTCH-xxx where xxx is the issue ID. +2. git clone https://github.com/apache/nutch-site.git +3. cd nutch-site +4. git checkout -b NUTCH-xxx +5. edit files +6. git status (make sure it shows what files you expected to edit) +7. git add <files> +8. git commit -m “fix for NUTCH-xxx contributed by <your username>” +9. git fork +10. git push -u <your git username> NUTCH-xxx +11. git pull-request +``` + +# License diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..454ef27 --- /dev/null +++ b/config.toml @@ -0,0 +1,38 @@ +baseURL = "http://nutch.apache.org/" +languageCode = "en-us" +theme = "SimpleIntro" +#title = "Apache Nutch" +publishDir = "public" + +[params] + mainbg = "./img/IMG_0295.png" + name = "Apache Nutch" + mainTitle = "Apache Nutch" + mainText = "Highly extensible, highly scalable, production-ready Web crawler" + +[menus] + [[menu.main]] + identifier = "about" + name = "About" + url = "#about" + [[menu.main]] + identifier = "community" + name = "Community" + [[menu.main]] + identifier = "reporting" + name = "Board Reporting" + parent = "community" + url = "https://whimsy.apache.org/board/minutes/Nutch.html" + weight = 1 + [[menu.main]] + identifier = "development" + name = "Development" + url = "#development" + [[menu.main]] + identifier = "documentation" + name = "Documentation" + url = "#documentation" + [[menu.main]] + identifier = "downloads" + name = "Downloads" + url = "/downloads" \ No newline at end of file diff --git a/content/community/mailing_lists/index.md b/content/community/mailing_lists/index.md new file mode 100644 index 0000000..e69de29 diff --git a/content/community/people/index.md b/content/community/people/index.md new file mode 100644 index 0000000..e69de29 diff --git a/content/community/robots/index.md b/content/community/robots/index.md new file mode 100644 index 0000000..e69de29 diff --git a/content/development/scm/index.md b/content/development/scm/index.md new file mode 100644 index 0000000..e69de29 diff --git a/content/index.md b/content/index.md new file mode 100644 index 0000000..e69de29 diff --git a/content/javadoc/inddex.md b/content/javadoc/inddex.md new file mode 100644 index 0000000..e69de29 diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..e69de29 diff --git a/public/categories/index.xml b/public/categories/index.xml new file mode 100644 index 0000000..7171a6a --- /dev/null +++ b/public/categories/index.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>Categories on </title> + <link>http://nutch.apache.org/categories/</link> + <description>Recent content in Categories on </description> + <generator>Hugo -- gohugo.io</generator> + <language>en-us</language><atom:link href="http://nutch.apache.org/categories/index.xml" rel="self" type="application/rss+xml" /> + </channel> +</rss> diff --git a/public/css/index.css b/public/css/index.css new file mode 100644 index 0000000..341ab35 --- /dev/null +++ b/public/css/index.css @@ -0,0 +1,86 @@ +.centerAll { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +#mainBG { + position: relative; + width: 100%; + height: 80vh; + overflow: hidden; + background-size: cover; + background-repeat: no-repeat; + color: #ffffff; +} + +#mainBG .wave { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 100px; + background-size: 1000px 100px; +} + +#mainBG .wave.wave1 { + animation: wave-animate 30s linear infinite; + z-index: 303; + opacity: 1; + animation-delay: 0s; + bottom: 0; +} +#mainBG .wave.wave2 { + animation: wave-animate2 15s linear infinite; + z-index: 302; + opacity: 0.5; + animation-delay: -5s; + bottom: 10px; +} +#mainBG .wave.wave3 { + animation: wave-animate 30s linear infinite; + z-index: 301; + opacity: 0.2; + animation-delay: -2s; + bottom: 15; +} +#mainBG .wave.wave4 { + animation: wave-animate2 5s linear infinite; + z-index: 300; + opacity: 0.7; + animation-delay: -5s; + bottom: 20px; +} + +@keyframes wave-animate { + 0% { + background-position-x: 0; + } + 100% { + background-position-x: 1000px; + } +} + +@keyframes wave-animate2 { + 0% { + background-position-x: 0; + } + 100% { + background-position-x: -1000px; + } +} + +.title-deco { + position: relative; +} + +.title-deco::after { + position: absolute; + content: ""; + width: 42px; + height: 4px; + background: #ee7785; + left: 0; + bottom: 0px; +} diff --git a/public/css/navbar.css b/public/css/navbar.css new file mode 100644 index 0000000..6fb9683 --- /dev/null +++ b/public/css/navbar.css @@ -0,0 +1,53 @@ +nav { + position: fixed; + top: 0; + left: 0; + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + transition: 0.6s; + padding: 40px 100px; + z-index: 600; +} + +nav.onscroll { + padding: 5px 100px; + background: rgba(0, 0, 0, 0.5); +} + +nav .logo { + position: relative; + font-weight: 700; + color: #fff; + text-decoration: none; + font-size: 2em; + text-transform: uppercase; + letter-spacing: 2px; +} + +nav ul { + position: relative; + display: flex; + justify-content: center; + align-items: center; +} + +nav ul li { + position: relative; + list-style: none; +} + +nav ul li a { + position: relative; + margin: 0 15px; + text-decoration: none; + color: #fff; + letter-spacing: 2px; + font-weight: 500px; + transition: 0.6s; +} +nav.onscroll .logo, +nav.onscroll ul li a { + color: #fff; +} diff --git a/public/img/IMG_0292.png b/public/img/IMG_0292.png new file mode 100644 index 0000000..2b05e97 Binary files /dev/null and b/public/img/IMG_0292.png differ diff --git a/public/img/IMG_0295.png b/public/img/IMG_0295.png new file mode 100644 index 0000000..3b2cd63 Binary files /dev/null and b/public/img/IMG_0295.png differ diff --git a/public/img/server_rack.jpg b/public/img/server_rack.jpg new file mode 100644 index 0000000..f4c3edf Binary files /dev/null and b/public/img/server_rack.jpg differ diff --git a/public/img/wave.png b/public/img/wave.png new file mode 100644 index 0000000..438acd6 Binary files /dev/null and b/public/img/wave.png differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..f57b4c1 --- /dev/null +++ b/public/index.html @@ -0,0 +1,198 @@ +<!DOCTYPE html> +<html lang="en-us"> + <head> + <meta name="generator" content="Hugo 0.79.0" /> + <meta charset="UTF-8" /> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> + +<link rel="stylesheet" href="http://nutch.apache.org//css/index.css" /> +<link rel="stylesheet" href="http://nutch.apache.org//css/navbar.css" /> +<link rel="stylesheet" href="http://nutch.apache.org//css/navbar.css" /> +<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> +<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> +<script src="https://use.fontawesome.com/releases/v5.14.0/js/all.js"></script> +<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/konpa/devicon@master/devicon.min.css"> + +<script type="text/javascript"> + window.addEventListener('scroll', ()=>{ + const nav = document.querySelector('nav') + nav.classList.toggle('onscroll', window.scrollY > 0) + }) +</script> + <title></title> + </head> + <body> + <nav class="pl-4 md:pl-24"> + <a href="http://nutch.apache.org/" class="logo"></a> + <ul class="hidden md:flex"> + + <li> + <a href="#about">About</a> + </li> + + <li> + <a href="#projects">Projects</a> + </li> + + <li> + <a href="#skills">Skills</a> + </li> + + </ul> +</nav> +<section class="banner"></section> + + <div> + <div + id="mainBG" + style="background-image: url('./img/IMG_0295.png');" + > + <div + class="wave wave1" + style="background-image: url('http://nutch.apache.org//img/wave.png');" + ></div> + <div + class="wave wave2" + style="background-image: url('http://nutch.apache.org//img/wave.png');" + ></div> + <div + class="wave wave3" + style="background-image: url('http://nutch.apache.org//img/wave.png');" + ></div> + <div + class="wave wave4" + style="background-image: url('http://nutch.apache.org//img/wave.png');" + ></div> + <div class="centerAll"> + <div class="title text-6xl font-bold text-center"> + Apache Nutch + </div> + <div class="text text-xl text-center">Highly extensible, highly scalable Web crawler</div> + </div> + </div> + + <main class="container mx-auto mt-8 px-4 xl:px-0"> + <section id="about" class="md:flex justify-around"> + <div class="my-auto md:mr-4"> + <div class="text-3xl title-deco tracking-wide"> + About Me +</div> + + <div class="flex mt-3 gap-3 text-xl"> + + </div> + </div> + <div class="mt-4 md:mt-0 md:ml-4"> + <div class="text-2xl font-bold"> + You can put + text in data/home/about.toml/title + </div> + <div class="text-lg mt-3"> + <div> + You can put text in + data/home/about.toml/text + </div> + </div> + </div> + </section> + <section id="skills" class="mt-12"> + <div class="md:flex justify-center"> + <div class="text-3xl title-deco tracking-wide"> + Skills +</div> + + </div> + + + <div + class="mt-8 grid grid-flow-row grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4" + > + + <div class="w-full rounded overflow-hidden shadow-lg"> + <div class=""> + <div class="font-bold text-xl mb-2 py-2 px-6 bg-gray-500"> + <div class="flex"> + <img + src="https://devicons.github.io/devicon/devicon.git/icons/go/go-original.svg" + width="50px" + class="bg-gray-300 py-1 px-1 rounded-full" + /> + <div class="my-auto ml-2"> + go + </div> + </div> + </div> + <p class="text-gray-700 text-base px-6 pb-4"> + Lorem ipsum dolor sit amet, consectetur adipisicing elit.<br /> Voluptatibus quia, nulla! Maiores et perferendis eaque,<br /> exercitationem praesentium nihil.<br /> + </p> + </div> + </div> + + <div class="w-full rounded overflow-hidden shadow-lg"> + <div class=""> + <div class="font-bold text-xl mb-2 py-2 px-6 bg-gray-500"> + <div class="flex"> + <img + src="https://devicons.github.io/devicon/devicon.git/icons/react/react-original.svg" + width="50px" + class="bg-gray-300 py-1 px-1 rounded-full" + /> + <div class="my-auto ml-2"> + React + </div> + </div> + </div> + <p class="text-gray-700 text-base px-6 pb-4"> + Lorem ipsum dolor sit amet, consectetur adipisicing elit.<br /> Voluptatibus quia, nulla! Maiores et perferendis eaque,<br /> exercitationem praesentium nihil.<br /> + </p> + </div> + </div> + + <div class="w-full rounded overflow-hidden shadow-lg"> + <div class=""> + <div class="font-bold text-xl mb-2 py-2 px-6 bg-gray-500"> + <div class="flex"> + <img + src="https://devicons.github.io/devicon/devicon.git/icons/cplusplus/cplusplus-original.svg" + width="50px" + class="bg-gray-300 py-1 px-1 rounded-full" + /> + <div class="my-auto ml-2"> + C/C++ + </div> + </div> + </div> + <p class="text-gray-700 text-base px-6 pb-4"> + Lorem ipsum dolor sit amet, consectetur adipisicing elit.<br /> Voluptatibus quia, nulla! Maiores et perferendis eaque,<br /> exercitationem praesentium nihil.<br /> + </p> + </div> + </div> + + </div> + + </section> + <section id="projects" class="mt-12"> + <div class="md:flex justify-center"> + <div class="text-3xl title-deco tracking-wide"> + Projects +</div> + + </div> + + + <div + class="mt-8 grid grid-flow-row grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4" + > + + </div> + + </section> + </main> +</div> + + <footer class="text-center mt-8 py-2 bg-gray-900 text-white"> + <div>© 2021 Apache Nutch</div> +</footer> + + </body> +</html> diff --git a/public/index.xml b/public/index.xml new file mode 100644 index 0000000..f36dcd7 --- /dev/null +++ b/public/index.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title></title> + <link>http://nutch.apache.org/</link> + <description>Recent content on </description> + <generator>Hugo -- gohugo.io</generator> + <language>en-us</language> + <lastBuildDate>Sat, 07 Aug 2021 20:38:52 -0700</lastBuildDate><atom:link href="http://nutch.apache.org/index.xml" rel="self" type="application/rss+xml" /> + <item> + <title>Downloads</title> + <link>http://nutch.apache.org/posts/downloads/</link> + <pubDate>Sat, 07 Aug 2021 20:38:52 -0700</pubDate> + + <guid>http://nutch.apache.org/posts/downloads/</guid> + <description>ABC DEF</description> + </item> + + </channel> +</rss> diff --git a/public/posts/index.xml b/public/posts/index.xml new file mode 100644 index 0000000..7e2f343 --- /dev/null +++ b/public/posts/index.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>Posts on </title> + <link>http://nutch.apache.org/posts/</link> + <description>Recent content in Posts on </description> + <generator>Hugo -- gohugo.io</generator> + <language>en-us</language> + <lastBuildDate>Sat, 07 Aug 2021 20:38:52 -0700</lastBuildDate><atom:link href="http://nutch.apache.org/posts/index.xml" rel="self" type="application/rss+xml" /> + <item> + <title>Downloads</title> + <link>http://nutch.apache.org/posts/downloads/</link> + <pubDate>Sat, 07 Aug 2021 20:38:52 -0700</pubDate> + + <guid>http://nutch.apache.org/posts/downloads/</guid> + <description>ABC DEF</description> + </item> + + </channel> +</rss> diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..c45e398 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" + xmlns:xhtml="http://www.w3.org/1999/xhtml"> + + <url> + <loc>http://nutch.apache.org/</loc> + <lastmod>2021-08-07T20:38:52-07:00</lastmod> + </url> + + <url> + <loc>http://nutch.apache.org/posts/downloads/</loc> + <lastmod>2021-08-07T20:38:52-07:00</lastmod> + </url> + + <url> + <loc>http://nutch.apache.org/posts/</loc> + <lastmod>2021-08-07T20:38:52-07:00</lastmod> + </url> + + <url> + <loc>http://nutch.apache.org/categories/</loc> + </url> + + <url> + <loc>http://nutch.apache.org/tags/</loc> + </url> + +</urlset> diff --git a/public/tags/index.xml b/public/tags/index.xml new file mode 100644 index 0000000..8546067 --- /dev/null +++ b/public/tags/index.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>Tags on </title> + <link>http://nutch.apache.org/tags/</link> + <description>Recent content in Tags on </description> + <generator>Hugo -- gohugo.io</generator> + <language>en-us</language><atom:link href="http://nutch.apache.org/tags/index.xml" rel="self" type="application/rss+xml" /> + </channel> +</rss> diff --git a/themes/SimpleIntro b/themes/SimpleIntro new file mode 160000 index 0000000..212410d --- /dev/null +++ b/themes/SimpleIntro @@ -0,0 +1 @@ +Subproject commit 212410d70d63b3f86313ed345598b441319d46b0