diff --git a/content/pages/about.html b/content/pages/about.html index c1fe46f..1a6c065 100644 --- a/content/pages/about.html +++ b/content/pages/about.html @@ -1,5 +1,4 @@ - diff --git a/content/pages/contact.md b/content/pages/contact.md new file mode 100644 index 0000000..7e1c60e --- /dev/null +++ b/content/pages/contact.md @@ -0,0 +1,13 @@ +--- +title: Contact Me +--- + +The fastest way to contact me is through twitter. Just tag me or send me a message and I'll respond as soon as possible! + +View Twitter + +## Need something more formal? + +If you need to contact me in a more formal capacity, send me an email! I aim to respond to all emails within 3 days. + +Send me an email! diff --git a/content/pages/homepage.html b/content/pages/homepage.html index 007dc67..d0069ca 100644 --- a/content/pages/homepage.html +++ b/content/pages/homepage.html @@ -25,7 +25,7 @@

I'm Jake. A software engineer with a passion for security and privacy. This is my website, a home for my projects, blog posts, and anything else for that matter.

- More Info + Contact diff --git a/pelicanconf.py b/pelicanconf.py index e3e5a2f..5525d61 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -7,6 +7,7 @@ sys.path.insert(0, os.path.realpath('./')) AUTHOR = "Jake Howard" SITENAME = "TheOrangeOne" SITEURL = "https://theorangeone.net" +CONTACT_EMAIL = "info@theorangeone.net" PATH = 'content' TIMEZONE = "Europe/London" DEFAULT_LANG = "en" @@ -111,7 +112,8 @@ JINJA_FILTERS = { "limit": filters.limit, "get_title": filters.get_title, "get_html_title": filters.get_html_title, - "get_image": filters.get_image + "get_image": filters.get_image, + "encode_text": filters.encode_text } JINJA_ENVIRONMENT = { diff --git a/plugins/filters.py b/plugins/filters.py index 402954d..d61bbfb 100644 --- a/plugins/filters.py +++ b/plugins/filters.py @@ -39,3 +39,7 @@ def get_html_title(instance): def get_image(instance): return get_attribute(instance, 'image') or (hasattr(instance, 'page') and get_attribute(instance.page, 'name')) or '' + + +def encode_text(text): + return " ".join([str(ord(c)) for c in text]) diff --git a/theme/static/src/js/app.js b/theme/static/src/js/app.js index df81682..9fb7c30 100644 --- a/theme/static/src/js/app.js +++ b/theme/static/src/js/app.js @@ -30,3 +30,22 @@ $('.navbar-brand').bind('click', function (event) { } event.preventDefault(); }); + +$('.panel-heading').bind('click', function () { + var ele = $(this); + if (ele.find('.panel-body').hasClass('ascii-hidden')) { + ele = ele.find('.panel-body'); + var raw_code = ele.text().split(' '); + + } +}); + +$('.protected-mailto').bind('click', function (evt) { + evt.preventDefault(); + var char_codes = $(this).data('value').split(' '); + var plain_text = [] + for(var i=0; i iframe { max-width: 100%; } + +.protected-mailto { + cursor: pointer; +}