diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 8d24bc1ff5..0000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: ['wowthemesnet'] diff --git a/.github/workflows/gh-pages-deploy.yml b/.github/workflows/gh-pages-deploy.yml new file mode 100644 index 0000000000..39e5bec36d --- /dev/null +++ b/.github/workflows/gh-pages-deploy.yml @@ -0,0 +1,68 @@ +name: Build and deploy Jekyll site to GitHub Pages + +on: + push: + branches: + - master + + schedule: + - cron: "0 7 * * *" +jobs: + github-pages: + runs-on: ubuntu-latest + steps: + - name: GitHub Checkout + uses: actions/checkout@v2 + - name: Bundler Cache + uses: actions/cache@v2 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }} + restore-keys: | + ${{ runner.os }}-gems- + - name: Install libvips via apt + if: runner.os == 'Linux' + run: | + # sudo -E apt-get update -qq -o Acquire::Retries=3 + sudo -E apt-get install -y libvips imagemagick libvips-tools + # echo "LD_LIBRARY_PATH=/usr/lib/" >> $GITHUB_ENV + - name: Build Jeckyll site + run: | + echo "Installing bundler" + sudo gem install bundler + echo "Installing gems..." + bundle config path vendor/bundle + bundle install + echo "Building Jekyll site..." + JEKYLL_ENV=production NODE_ENV=production bundle exec jekyll build + - name: Publish page + run: | + set -e + DEST="${JEKYLL_DESTINATION:-_site}" + REPO="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" + BRANCH="gh-pages" + BUNDLE_BUILD__SASSC=--disable-march-tune-native + echo "Publishing..." + cd ${DEST} + git init + git config user.name "${GITHUB_ACTOR}" + git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git add . + git commit -m "published by GitHub Actions" + git push --force ${REPO} master:${BRANCH} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} + GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} + # - name: Build & Deploy to GitHub Pages + # uses: joshlarsen/jekyll4-deploy-gh-pages@master + # env: + # LD_LIBRARY_PATH: /usr/lib/ + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} + # GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} + # - name: Build & Deploy to GitHub Pages + # uses: jeffreytse/jekyll-deploy-action@master + # with: + # provider: "github" + # token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 50c3e28f0b..2dfa0dd031 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,11 @@ _site .sass-cache .jekyll-metadata +.jekyll-cache +.tweet-cache +.vscode +*.code-workspace +scripts +assets/ps node_modules Gemfile.lock diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000000..e69de29bb2 diff --git a/404.html b/404.html index c472b4ea0a..cc264e22a6 100644 --- a/404.html +++ b/404.html @@ -1,5 +1,6 @@ --- layout: default +permalink: /404.html --- + function lunr_search(term) { + $('#lunrsearchresults').show( 1000 ); + $( "body" ).addClass( "modal-open" ); + document.getElementById('lunrsearchresults').innerHTML = ''; + if(term) { + document.getElementById('modtit').innerHTML = "" + document.getElementById('modtit').innerHTML; + //put results on the screen. + var results = idx.search(term); + if(results.length>0){ + //console.log(idx.search(term)); + //if results + for (var i = 0; i < results.length; i++) { + // more statements + var ref = results[i]['ref']; + var url = documents[ref]['url']; + var title = documents[ref]['title']; + var body = documents[ref]['body'].substring(0,160)+'...'; + document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML + "
  • " + title + "
    "+ body +"
    "+ url +"
  • "; + } + } else { + document.querySelectorAll('#lunrsearchresults ul')[0].innerHTML = "
  • Leider konnten keine Suchergebnisse gefunden werden!
  • "; + } + } + return false; + } + + - \ No newline at end of file + diff --git a/_includes/sidebar-featured.html b/_includes/sidebar-featured.html index eba1f353af..2a74088c82 100644 --- a/_includes/sidebar-featured.html +++ b/_includes/sidebar-featured.html @@ -1,21 +1,28 @@
    -

    Featured

    - -
    \ No newline at end of file +

    Features

    + + diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 3fd15ef6db..9f59890d46 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,7 +1,21 @@ -
    Mundana Jekyll Theme
    +
    Bitcoin Sozial
    -

    Hi! The website you are previewing is a demonstration for Mundana Jekyll theme, hosted on Github, made by Sal.

    +

    {{site.description}}.

    - Documentation +

    + Kontaktiere uns, wenn du einen Beitrag + auf {{site.name}} veröffentlichen möchtest. +

    + diff --git a/_includes/tracking-footer.html b/_includes/tracking-footer.html index 90d5adb985..e69de29bb2 100644 --- a/_includes/tracking-footer.html +++ b/_includes/tracking-footer.html @@ -1 +0,0 @@ - diff --git a/_includes/tracking-header.html b/_includes/tracking-header.html index dac143309f..e69de29bb2 100644 --- a/_includes/tracking-header.html +++ b/_includes/tracking-header.html @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index cf6a35d8cf..3b37150e7e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -4,7 +4,11 @@ + {% if page.url == "/" %} + {{site.description}} | {{site.name}} + {% else %} {{page.title}} | {{site.name}} + {% endif %} {% seo %} @@ -38,15 +42,15 @@