1. 01 Nov, 2017 1 commit
  2. 18 Oct, 2017 2 commits
  3. 17 Oct, 2017 2 commits
  4. 03 Oct, 2017 1 commit
  5. 02 Oct, 2017 1 commit
  6. 25 Sep, 2017 1 commit
  7. 12 Sep, 2017 2 commits
  8. 19 Jul, 2017 5 commits
  9. 03 Jul, 2017 1 commit
  10. 13 Jun, 2017 3 commits
  11. 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
  12. 02 May, 2017 1 commit
  13. 20 Apr, 2017 1 commit
  14. 04 Apr, 2017 2 commits
  15. 20 Feb, 2017 1 commit
  16. 25 Jan, 2017 1 commit
  17. 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
  18. 12 Dec, 2016 1 commit