From 19a679a50cd119c2ead3a7fb024eaf0e3585f4d7 Mon Sep 17 00:00:00 2001 From: Hadi Sinaee <3697216+hadisinaee@users.noreply.github.com> Date: Sun, 13 Jun 2021 09:06:28 -0700 Subject: New theme! (#38) Co-authored-by: Hadi Sinaee Co-authored-by: Hadi Sinaee --- LICENSE | 2 +- README.md | 283 ++++++------- archetypes/default.md | 2 - archetypes/projects.md | 12 + archetypes/publications.md | 19 + avicenna_folder.png | Bin 0 -> 13468 bytes exampleSite/config.toml | 137 +------ exampleSite/content/.gitkeep | 0 exampleSite/content/about/_index.md | 62 +++ exampleSite/content/home/about.md | 14 + exampleSite/content/home/index.md | 6 + exampleSite/content/home/projects.md | 17 + exampleSite/content/home/publications.md | 17 + exampleSite/content/projects/hodhod/index.md | 7 - exampleSite/content/projects/hodhod/logo.png | Bin 66814 -> 0 bytes exampleSite/content/projects/index.md | 8 + exampleSite/content/projects/proj1.md | 10 + exampleSite/content/projects/proj2.md | 10 + exampleSite/content/publications/index.md | 8 + .../content/publications/mybestpaper/index.md | 7 - exampleSite/content/publications/pub1.md | 19 + exampleSite/content/publications/pub2.md | 17 + exampleSite/static/HadiSinaee_CV.pdf | Bin 81779 -> 0 bytes exampleSite/static/android-chrome-192x192.png | Bin 9177 -> 0 bytes exampleSite/static/android-chrome-512x512.png | Bin 25601 -> 0 bytes exampleSite/static/apple-touch-icon.png | Bin 8198 -> 0 bytes exampleSite/static/favicon-16x16.png | Bin 514 -> 0 bytes exampleSite/static/favicon-32x32.png | Bin 1046 -> 0 bytes exampleSite/static/images/profile.png | Bin 0 -> 87568 bytes exampleSite/static/profile.jpg | Bin 33461 -> 0 bytes exampleSite/static/site.webmanifest | 1 - images/screenshot.png | Bin 472309 -> 160682 bytes images/tn.png | Bin 228108 -> 149121 bytes layouts/_default/baseof.html | 20 +- layouts/_default/list.html | 13 + layouts/_default/single.html | 30 +- layouts/index.html | 65 ++- layouts/partials/about/about.html | 11 + layouts/partials/about/interests_academia.html | 60 +++ layouts/partials/about/introduction.html | 96 +++++ layouts/partials/core/footer.html | 6 + layouts/partials/core/head.html | 23 ++ layouts/partials/core/script.html | 8 + layouts/partials/footer.html | 13 - layouts/partials/head.html | 45 --- layouts/partials/header.html | 42 -- layouts/partials/introduction.html | 11 - layouts/partials/projects.html | 35 -- layouts/partials/projects/projects.html | 34 ++ layouts/partials/publications.html | 38 -- layouts/partials/publications/publications.html | 79 ++++ setup_avicenna.sh | 12 + static/css/main.css | 439 --------------------- static/css/normalize.css | 1 - static/css/style.css | 163 ++++++++ static_folder.png | Bin 0 -> 4098 bytes theme.toml | 20 +- 57 files changed, 926 insertions(+), 996 deletions(-) delete mode 100644 archetypes/default.md create mode 100644 archetypes/projects.md create mode 100644 archetypes/publications.md create mode 100644 avicenna_folder.png delete mode 100644 exampleSite/content/.gitkeep create mode 100644 exampleSite/content/about/_index.md create mode 100644 exampleSite/content/home/about.md create mode 100644 exampleSite/content/home/index.md create mode 100644 exampleSite/content/home/projects.md create mode 100644 exampleSite/content/home/publications.md delete mode 100644 exampleSite/content/projects/hodhod/index.md delete mode 100644 exampleSite/content/projects/hodhod/logo.png create mode 100644 exampleSite/content/projects/index.md create mode 100644 exampleSite/content/projects/proj1.md create mode 100644 exampleSite/content/projects/proj2.md create mode 100644 exampleSite/content/publications/index.md delete mode 100644 exampleSite/content/publications/mybestpaper/index.md create mode 100644 exampleSite/content/publications/pub1.md create mode 100644 exampleSite/content/publications/pub2.md delete mode 100644 exampleSite/static/HadiSinaee_CV.pdf delete mode 100755 exampleSite/static/android-chrome-192x192.png delete mode 100755 exampleSite/static/android-chrome-512x512.png delete mode 100755 exampleSite/static/apple-touch-icon.png delete mode 100755 exampleSite/static/favicon-16x16.png delete mode 100755 exampleSite/static/favicon-32x32.png create mode 100644 exampleSite/static/images/profile.png delete mode 100644 exampleSite/static/profile.jpg delete mode 100755 exampleSite/static/site.webmanifest create mode 100644 layouts/partials/about/about.html create mode 100644 layouts/partials/about/interests_academia.html create mode 100644 layouts/partials/about/introduction.html create mode 100644 layouts/partials/core/footer.html create mode 100644 layouts/partials/core/head.html create mode 100644 layouts/partials/core/script.html delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/header.html delete mode 100644 layouts/partials/introduction.html delete mode 100644 layouts/partials/projects.html create mode 100644 layouts/partials/projects/projects.html delete mode 100644 layouts/partials/publications.html create mode 100644 layouts/partials/publications/publications.html create mode 100644 setup_avicenna.sh delete mode 100644 static/css/main.css delete mode 100644 static/css/normalize.css create mode 100644 static/css/style.css create mode 100644 static_folder.png diff --git a/LICENSE b/LICENSE index 46fe619..af9ede0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 YOUR_NAME_HERE +Copyright (c) 2020 Hadi Sinaee Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/README.md b/README.md index e1d1468..516c07c 100644 --- a/README.md +++ b/README.md @@ -1,185 +1,136 @@ # Avicenna Theme -A minimal academic page for academics built with Hugo. - -> This theme hugely benefits from `Ezhil Theme`. I just made some changes to create `avicenna`. -> __NOTE: I will review all the pull requests in the second half of Nov. 2019. Thanks for your contributions :v:__ +A minimal academic page for academics! ![Screenshot](images/screenshot.png "Avicenna") # Features * Minimal, Responsive, and Clean -* Single File Configuration -* Supports Social Links -* Supports Publication Listing -* Supports Project Listing * Supports Google Analytics -* Supports Hugo RSS feeds +* Supports Social Links +* Supports Publications Listing +* Supports Projects Listing + +# How to use `Avicenna`? +To use `Avicenna`, you need to follow three steps: +1. Setup a site with `Avicenna` +2. Customize the site to your needs +3. Build your site and deploy it to your host + +The following sections are based on the mentioned steps. +# 1. How to setup a site with `Avicenna`? +There are 2 ways to install `Avicenna`: +1. The first one is a step-by-step approach that you could use to install it. +2. The second one is just an automated script based on the first approach. + +Pick the one that works for you well. Also, I provided a link to a video clip showing the whole process of installation for both approaches. + +## 1. Step-by-Step Installation +1. You need to install [Hugo][1] first! +2. Create a new site and go to the directory: +```bash +# replace the `my_cool_page` with whatever you want! +hugo new site my_cool_page + +# move to your project folder +cd my_cool_page +``` -# How To Install `Avicenna`? -> I assume that you know to start with `Hugo`. If you do not know how to run a website with `Hugo`, please read its [quick start](https://gohugo.io/getting-started/quick-start/). +3. Add the stable release of `Avicenna` (the `master` branch) to your `themes` folder: +```bash +git clone -b master git@github.com:hadisinaee/avicenna.git ./themes/avicenna +``` -See the full setup in ~70 seconds: -[![asciicast](https://asciinema.org/a/7ZReSH0ws7HVbI1c6UUN7wzfd.svg)](https://asciinema.org/a/7ZReSH0ws7HVbI1c6UUN7wzfd) +4. Copy the sample site to your project: +```bash +cp -R themes/avicenna/exampleSite/* ./ +``` -Or simply follow the instructions: +5. Run the site: ```bash -# creates a static site -$ hugo new site my-academic-page -$ cd my-academic-page -$ cd themes -$ git clone https://github.com/hadisinaee/avicenna.git -$ cd .. -$ cp ./themes/avicenna/exampleSite/config.toml ./ -$ cp Path/To/YourPrile/profile.jpg ./static/profile.jpg -$ hugo server +hugo serve ``` -# Sample Configuration - -To kick start, copy the following configuration and paste it in `config.toml` file in your root directory. - -__IMPORTANT__ - - copy your profile picture and name it `profile.jpg` in the `static` folder - - copy your CV file in the `static` folder. Set the `cv_name` variable to its full file name. - -```toml -baseURL = "https://example.edu" -languageCode = "en-us" -title = "Hadi Sinaee" -theme = "avicenna" -googleAnalytics = "UA-1234-6" -timeout=3000 - -[params] - subtitle= "PhD Student" - interests="Deep Reinforcement Learning, Machine Learning " - cv_name= "HadiSinaee_CV.pdf" - blog="http://myblog.edu" - -[[params.affilation]] - name = "Stanford University" - position = "PhD Student" - contact = "hadi@cs.stanford.edu" - -[[params.affilation]] - name = "MyCoolStartup" - position = "Co-Founder" - contact = "hadi@mycoolstartup.ai" - -[[params.social]] - name = "GitHub" - icon = "github" - url = "https://github.com/hadisinaee" - -[[params.social]] - name = "Twitter" - icon = "twitter" - url = "https://twitter.com/hadisinaee" - - -[[params.social]] - name = "LinkedIn" - icon = "linkedin" - url = "https://linkedin.com/in/hadisinaee/" - - -[[params.introduction.paragraph]] - text="""Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - Nunc scelerisque viverra mauris in aliquam sem fringilla ut morbi. Integer feugiat scelerisque varius morbi enim. - A diam maecenas sed enim ut sem viverra. Orci eu lobortis elementum nibh tellus. - Egestas sed sed risus pretium quam vulputate dignissim suspendisse in. - Accumsan sit amet nulla facilisi morbi tempus iaculis urna. Condimentum lacinia quis vel eros donec. - """ -[[params.introduction.paragraph]] - text=""" Pellentesque nec nam aliquam sem et tortor consequat id porta. - Viverra suspendisse potenti nullam ac. Leo vel orci porta non pulvinar neque laoreet. - Nulla facilisi nullam vehicula ipsum a arcu. Tempus egestas sed sed risus pretium quam vulputate dignissim suspendisse. - Ullamcorper velit sed ullamcorper morbi tincidunt ornare. Dui sapien eget mi proin sed libero. - Quam pellentesque nec nam aliquam sem et tortor consequat id. Aliquet lectus proin nibh nisl. - """ - - -[[params.projects]] - [[params.projects.project]] - name = "Velit egestas dui id ornare arcu odio ut sem. Nec nam aliquam sem et tortor" - description = "Enim facilisis gravida neque convallis a. Suspendisse potenti nullam ac tortor vitae purus faucibus ornare suspendisse.Velit egestas dui id ornare arcu odio ut sem. Nec nam aliquam sem et tortor. In nisl nisi scelerisque eu ultrices vitae auctor." - project_page = "https://myprojecthomepage.com" - code_link = "https://coderepo.com" - blog_link = "https://ablogpost.com" - - [[params.projects.project]] - name = "In nisl nisi scelerisque eu ultrices vitae auctor" - description = "" - project_page = "https://myprojecthomepage.com" - code_link = "https://coderepo.com" - blog_link = "" - - [[params.projects.project]] - name = "Integer eget aliquet nibh praesent tristique magna" - description = "" - project_page = "https://myprojecthomepage.com" - code_link = "" - blog_link = "https://ablogpost.com" - -[[params.publications]] - year="Preprint" - - [[params.publications.paper]] - name = "Enim nunc faucibus a pellentesque sit amet porttitor" - authors = "Ana Alvardo, William Worthley, __Hadi Sinaee__" - dest = "Helga Zita Journal" - link = "https://mypaperishere.com" - code_link = "https://thecoderepo.com" - blog_link = "https://myblogaboutit.com" - - [[params.publications.paper]] - name = "In cursus turpis massa tincidunt dui ut ornare lectus sit" - authors = "__Hadi Sinaee__,Les Larkins, Edra Ethier" - dest = "Meklit Katlego Conference" - link = "https://mypaperishere.com" - code_link = "https://thecoderepo.com" - blog_link = "https://myblogaboutit.com" - -[[params.publications]] - year="2019" - - [[params.publications.paper]] - name = "Feugiat sed lectus vestibulum mattis ullamcorper velit sed" - authors = "Caroll Comes, __Hadi Sinaee__" - dest = "Udo Madhu Journal" - link = "https://mypaperishere.com" - code_link = "https://thecoderepo.com" - blog_link = "" - - [[params.publications.paper]] - name = "Venenatis urna cursus eget nunc. Nam aliquam sem et tortor consequat id porta nibh venenatis" - authors = "Les Larkins, Ana Alvardo, __Hadi Sinaee__ " - dest = "Zorka Vita Conference" - link = "https://mypaperishere.com" - code_link = "" - blog_link = "https://myblogaboutit.com" - - [[params.publications.paper]] - name = "Aliquet eget sit amet tellus cras adipiscing enim eu turpis" - authors = "Les Larkins, __Hadi Sinaee__, Ana Alvardo" - dest = "Lena Randa Conference" - link = "https://mypaperishere.com" - code_link = "" - blog_link = "" - - [[params.publications.paper]] - name = "Orci eu lobortis elementum nibh tellus molestie nunc non blandit" - authors = "__Hadi Sinaee__, Caroll Comes" - dest = "Thandeka Radhika Conference" - link = "" - code_link = "" - blog_link = "" +Now, you should be able to see the site at [http://localhost:1313](http://localhost:1313/) + +## 2. Automated Script +In this approach, all you need is to replace the `my_cool_page` with your desired name in the following script: + +```bash +wget https://raw.githubusercontent.com/hadisinaee/avicenna/master/setup_avicenna.sh && sh setup_avicenna.sh my_cool_page +``` +Run the site: +```bash +hugo serve ``` -# Any Idea? -I am using `Avicenna` for my personal uses. Therefore, I will update it regularly. If you need something that doesn't exist, let's discuss it over an issue :) +Now, you should be able to see the site at http://localhost:1313 + +# 2. How to Customize `Avicenna`? + +## Start With the `config.toml` +You can start the customization with the `config.toml` file. It's located a the root of your project. In this file, you can set your name, your website URL, googleAnalytics id, etc. + +## Adding Your Profile Picture, CV, and Favicon +There is a folder named `static` under the root of your site's folder. Its structure is as follows: + +![static_folder](./static_folder.png) + +- **Profile Picture**: Simply replace `profile.png` with your profile file. Please use the same name and extenstion, e.g. `profile.png`. It doesn't work if you use another *name* or *extension*. +- **CV**: You need to put your CV directly under `static` folder. I recommend you to use the name `cv.pdf` for your CV file. Also, if you wanted to use another file name, you would need to change it in your introduction. See Introduction Section. +- **Favicon**: It has the same procedure as your profile picture. + +## Content +All files and folders that you need to modify lies in the `content` folder. The folder should look like this + +![the content folder structure](avicenna_folder.png) + +Avicenna theme has three different sections: `Introduction`, `Publications`, and `Projects`. Based on the previous figure, you might have an intuition where you should modify. However, there are some details that I have to provide. + +## `Introduction` Section +`Introduction` section is where you put details about yourself, such as your name, profile, interests, etc. To modify the introduction section, you need to edit the `content/about/_index.md` file. + +## `Publications` Section +All your publications are stored in `content/publications`. To create a new publication: + +``` +hugo new publications/your-pub-name.md +``` + +If was successful, you would see a message similar to the following: + +``` +YOUR_PROJECT_PATH/content/publications/your-pub-name.md +``` + +To edit the file, go to `content/publications` and then find your `your-pub-name.md` file and change it. + + +## Project Section +All your projects are stored in `content/projects`. To create a new project: + +``` +hugo new projects/your-project-name.md +``` + +If was successful, you would see a message similar to the following: + +``` +YOUR_PROJECT_PATH/content/projects/your-project-name.md +``` + +To edit the file, go to `content/projects` and then find your `your-project-name.md` file and change it. + + +# 3. How to Deploy `Avicenna`? +1. Make sure you have changed your `baseURL` in the `config.toml` file. It should be the address you want to deploy `Avicenna` on. +2. Run `hugo` in the root of your project. The result will be in the `public` folder in the root of your project. +3. Copy `public` folder and move it your host server. # Credits -* [Ezhil Theme](https://github.com/vividvilla/ezhil) * [Feather Icons](https://feathericons.com/) +* [Academic Icons](https://jpswalsh.github.io/academicons/) +* [Academic Hugo](https://wowchemy.com/templates/) + + +[1]: https://gohugo.io/getting-started/installing/ \ No newline at end of file diff --git a/archetypes/default.md b/archetypes/default.md deleted file mode 100644 index ac36e06..0000000 --- a/archetypes/default.md +++ /dev/null @@ -1,2 +0,0 @@ -+++ -+++ diff --git a/archetypes/projects.md b/archetypes/projects.md new file mode 100644 index 0000000..96d74a6 --- /dev/null +++ b/archetypes/projects.md @@ -0,0 +1,12 @@ +--- +title: "Your Project Title Goes Here" + +# a date for your project in this format"2019-03-30" +# date is used for ordering your projects in a descending order +date: "2019-03-30" + +# links is used for specific links for your project +links: + website: 'https://github.com/' +--- + diff --git a/archetypes/publications.md b/archetypes/publications.md new file mode 100644 index 0000000..7b6ef58 --- /dev/null +++ b/archetypes/publications.md @@ -0,0 +1,19 @@ +--- +title: "Change this publication at content/publications/" +authors: +- Your Full Name +- Another Researcher +date: "2018-09-01" + +publication: "Journal of Machine Learning" + +links: + url_pdf: https://github.com/hadisinaee/avicenna + url_code: https://github.com/hadisinaee/avicenna + url_slides: https://github.com/hadisinaee/avicenna + url_video: https://github.com/hadisinaee/avicenna + +--- + + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) \ No newline at end of file diff --git a/avicenna_folder.png b/avicenna_folder.png new file mode 100644 index 0000000..e53397d Binary files /dev/null and b/avicenna_folder.png differ diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1ef7b9a..58515a5 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,131 +1,16 @@ -baseURL = "https://example.edu" -languageCode = "en-us" -title = "Hadi Sinaee" -theme = "avicenna" -googleAnalytics = "UA-1234-6" -timeout=3000 - -[params] - subtitle= "PhD Student" - interests="Deep Reinforcement Learning, Machine Learning " - cv_name= "HadiSinaee_CV.pdf" - blog="http://myblog.edu" - -[[params.affilation]] - name = "Stanford University" - position = "PhD Student" - contact = "hadi@cs.stanford.edu" - -[[params.affilation]] - name = "MyCoolStartup" - position = "Co-Founder" - contact = "hadi@mycoolstartup.ai" - -[[params.social]] - name = "GitHub" - icon = "github" - url = "https://github.com/hadisinaee" - -[[params.social]] - name = "Twitter" - icon = "twitter" - url = "https://twitter.com/hadisinaee" - - -[[params.social]] - name = "LinkedIn" - icon = "linkedin" - url = "https://linkedin.com/in/hadisinaee/" - +baseURL = "https://example.edu/" -[[params.introduction.paragraph]] - text="""Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - Nunc scelerisque viverra mauris in aliquam sem fringilla ut morbi. Integer feugiat scelerisque varius morbi enim. - A diam maecenas sed enim ut sem viverra. Orci eu lobortis elementum nibh tellus. - Egestas sed sed risus pretium quam vulputate dignissim suspendisse in. - Accumsan sit amet nulla facilisi morbi tempus iaculis urna. Condimentum lacinia quis vel eros donec. - """ -[[params.introduction.paragraph]] - text=""" Pellentesque nec nam aliquam sem et tortor consequat id porta. - Viverra suspendisse potenti nullam ac. Leo vel orci porta non pulvinar neque laoreet. - Nulla facilisi nullam vehicula ipsum a arcu. Tempus egestas sed sed risus pretium quam vulputate dignissim suspendisse. - Ullamcorper velit sed ullamcorper morbi tincidunt ornare. Dui sapien eget mi proin sed libero. - Quam pellentesque nec nam aliquam sem et tortor consequat id. Aliquet lectus proin nibh nisl. - """ +# set your your own ga token here. +googleAnalytics = "UA/G-11111-1112" +languageCode = "en-us" -[[params.projects]] - [[params.projects.project]] - name = "Velit egestas dui id ornare arcu odio ut sem. Nec nam aliquam sem et tortor" - description = "Enim facilisis gravida neque convallis a. Suspendisse potenti nullam ac tortor vitae purus faucibus ornare suspendisse.Velit egestas dui id ornare arcu odio ut sem. Nec nam aliquam sem et tortor. In nisl nisi scelerisque eu ultrices vitae auctor." - project_page = "https://myprojecthomepage.com" - code_link = "https://coderepo.com" - blog_link = "https://ablogpost.com" - - [[params.projects.project]] - name = "In nisl nisi scelerisque eu ultrices vitae auctor" - description = "" - project_page = "https://myprojecthomepage.com" - code_link = "https://coderepo.com" - blog_link = "" - - [[params.projects.project]] - name = "Integer eget aliquet nibh praesent tristique magna" - description = "" - project_page = "https://myprojecthomepage.com" - code_link = "" - blog_link = "https://ablogpost.com" - -[[params.publications]] - year="Preprint" - - [[params.publications.paper]] - name = "Enim nunc faucibus a pellentesque sit amet porttitor" - authors = "Ana Alvardo, William Worthley, __Hadi Sinaee__" - dest = "Helga Zita Journal" - link = "https://mypaperishere.com" - code_link = "https://thecoderepo.com" - blog_link = "https://myblogaboutit.com" - - [[params.publications.paper]] - name = "In cursus turpis massa tincidunt dui ut ornare lectus sit" - authors = "__Hadi Sinaee__,Les Larkins, Edra Ethier" - dest = "Meklit Katlego Conference" - link = "https://mypaperishere.com" - code_link = "https://thecoderepo.com" - blog_link = "https://myblogaboutit.com" - -[[params.publications]] - year="2019" - - [[params.publications.paper]] - name = "Feugiat sed lectus vestibulum mattis ullamcorper velit sed" - authors = "Caroll Comes, __Hadi Sinaee__" - dest = "Udo Madhu Journal" - link = "https://mypaperishere.com" - code_link = "https://thecoderepo.com" - blog_link = "" - - [[params.publications.paper]] - name = "Venenatis urna cursus eget nunc. Nam aliquam sem et tortor consequat id porta nibh venenatis" - authors = "Les Larkins, Ana Alvardo, __Hadi Sinaee__ " - dest = "Zorka Vita Conference" - link = "https://mypaperishere.com" - code_link = "" - blog_link = "https://myblogaboutit.com" +# for using avicenna you need to set the `themes` to 'avicenna' +theme = "avicenna" - [[params.publications.paper]] - name = "Aliquet eget sit amet tellus cras adipiscing enim eu turpis" - authors = "Les Larkins, __Hadi Sinaee__, Ana Alvardo" - dest = "Lena Randa Conference" - link = "https://mypaperishere.com" - code_link = "" - blog_link = "" +# This is your page title, it appears in your tab +title = "YOUR NAME HERE" - [[params.publications.paper]] - name = "Orci eu lobortis elementum nibh tellus molestie nunc non blandit" - authors = "__Hadi Sinaee__, Caroll Comes" - dest = "Thandeka Radhika Conference" - link = "" - code_link = "" - blog_link = "" +[params] +# it is used for the copy-right section of your page +name = "YOUR NAME HERE" diff --git a/exampleSite/content/.gitkeep b/exampleSite/content/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/exampleSite/content/about/_index.md b/exampleSite/content/about/_index.md new file mode 100644 index 0000000..43a2218 --- /dev/null +++ b/exampleSite/content/about/_index.md @@ -0,0 +1,62 @@ +--- +title: "about" +date: 2020-10-20T17:51:47+03:30 +draft: false +headless: true + +full_name: "Hadi Sinaee" +profile_picture: "profile.png" +cv: "cv.pdf" + +socials: + twitter: "HadiSinaee" + github: "hadisinaee" + facebook: "hadisinaee" + twitch: "hadisinaee" + google_scholar: "hadisinaee" + +interests: + - interest 1 + - interest 2 + - interest 3 + +affiliations: + - affiliation: + title: "Ph.D." + name: "Stanford University" + email: "email@cs.stanford.edu" + - affiliation: + title: "CEO & Co-Founder" + name: "The Coolest Startup In the World" + email: "email@mycoolstartup.ai" + +academia: + - course: + degree: "Ph.D." + institution: "Stanford University" + major: "Data Systems" + start_date: "2021" + - course: + degree: "M.Sc." + institution: 'Sharif University of Technology' + major: 'Software Engineering' + start_date: '2013' + end_date: '2016' + other_info: 'graduated without first class honor, supervised by Prof. Very Cool!' + - course: + degree: "B.Sc." + institution: 'University of Kashan' + major: 'Software Engineering' + minor: 'Statistics' + start_date: '2009' + end_date: '2013' + other_info: 'graduated with first class honor, supervised by Prof. Cool!' +--- + +**Donec sollicitudin**, [ante pulvinar tincidunt][1] luctus, dolor mauris lobortis ex, *id tincidunt metus* risus nec ex. Curabitur magna mauris, facilisis vitae porttitor vitae, tincidunt sed mi. In at dui lectus. Integer ante arcu, vestibulum fermentum ante eu, maximus maximus quam. Curabitur placerat cursus posuere. Phasellus dui lorem, varius a augue non, eleifend accumsan mauris. Aenean varius posuere feugiat. In hac habitasse platea dictumst. Aenean quis ex quis nisl consequat fermentum in vitae nunc. Proin consectetur ac nulla in tempus. Maecenas enim nisi, pulvinar sit amet fermentum eget, ultrices vitae enim. Etiam vel sollicitudin felis. + + +Donec sollicitudin, ante pulvinar tincidunt luctus, dolor mauris lobortis ex, id tincidunt metus risus nec ex. Curabitur magna mauris, facilisis vitae porttitor vitae, + + +[1]: https://google.com \ No newline at end of file diff --git a/exampleSite/content/home/about.md b/exampleSite/content/home/about.md new file mode 100644 index 0000000..c8c8770 --- /dev/null +++ b/exampleSite/content/home/about.md @@ -0,0 +1,14 @@ +--- +date: 2020-10-20T18:55:12+03:30 +headless: true +weight: 1 +content_type: "about" + +section_settings: + show_section: true +--- + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) + +DO NOT EDIT THIS FILE! +- USE home/_index.md and make your changes there! \ No newline at end of file diff --git a/exampleSite/content/home/index.md b/exampleSite/content/home/index.md new file mode 100644 index 0000000..47d7766 --- /dev/null +++ b/exampleSite/content/home/index.md @@ -0,0 +1,6 @@ +--- +title: "home" +date: 2020-10-20T17:51:47+03:30 +draft: false +headless: true +--- diff --git a/exampleSite/content/home/projects.md b/exampleSite/content/home/projects.md new file mode 100644 index 0000000..967b9c2 --- /dev/null +++ b/exampleSite/content/home/projects.md @@ -0,0 +1,17 @@ +--- +title: "Projects" +date: 2020-10-20T18:55:12+03:30 +headless: true +weight: 2 +content_type: "projects" + +section_settings: + show_section: true + title: '' + subtitle: 'Custom Subtitle: see my github for the complete list' +--- + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) + +ADDING NEW PROJECTS +> USE home/projects.md and make your changes there! \ No newline at end of file diff --git a/exampleSite/content/home/publications.md b/exampleSite/content/home/publications.md new file mode 100644 index 0000000..3a1ffee --- /dev/null +++ b/exampleSite/content/home/publications.md @@ -0,0 +1,17 @@ +--- +title: "Publications" +date: 2020-10-20T18:55:12+03:30 +headless: true +weight: 1 +content_type: 'publications' + +section_settings: + show_section: true + title: 'Recent Publications' + subtitle: 'Custom Subtitle: see my google scholar for the latest list' +--- + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) + +ADDING NEW PUBLICATIONS +> USE home/publications.md and make your changes there! \ No newline at end of file diff --git a/exampleSite/content/projects/hodhod/index.md b/exampleSite/content/projects/hodhod/index.md deleted file mode 100644 index 3e73aae..0000000 --- a/exampleSite/content/projects/hodhod/index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "Hodhod" -date: 2019-08-26T16:36:11+04:30 ---- - - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Morbi tristique senectus et netus et malesuada fames ac. Risus pretium quam vulputate dignissim suspendisse in. In cursus turpis massa tincidunt dui. Purus non enim praesent elementum facilisis. Id aliquet risus feugiat in ante metus dictum at tempor. Velit ut tortor pretium viverra suspendisse potenti nullam ac. Tincidunt augue interdum velit euismod in. In massa tempor nec feugiat nisl pretium fusce. Lacus sed viverra tellus in hac habitasse platea dictumst. Egestas fringilla phasellus faucibus scelerisque eleifend donec pretium. Risus ultricies tristique nulla aliquet enim tortor at auctor. Placerat duis ultricies lacus sed turpis tincidunt id aliquet risus. Pharetra convallis posuere morbi leo urna molestie at. Senectus et netus et malesuada fames ac. Non quam lacus suspendisse faucibus interdum posuere. Suspendisse interdum consectetur libero id faucibus. Eros in cursus turpis massa tincidunt. diff --git a/exampleSite/content/projects/hodhod/logo.png b/exampleSite/content/projects/hodhod/logo.png deleted file mode 100644 index 132df29..0000000 Binary files a/exampleSite/content/projects/hodhod/logo.png and /dev/null differ diff --git a/exampleSite/content/projects/index.md b/exampleSite/content/projects/index.md new file mode 100644 index 0000000..57da023 --- /dev/null +++ b/exampleSite/content/projects/index.md @@ -0,0 +1,8 @@ +--- +title: "Projects" +date: 2020-10-20T17:51:47+03:30 +draft: false +headless: true +--- + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) \ No newline at end of file diff --git a/exampleSite/content/projects/proj1.md b/exampleSite/content/projects/proj1.md new file mode 100644 index 0000000..f0b8759 --- /dev/null +++ b/exampleSite/content/projects/proj1.md @@ -0,0 +1,10 @@ +--- +title: "Quisque: Tristique iaculis augue, et ornare nibh pretium in." + +date: "2018-05-18" + +links: + website: 'https://github.com/hadisinaee/avicenna' +--- + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) \ No newline at end of file diff --git a/exampleSite/content/projects/proj2.md b/exampleSite/content/projects/proj2.md new file mode 100644 index 0000000..656cd14 --- /dev/null +++ b/exampleSite/content/projects/proj2.md @@ -0,0 +1,10 @@ +--- +title: "Vestibulum: Maecenas ac eros id libero dapibus vehicula a ut erat." + +date: "2019-03-30" + +links: + website: 'https://github.com/hadisinaee/avicenna' +--- + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) \ No newline at end of file diff --git a/exampleSite/content/publications/index.md b/exampleSite/content/publications/index.md new file mode 100644 index 0000000..573d981 --- /dev/null +++ b/exampleSite/content/publications/index.md @@ -0,0 +1,8 @@ +--- +title: "Publications" +date: 2020-10-20T17:51:47+03:30 +draft: false +headless: true +--- + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) \ No newline at end of file diff --git a/exampleSite/content/publications/mybestpaper/index.md b/exampleSite/content/publications/mybestpaper/index.md deleted file mode 100644 index 0dec2bf..0000000 --- a/exampleSite/content/publications/mybestpaper/index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "My Best Paper" -date: 2019-08-26T16:36:11+04:30 ---- - - -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Morbi tristique senectus et netus et malesuada fames ac. Risus pretium quam vulputate dignissim suspendisse in. In cursus turpis massa tincidunt dui. Purus non enim praesent elementum facilisis. Id aliquet risus feugiat in ante metus dictum at tempor. Velit ut tortor pretium viverra suspendisse potenti nullam ac. Tincidunt augue interdum velit euismod in. In massa tempor nec feugiat nisl pretium fusce. Lacus sed viverra tellus in hac habitasse platea dictumst. Egestas fringilla phasellus faucibus scelerisque eleifend donec pretium. Risus ultricies tristique nulla aliquet enim tortor at auctor. Placerat duis ultricies lacus sed turpis tincidunt id aliquet risus. Pharetra convallis posuere morbi leo urna molestie at. Senectus et netus et malesuada fames ac. Non quam lacus suspendisse faucibus interdum posuere. Suspendisse interdum consectetur libero id faucibus. Eros in cursus turpis massa tincidunt. diff --git a/exampleSite/content/publications/pub1.md b/exampleSite/content/publications/pub1.md new file mode 100644 index 0000000..cc9a682 --- /dev/null +++ b/exampleSite/content/publications/pub1.md @@ -0,0 +1,19 @@ +--- +title: "Your Paper Name Goes Here" +authors: +- Your Full Name +- Another Researcher +date: "2018-09-01" + +publication: "Journal of Machine Learning" + +links: + url_pdf: https://github.com/hadisinaee/avicenna + url_code: https://github.com/hadisinaee/avicenna + url_slides: https://github.com/hadisinaee/avicenna + url_video: https://github.com/hadisinaee/avicenna + +--- + + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) \ No newline at end of file diff --git a/exampleSite/content/publications/pub2.md b/exampleSite/content/publications/pub2.md new file mode 100644 index 0000000..afa158a --- /dev/null +++ b/exampleSite/content/publications/pub2.md @@ -0,0 +1,17 @@ +--- +title: "Your Paper Name Goes Here" +authors: +- Your Full Name +- Author Name +date: "2016-09-01" + +publication: "Journal of Machine Learning" + +links: + url_pdf: https://github.com/hadisinaee/avicenna + url_code: https://github.com/hadisinaee/avicenna + url_slides: https://github.com/hadisinaee/avicenna + url_video: https://github.com/hadisinaee/avicenna +--- + +[See the wiki page for tutorial!](https://github.com/hadisinaee/avicenna/wiki) \ No newline at end of file diff --git a/exampleSite/static/HadiSinaee_CV.pdf b/exampleSite/static/HadiSinaee_CV.pdf deleted file mode 100644 index a96bb36..0000000 Binary files a/exampleSite/static/HadiSinaee_CV.pdf and /dev/null differ diff --git a/exampleSite/static/android-chrome-192x192.png b/exampleSite/static/android-chrome-192x192.png deleted file mode 100755 index 1c9b0e4..0000000 Binary files a/exampleSite/static/android-chrome-192x192.png and /dev/null differ diff --git a/exampleSite/static/android-chrome-512x512.png b/exampleSite/static/android-chrome-512x512.png deleted file mode 100755 index 82bead1..0000000 Binary files a/exampleSite/static/android-chrome-512x512.png and /dev/null differ diff --git a/exampleSite/static/apple-touch-icon.png b/exampleSite/static/apple-touch-icon.png deleted file mode 100755 index c7acdc1..0000000 Binary files a/exampleSite/static/apple-touch-icon.png and /dev/null differ diff --git a/exampleSite/static/favicon-16x16.png b/exampleSite/static/favicon-16x16.png deleted file mode 100755 index 09e7635..0000000 Binary files a/exampleSite/static/favicon-16x16.png and /dev/null differ diff --git a/exampleSite/static/favicon-32x32.png b/exampleSite/static/favicon-32x32.png deleted file mode 100755 index 20faec6..0000000 Binary files a/exampleSite/static/favicon-32x32.png and /dev/null differ diff --git a/exampleSite/static/images/profile.png b/exampleSite/static/images/profile.png new file mode 100644 index 0000000..0f860e8 Binary files /dev/null and b/exampleSite/static/images/profile.png differ diff --git a/exampleSite/static/profile.jpg b/exampleSite/static/profile.jpg deleted file mode 100644 index 70b0193..0000000 Binary files a/exampleSite/static/profile.jpg and /dev/null differ diff --git a/exampleSite/static/site.webmanifest b/exampleSite/static/site.webmanifest deleted file mode 100755 index 45dc8a2..0000000 --- a/exampleSite/static/site.webmanifest +++ /dev/null @@ -1 +0,0 @@ -{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/images/screenshot.png b/images/screenshot.png index 15990d6..1002175 100644 Binary files a/images/screenshot.png and b/images/screenshot.png differ diff --git a/images/tn.png b/images/tn.png index 6ef087a..56f7b37 100644 Binary files a/images/tn.png and b/images/tn.png differ diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 367897b..2ae78d5 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,10 +1,14 @@ - {{ partial "header.html" . }} - -
- {{- block "main" . }}{{- end -}} -
- {{ partial "footer.html" . }} - - +{{- partial "core/head.html" . -}} + + + + + {{- block "main" . }}{{- end }} + + {{- partial "core/footer.html" . -}} + {{- partial "core/script.html" . -}} + + + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e69de29..6a5cd2a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -0,0 +1,13 @@ +{{ define "main" }} +this is _default/list.html + +

{{ .Title }}

+{{ range .Pages.ByPublishDate.Reverse }} +

+

{{ .Title }}

+ +

{{ .Summary }}

+
+

+{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 989906b..4f8d4aa 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,26 +1,6 @@ {{ define "main" }} - -{{ $projectLogo := "logo.png" | printf "%s%s" .Dir }} - -{{ if fileExists $projectLogo -}} -
- -
-{{- end}} - -
- - {{ title .Title }} - -
    -
  • {{ .Date.Format "January 2, 2006" }}
  • -
- Return Home -
- - -
- {{ .Content | markdownify }} -
- -{{end}} +this is _default/single.html +

{{ .Title }}

+

+{{ .Content }} +{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 0d33cac..9178e6f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,16 +1,49 @@ - - - {{ partial "header.html" . }} - - -
- {{ partial "head.html" . }} - {{ partial "introduction.html" . }} - {{ partial "projects.html" . }} - {{ partial "publications.html" . }} -
- - {{ partial "footer.html" . }} - - - +{{ define "main" }} + +{{ $headlessPage := .Site.GetPage "/home" }} + +{{ range where ($headlessPage.Resources.ByType "page") "Params.section_settings.show_section" true}} + +{{ $content_type := .Params.content_type }} +{{ if not $content_type }} +NO CONTENT TYPE FOUND. Set content_type = "{{.Params.title | lower }}" +{{ end }} + +{{ $title := .Params.title }} +{{ if .Params.section_settings.title }} +{{ $title = .Params.section_settings.title }} +{{ end }} + +{{ $subtitle := "" }} +{{ if .Params.section_settings.subtitle }} +{{ $subtitle = .Params.section_settings.subtitle }} +{{ end }} + +{{ if or $title (eq $content_type "about")}} +
+
+ {{if or $title $subtitle}} +
+
+ {{if $title }} +

{{ $title }}

+ {{ end }} + + {{ if $subtitle}} +
{{ $subtitle }}
+ {{end}} +
+
+ {{end}} + + {{- partial (printf "%s/%s.html" $content_type $content_type) . -}} +
+
+ +{{end}} + + +{{end}} + + +{{end}} \ No newline at end of file diff --git a/layouts/partials/about/about.html b/layouts/partials/about/about.html new file mode 100644 index 0000000..561e9c0 --- /dev/null +++ b/layouts/partials/about/about.html @@ -0,0 +1,11 @@ + + +
+ {{ partial "about/introduction.html" . }} +
+ +
+ {{ partial "about/interests_academia.html" . }} +
+ + \ No newline at end of file diff --git a/layouts/partials/about/interests_academia.html b/layouts/partials/about/interests_academia.html new file mode 100644 index 0000000..87c2781 --- /dev/null +++ b/layouts/partials/about/interests_academia.html @@ -0,0 +1,60 @@ +{{ $content_type := .Params.content_type }} + +{{ $aboutPage := .Site.GetPage $content_type }} + +{{ if or $aboutPage.Params.academia $aboutPage.Params.interests}} +{{ if $aboutPage.Params.interests }} +
+

Interests

+
    + {{range $aboutPage.Params.interests }} +
  • + {{.}} +
  • + {{end}} +
+
+{{end}} + +{{if $aboutPage.Params.academia}} +
+

Academia

+ {{range $academia := $aboutPage.Params.academia}} +
+
+
+
+ {{$academia.course.institution}} +
+
+ {{$academia.course.start_date}} + {{ if $academia.course.end_date }} + - {{$academia.course.end_date}} + {{else}} + - present + {{end}} +
+
+
+
+ {{$academia.course.degree}} {{$academia.course.major}} + + {{if $academia.course.minor }} + , Minor: {{$academia.course.minor}} + {{end}} +
+
+ + {{if $academia.course.other_info}} +
+
+ {{$academia.course.other_info}} +
+
+ {{end}} +
+
+ {{end}} +
+{{end}} +{{end}} \ No newline at end of file diff --git a/layouts/partials/about/introduction.html b/layouts/partials/about/introduction.html new file mode 100644 index 0000000..5eaab79 --- /dev/null +++ b/layouts/partials/about/introduction.html @@ -0,0 +1,96 @@ +{{ $content_type := .Params.content_type }} + +{{ $aboutPage := .Site.GetPage $content_type }} + +
+ profile_picture +
+ + +{{ if $aboutPage.Params.full_name }} +
+ {{ $aboutPage.Params.full_name }} +
+{{end}} + +{{ if $aboutPage.Params.affiliations }} +
+
+ {{ range $key, $value := $aboutPage.Params.affiliations }} +
+ + {{$value.affiliation.title}}, + + + {{$value.affiliation.name}} + +
+
+ {{$value.affiliation.email}} +
+ + + {{ end }} +
+
+{{end}} + +{{ if $aboutPage.Params.socials }} +
+
+ {{ $google_scholar := index $aboutPage.Params.socials "google_scholar"}} + {{ $facebook := index $aboutPage.Params.socials "facebook"}} + {{ $twitter := index $aboutPage.Params.socials "twitter"}} + {{ $twitch := index $aboutPage.Params.socials "twitch"}} + {{ $github := index $aboutPage.Params.socials "github"}} + {{ $cv := $aboutPage.Params.cv }} + + + {{if $google_scholar}} + + + + {{end}} + + {{ if $github }} + + + + {{end}} + + {{ if $twitter }} + + + + {{end}} + + {{ if $facebook }} + + + + {{end}} + + + {{ if $twitch }} + + + + {{end}} + + {{if $cv}} + + + + {{end}} + +
+
+{{end}} + +{{if $aboutPage.Content }} +
+
+ {{$aboutPage.Content}} +
+
+{{end}} \ No newline at end of file diff --git a/layouts/partials/core/footer.html b/layouts/partials/core/footer.html new file mode 100644 index 0000000..1de71e3 --- /dev/null +++ b/layouts/partials/core/footer.html @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/layouts/partials/core/head.html b/layouts/partials/core/head.html new file mode 100644 index 0000000..6084457 --- /dev/null +++ b/layouts/partials/core/head.html @@ -0,0 +1,23 @@ + + + + + + + + + + + + {{ $title := print .Site.Title " | " .Title }} + {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + + {{ $title }} + + + {{ template "_internal/google_analytics.html" . }} + + \ No newline at end of file diff --git a/layouts/partials/core/script.html b/layouts/partials/core/script.html new file mode 100644 index 0000000..cef5d32 --- /dev/null +++ b/layouts/partials/core/script.html @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index ed14950..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,13 +0,0 @@ - - -{{ template "_internal/google_analytics_async.html" . }} -{{- with .Site.Params.Social -}} - -{{- end -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index 9e8ade9..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,45 +0,0 @@ -
- -

{{ .Site.Title }}

-
- - {{- range $index, $key := .Site.Params.affilation -}} -
    -
  • {{$key.position}}, {{$key.name}}
  • - -
- {{- end -}} -
- - - -
- - -
diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index 2268481..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - {{- $title := ( .Title ) -}} - {{- $siteTitle := ( .Site.Title ) -}} - {{- if .IsHome -}} - {{ $siteTitle }} {{- if isset .Site.Params "subtitle" -}} - {{ .Site.Params.Subtitle }}{{- end -}} - {{- else -}} - {{ $title }} - {{ $siteTitle }} - {{- end -}} - - - - - - - - - - - {{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} - - {{- template "_internal/opengraph.html" . -}} - {{- template "_internal/twitter_cards.html" . -}} - - - - - - {{ range .Site.Params.custom_css -}} - - {{- end }} - - {{- if and (isset .Site.Params "social") (isset .Site.Params "feathericonscdn") (eq .Site.Params.featherIconsCDN true) -}} - - {{- else if (isset .Site.Params "social") -}} - - {{- end -}} - - diff --git a/layouts/partials/introduction.html b/layouts/partials/introduction.html deleted file mode 100644 index ac7c5fa..0000000 --- a/layouts/partials/introduction.html +++ /dev/null @@ -1,11 +0,0 @@ -
- {{- range $index, $key := .Site.Params.Introduction.paragraph -}} - - {{ $key.text | markdownify }} - -
- {{- end -}} - - Interests. {{ $.Site.Params.interests | markdownify }} - -
diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html deleted file mode 100644 index 227d987..0000000 --- a/layouts/partials/projects.html +++ /dev/null @@ -1,35 +0,0 @@ -
- {{ with .Site.Params.projects }} -

Projects

-
    - {{- range $index, $projects_map := $.Site.Params.projects -}} - - {{ range $elem_index, $project := $projects_map.project }} -
  • - {{ $project.name }} - - {{ if or ($project.code_link) ($project.blog_link) }} - - {{ with $project.code_link }} - [code] - {{ end }} - - {{ with $project.blog_link }} - [blog] - {{ end }} - - {{ end }} - - {{ with $project.description }} - - {{ . | markdownify}} - - {{ end }} - -
  • - {{ end }} - - {{- end -}} -
- {{ end }} -
diff --git a/layouts/partials/projects/projects.html b/layouts/partials/projects/projects.html new file mode 100644 index 0000000..7cc04a5 --- /dev/null +++ b/layouts/partials/projects/projects.html @@ -0,0 +1,34 @@ +{{ $content_type := .Params.content_type }} +{{if $content_type}} +{{ $t := .Site.GetPage $content_type }} +{{ $rscPages := $t.Resources.ByType "page"}} + +{{if gt (len $rscPages) 0}} +
+
+ {{range $page := sort $rscPages "Params.date" "desc"}} +
+
+ + {{$page.Params.title}} + +
+ + {{ $links := $page.Params.links }} + {{ if $links }} +
+ {{ if $links.website }} + website + {{end}} +
+ {{end}} + + +
+ {{end}} + + +
+ {{end}} +
+{{end}} \ No newline at end of file diff --git a/layouts/partials/publications.html b/layouts/partials/publications.html deleted file mode 100644 index 01277da..0000000 --- a/layouts/partials/publications.html +++ /dev/null @@ -1,38 +0,0 @@ -
- {{ with .Site.Params.publications }} -

Publications

- - {{- range $index, $publications := $.Site.Params.publications -}} -
{{ $publications.year }}
- -
    - {{ range $elem_index, $publication := $publications.paper }} -
  • - {{ if $publication.link }} - {{ $publication.name }}, - {{ else }} -

    {{ $publication.name }},

    - {{ end }} - {{ $publication.dest | markdownify }}. - - {{ if or ($publication.code_link) $publication.blog_link }} - - {{ with $publication.code_link }} - [code] - {{ end }} - - {{ with $publication.blog_link }} - [blog] - {{ end }} - - {{ end }} - - - {{ $publication.authors | markdownify }} - -
  • - {{ end }} -
- {{- end -}} - {{- end -}} -
diff --git a/layouts/partials/publications/publications.html b/layouts/partials/publications/publications.html new file mode 100644 index 0000000..4845cd1 --- /dev/null +++ b/layouts/partials/publications/publications.html @@ -0,0 +1,79 @@ +{{ $content_type := .Params.content_type }} +{{if $content_type}} +{{ $t := .Site.GetPage $content_type }} +{{ $rscPages := $t.Resources.ByType "page"}} + +{{if gt (len $rscPages) 0}} +
+
+ {{ range $page := $rscPages}} +
+ +
+ + {{$page.Params.title}}, + + + + {{substr ($page.Params.date.Format "2006-01-02") 0 4}}, + + + + {{$page.Params.publication}} + + +
+ +
+ + {{ $authors := $page.Params.authors }} + + {{ if $authors }} + {{range $i, $author := $authors}} + + {{$author}} + + {{ if lt $i (sub (len $authors) 1)}} + + , + + {{end}} + {{end}} + {{end}} + +
+ + {{ $links := $page.Params.links }} + {{ if $links }} +
+ {{ if $links.url_pdf }} + pdf + {{end}} + + {{ if $links.url_code }} + code + {{end}} + + + {{ if $links.url_slides }} + slides + {{end}} + + {{ if $links.url_video }} + video + {{end}} + +
+ {{end}} + + + +
+ + {{end}} + +
+ {{end}} +
+{{end}} \ No newline at end of file diff --git a/setup_avicenna.sh b/setup_avicenna.sh new file mode 100644 index 0000000..70c22ba --- /dev/null +++ b/setup_avicenna.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +SITE_FOLDER=$1 +# creates the site folder +hugo new site $SITE_FOLDER + +# install the latest avicenna theme +cd $SITE_FOLDER +git clone -b master git@github.com:hadisinaee/avicenna.git ./themes/avicenna + +# copy the template site +cp -R themes/avicenna/exampleSite/* ./ \ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css deleted file mode 100644 index 15f2192..0000000 --- a/static/css/main.css +++ /dev/null @@ -1,439 +0,0 @@ -/* Ubuntu, Ubuntu */ -@import url(https://fonts.googleapis.com/css?family=Ubuntu); -@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono); - -body { - font-family: "Ubuntu", sans-serif; - font-weight: 300; - color: #333; - line-height: 1.5; - font-size: 16px; -} - -a, -a:hover { - color: #a00; - text-decoration: none; -} - -html, -button, -input, -select, -textarea { - color: #222; -} - -::-moz-selection { - background: #b3d4fc; - text-shadow: none; -} - -::selection { - background: #b3d4fc; - text-shadow: none; -} - -hr { - display: none; - height: 1px; - border: 0; - /* border-top: 1px solid #ccc; */ - margin: 1rem 0; - padding: 0; -} - -audio, -canvas, -img, -video { - width: 100%; - vertical-align: middle; -} - -fieldset { - border: 0; - margin: 0; - padding: 0; -} - -textarea { - resize: vertical; -} - -blockquote { - margin-left: 1rem; - font-style: italic; - font-size: 1.4rem; - font-family: Georgia, bitstream charter, serif; - border-left: 3px solid; - border-color: #a00; - padding-left: 20px; -} - -blockquote cite { - font-size: 70%; - opacity: 0.8; -} -span { - display: block; -} - -a, -a:hover { - color: #a00; - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - -h1, -h2, -h3, -h4, -h5, -h6 { - font-family: Ubuntu, raleway, sans-serif; - line-height: 1.2; - color: #330; - font-weight: 100; - margin-bottom: 15px; - margin-top: 20px; -} - -h1 { - font-size: 2.75rem; -} - -h2 { - font-size: 2rem; -} - -h3 { - font-size: 1.6rem; -} - -h4 { - font-size: 1.2rem; -} - -h5 { - font-weight: 300; - font-size: 1rem; -} - -h6 { - font-weight: 300; - font-size: 0.9rem; -} - -.container { - max-width: 800px; -} - -ul { - padding-left: 15px; -} - -ul.flat { - margin: 0; - padding: 0; -} - -ul.flat li { - display: inline-block; - list-style: none; - margin-left: 0; -} - -.prevent-collapse { - min-height: 0.1rem; -} - -.page-title { - margin: 0; -} - -.smaller { - font-size: 70%; -} - -ul { - list-style: disc inside; -} - -.introduction ul li { - margin-bottom: 10px; -} - -.introduction ul li p { - display: inline; -} - -.highlight pre { - margin-bottom: 0; - margin-top: 0; - padding: 20px; - background-color: #fafafa !important; -} - -.highlight { - background: 0 0; -} - -.wrapper { - max-width: 760px; - margin: 0 auto; -} - -.container { - margin-top: 50px; -} - -.header { - margin-bottom: 20px; - /* padding-bottom: 20px; */ -} - -.header .profile_image { - display: block; - margin-left: auto; - margin-right: auto; - max-width: 30%; - height: auto; - border-radius: 50%; - /* float: left; */ -} - -.header h1, -.header h2 { - margin: 0; - padding: 0; - font-size: 2rem; - line-height: 1.3em; -} - -.header h2 { - font-size: 1.125rem; -} - -.header nav { - margin-top: 20px; - /* border-top: 1px solid #f4f4f4; */ -} - -.header nav ul, -.header nav li { - margin: 0; -} - -.header nav ul.flat { - padding: 0; -} - -.header nav ul.flat li { - display: inline-block; - list-style: none; - margin-left: 0; - margin-right: 10px; - margin-top: 10px; - text-transform: capitalize; -} - -.header .site-affilation { - display: flex; - justify-content: space-between; -} - -.header .site-affilation .email { - /* color: #a00; */ - font-size: 14px; - display: block; - font-family: "Ubuntu Mono"; - font-weight: bolder; -} - -.header .site-affilation .position { - /* color: #a00; */ - /* font-size: 14px; */ - /* display: block; */ - font-family: Ubuntu; - /* font-weight: bolder; */ -} - -.header .site-affilation nav { - margin: 0; - padding: 0; - border: none; -} - -.header .site-affilation nav ul svg { - max-height: 15px; -} - -/* header for projects */ -.header .logo { - display: block; - margin-top: 2%; - margin-bottom: -2%; - margin-left: auto; - margin-right: auto; - max-width: 10%; - height: auto; -} - -.page_title { - font-family: Ubuntu; - font-weight: bolder; - font-size: 1.5em; - margin-top: 10%; - display: block; -} - -.page_meta { - display: block; - font-family: "Ubuntu Mono"; - font-size: 14px; -} - -.page_meta_icon { - font-weight: .5em; -} - -.email { - /* color: #a00; */ - font-size: 16px; - font-family: "Ubuntu Mono"; - font-weight: bolder; -} - -.collaborators { - font-size: 15px; - margin-left: .9em; - margin-top: .1em; -} - -.year { - font-size: 20px; - margin-bottom: -.6em; -} - -.project { - margin: .5em -.5em 0em; -} - -.publications { - margin-left: -.5em; -} - -.code_blog { - font-family: "Ubuntu Mono"; - font-size: 14px; - margin: 0em .9em 0em; -} - -.blog_cv { - font-family: "Ubuntu Mono"; - font-size: 17px; - /* margin: 0em .9em 0em; */ -} - -.project_description { - margin: .5em .9em 0em; -} - -.section .section-header { - font-size: 0.75rem; - font-weight: 600; - text-transform: uppercase; - color: #999; - margin-bottom: 20px; - letter-spacing: 1px; -} - -.recent-posts .posts .introduction { - margin-bottom: 30px; -} - -.recent-posts .posts .introduction .meta, -.introduction .introduction-header .meta, -.list .posts .introduction .meta { - font-size: 0.725rem; - color: #999; - margin-bottom: 4px; -} - -.introduction .introduction-header { - margin-bottom: 30px; -} - -.introduction .introduction-header .title { - margin: 0; -} - -.introduction .introduction-header .meta { - padding-left: 5px; - margin-top: 10px; -} - -.list .posts .introduction .meta { - margin-bottom: 0; - margin-left: 5px; -} - -.footer { - text-align: right; - font-size: 0.75em; - color: #999; - border-top: 1px solid #f4f4f4; - padding: 20px 0; - margin-top: 40px; -} - -.page-title { - margin-bottom: 0; -} - -.tag-cloud { - margin-top: 20px; -} - -.tag-cloud a { - margin-right: 15px; -} - - - -@media (max-width: 767px) { - body { - padding: 20px; - } - - h1 { - font-size: 2rem; - } - - h2 { - font-size: 1.6rem; - } - - h3 { - font-size: 1.2rem; - } - - h4 { - font-size: 1rem; - } - - .container { - margin-top: 10px; - } -} - -@media (max-width: 480px) { - body { - font-size: 14px; - } -} diff --git a/static/css/normalize.css b/static/css/normalize.css deleted file mode 100644 index 08ac354..0000000 --- a/static/css/normalize.css +++ /dev/null @@ -1 +0,0 @@ -/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */img,legend{border:0}legend,td,th{padding:0}html{font-family:serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,optgroup,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre,textarea{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}table{border-collapse:collapse;border-spacing:0} \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..460197b --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,163 @@ + +body { + font-family: 'Inter', sans-serif; + color: #071013; +} + +a { + color: #8C1515; +} + +.body { + margin: auto; +} + +.h-100 { + margin: auto; +} + +.w-100 { + margin: auto; +} + +.main_color { + color: #8C1515; +} + +.secondary_color { + color: #071013; +} + +.email_color { + color: #071013; +} + +.secondary_font { + font-family: 'Ubuntu Mono', serif; +} + +.section-subtitle { + font-family: 'Ubuntu Mono', serif; +} + +#profile_picture { + width: 20%; + height: auto; + margin-top: 1%; +} + +.about #full_name { + font-size: x-large; +} + +.about .affiliations #title { + padding-right: .5%; +} + +.about .affiliations #name { + padding-right: .5%; +} + +.about #email { + font-family: 'Ubuntu Mono', serif; + margin: auto; +} + +.about .socials { + font-size: small; + margin-bottom: 1%; + margin-top: 1%; +} + +.about .socials a { + margin-left: .5%; +} + +.about .academia .degree_major { + font-size: small; +} + +.about .academia .other_info { + font-size: small; +} + +.course { + margin-top: 1%; +} + + +.publications .publication { + margin-top: 1.5%; +} + +.publication .section-1 .publication-date { + font-family: 'Ubuntu Mono', serif; +} + +.publication .section-1 .publication-name { + font-family: 'Ubuntu Mono', serif; +} + + +.publication .section-2 { + font-family: 'Ubuntu Mono', serif; + margin-top: -.1%; + margin-bottom: .5%; +} + + +.publication .section-3 { + margin-top: -.5%; + font-family: 'Ubuntu Mono', serif; + text-decoration: none; +} + +.publication .section-3 a{ + padding: .15%; +} + +.publication .section-3 a:hover { + transition-property: background-color; + transition-duration: .2s; + transition-timing-function: ease-in-out; + + border-radius: 50%; + background-color: #d64933; + color: white; +} + +.publication .separator { + margin-left: -1%; +} + +.projects .project { + margin-top: 1.5%; +} + +.project .section-2 a { + padding: .8%; + margin-left: -.1%; +} + +.projects .project a{ + font-family: 'Ubuntu Mono', serif; + padding: .15%; +} +.projects .project .section-2 a:hover { + transition-property: background-color; + transition-duration: .2s; + transition-timing-function: ease-in-out; + + border-radius: 50%; + background-color: #d64933; + color: white; +} + + +.section-title { + margin-top: 2.5%; +} + +.copy_right { + font-size: small; +} \ No newline at end of file diff --git a/static_folder.png b/static_folder.png new file mode 100644 index 0000000..3d49d7a Binary files /dev/null and b/static_folder.png differ diff --git a/theme.toml b/theme.toml index ec70816..5f650eb 100644 --- a/theme.toml +++ b/theme.toml @@ -1,21 +1,15 @@ # theme.toml template for a Hugo theme # See https://github.com/gohugoio/hugoThemes#themetoml for an example -name = "Avicenna" -license = "MIT" -licenselink = "https://github.com/hadisinaee/avicenna/blob/master/LICENSE" description = "A minimal, simple, and responsive academic page." -homepage = "https://github.com/hadisinaee/avicenna" -tags = ["academic", "personal", "minimal", "minimalist", "clean", "responsive", "simple", "university"] features = ["Academic", "Responsive", "Clean And Minimal", "Social Media Links"] +homepage = "https://github.com/hadisinaee/avicenna" +license = "MIT" +licenselink = "https://github.com/hadisinaee/avicenna/blob/master/LICENSE" min_version = "0.41" +name = "Avicenna" +tags = ["academic", "personal", "minimal", "minimalist", "clean", "responsive", "simple", "university"] [author] - name = "Hadi Sinaee" - homepage = "http://ce.sharif.edu/~sinaee/" - -# If porting an existing theme -[original] - name = "ezhil" - homepage = "https://github.com/vividvilla/ezhil" - repo = "https://github.com/vividvilla/ezhil" +homepage = "https://hadisinaee.github.io/" +name = "Hadi Sinaee" -- cgit v1.2.3