1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/plugins/links.py

25 lines
1 KiB
Python

from collections import namedtuple
from random import shuffle
SocialLink = namedtuple("SocialLink", ["name", "url", "icon"])
ProjectLink = namedtuple("ProjectLink", ["name", "url", "image"])
def social():
return {
"github": SocialLink("GitHub", "https://github.com/RealOrangeOne", "fa-github"),
"twitter": SocialLink("Twitter", "https://twitter.com/RealOrangeOne", "fa-twitter"),
"reddit": SocialLink("Reddit", "https://reddit.com/user/RealOrangeOne", "fa-reddit"),
"instagram": SocialLink("Instagram", "https://instagram.com/RealOrangeOne", "fa-instagram"),
"youtube": SocialLink("YouTube", "https://youtube.com/user/TheOrangeOneOfficial", "fa-youtube")
}
def index_projects():
projects = [
ProjectLink("Student Robotics", "/robotics/", "https://c2.staticflickr.com/8/7711/17122633430_e1b599fe47.jpg"),
ProjectLink("Dotfiles", "/projects/dotfiles/", "http://jleajones.com/assets/images/dotfiles.png")
]
shuffle(projects)
return projects