1. 27 Apr, 2018 1 commit
  2. 04 Mar, 2018 1 commit
  3. 26 Feb, 2018 1 commit
  4. 22 Feb, 2018 1 commit
  5. 09 Feb, 2018 1 commit
    • Peter Serwylo's avatar
      Link to YouTube rather than embedding. · 7da4b9db
      Peter Serwylo authored
      Fixes problem where CSP forbids this type of embedding. Also adds some
      privacy because people wont get tracked by YouTube unless they click the
      link.
      
      By wrapping an `<img>` tag with a video thumbnail in an `<a
      class="youtube" href="https://youtube.com?v=...">` tag, the websites CSS
      will overlay a youtube play icon on top.
      7da4b9db
  6. 04 Feb, 2018 1 commit
  7. 24 Jan, 2018 1 commit
  8. 05 Jan, 2018 1 commit
  9. 02 Jan, 2018 2 commits
    • Peter Serwylo's avatar
      Added tutorials for swap/repomaker/adding repos. · 2cc7a684
      Peter Serwylo authored
      Follows the designs provided by @crwinfrey in #112.
      
      They are implemented as a collection called "tutorials". Any time a
      new tutorial is added to the _tutorials directory then it will
      automatically get put into the list of available tutorials and also will
      be added to the paginator at the bottom of each tutorial.
      
      Fixes #112.
      
      Fixes repomaker#182.
      2cc7a684
    • Peter Serwylo's avatar
      Add an initial version of the add-repo tutorials. · 4a8d1f22
      Peter Serwylo authored
      Still needs to have:
       * Actual screenshots for the process of adding repos.
       * i18n of strings in this template (using _data/strings.json)
       * Eventually a menu entry, but perhaps starting with a link from /docs.
      4a8d1f22
  10. 14 Dec, 2017 1 commit
  11. 01 Nov, 2017 1 commit
  12. 18 Oct, 2017 2 commits
  13. 17 Oct, 2017 2 commits
  14. 03 Oct, 2017 1 commit
  15. 02 Oct, 2017 1 commit
  16. 25 Sep, 2017 1 commit
  17. 12 Sep, 2017 2 commits
  18. 19 Jul, 2017 5 commits
  19. 03 Jul, 2017 1 commit
  20. 13 Jun, 2017 3 commits
  21. 22 May, 2017 1 commit
    • Peter Serwylo's avatar
      Don't embed f-droid logo SVG in each page. Reference from <img> instead. · 83c65ed0
      Peter Serwylo authored
      The .svg is 23KiB large, which adds quite a lot once you add up how
      many pages are output for our Jekyll site. Each of the 2000 package
      pages is only about 50KiB at most, so adding 23KiB to > 2000 .html
      files results in almost 100MiB of space, just for the header image.
      
      By moving from including the svg source via Jekyll to using an <img>
      tag, we save about 100MiB for free, and the browser will still cache the
      .svg just fine.
      83c65ed0
  22. 02 May, 2017 1 commit
  23. 20 Apr, 2017 1 commit
  24. 04 Apr, 2017 2 commits
  25. 20 Feb, 2017 1 commit
  26. 25 Jan, 2017 1 commit
  27. 23 Jan, 2017 2 commits
    • Hans-Christoph Steiner's avatar
      import all news posts as HTML jekyll posts (closes #19) · eb928047
      Hans-Christoph Steiner authored
      This is done using HTML since the original source is in HTML. This
      does not move the image locations, it leaves the <img> tags as is, so
      it gets them from the wordpress locations.
      
      Since only @CiaranG has access to the Wordpress database, I didn't use any
      of the import methods. They all require direct database access.  Instead, I
      used a little bag of tricks:
      
      * wget --span-hosts --recursive --page-requisites --html-extension \
        --convert-links --include-directories=/posts,/news-and-reviews \
        https://f-droid.org/news-and-reviews/
      * and this python script:
      
      import glob
      import os
      import bs4
      
      for f in glob.glob('posts/*/index.html'):
          print('parsing', f)
          outputname = os.path.basename(os.path.dirname(f)) + '.html'
          body = '---\nlayout: post\n'
          with open(f) as fp:
              soup = bs4.BeautifulSoup(fp)
      
              title = soup.find('title')
              if title:
                  body += 'title: "' + title.text.replace(' – F-Droid', '')
      
              author = soup.find('a', {'class', 'url'})
              if author:
                  body += '"\nauthor: "' + author.text + '"\n---\n\n'
      
              post_entry = soup.find('div', {'class', 'post-entry'})
              if post_entry:
                  body += str(post_entry)
      
              date = soup.find('time', {'class', 'updated'})
              if date:
                  filedate = date['datetime'].split('T')[0]
          with open(os.path.join('output', filedate + '-' + outputname), 'w') as fp:
              fp.write(body)
      eb928047
    • Hans-Christoph Steiner's avatar
      implement donate buttons (closes #9) · d87c51fb
      Hans-Christoph Steiner authored
      The only way I could figure out how to make the assets dir work in all
      levels of the website was to use a variable.  If someone has a better idea,
      I'm all ears :).
      d87c51fb
  28. 12 Dec, 2016 1 commit