Search code examples
pythongithubblogsgithub-pagespelican

Add my resume as a PDF file to a Pelican static blog site


I have a personal blog which I build with pelican and used Elegant. Here are the source and site repos: source and site.

Now I want to add my resume or CV as a separate category or page. Expected setup should be. "Home", "Categories", "Tags", "Archives", and "Resume"

Expected output should be: when visitor click resume page it should open as a pdf file showing my resume or CV.

I tried a lot but without any success. Anyone can help me?


Solution

  • Just add a pdf here: content/images/resume.pdf

    Then add a link to it in your header (in pelican-themes/elegant/templates/base.html). Underneath the following block:

    <div class="nav-collapse collapse">
      <ul class="nav pull-right top-menu">
    

    You'll see a bunch of <li> tags, e.g.:

    <li {% if page_name == 'archives' %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ ARCHIVES_URL|default('archives') }}">Archives</a></li>
    

    Add <li><a href='images/my.pdf'></a></li> below the Archives link referenced above and rebuild your site.