Git Product home page Git Product logo

bender's Introduction

title permalink layout
About
/about/
page

Installation

Just fork this repository and adjust the _config.yml to use with Github Pages and your page is done.

Features

  • supports dark mode on macOS Mojave
  • optional sidebar
  • MathJax support
  • no external ressources
  • included archive page
  • supports pagination
  • feed generation
  • responsive
  • syntax highlighting
  • supports comments via disqus or isso

Based on

Installation (jekyll-remote-theme method)

You can use this theme with the jekyll-remote-theme plugin. Just create an empty repo, copy over the index.html file and add this to your _config.yml:

remote_theme: niklasbuschmann/[email protected]

plugins:
  - jekyll-remote-theme

Note: to enable icons you also need to copy over the _data folder.

Config

Your _config.yml could for example look like this:

title: "Blog Title"
author: "Blog Author"
description: "My personal blog about ... something"
permalink: /:title/
lang: "en"
excerpt_separator: "\n\n\n"
date_format: "%B %d, %Y"

# Layout

show_excerpts: true        # show article excerpts on the home page
show_frame: true           # adds a gray frame to the site
show_sidebar: false        # show a sidebar instead of the usual header

# Menu

navigation:                # accepts {file, title, url, icon, sidebaricon}
  - {file: "index.html"}
  - {file: "README.md"}

external:                  # shows a footer with social links - for available icons see fontawesome.com/icons
  - {title: Mail, icon: envelope, url: "mailto:[email protected]"}
  - {title: Github, icon: github, url: "https://github.com/niklasbuschmann/contrast"}
  - {title: Subscribe, icon: rss, url: "/feed.xml"}

comments:
#  disqus_shortname: ""    # see https://disqus.com/
#  isso_domain: ""         # see https://posativ.org/isso/

plugins:
 - jekyll-feed

MathJax

Contrast comes preinstalled with a leightweight alternative to MathJax called KaTeX. To display equations in a post simply set mathjax: true in the article's front matter.

License

public domain

Screenshots

screenshot

screenshot

screenshot

bender's People

Contributors

ahelal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bender's Issues

Deprecated API method "groups.list"

I've configured test pipeline in Concourse which can't run because of such error on check state:

run check step: run check step: check: resource script '/opt/resource/check []' failed: exit status 1

stderr:
Slack API Call failed. method=groups.list response={u'headers': {u'content-length': u'228', u'x-xss-protection': u'0', u'x-content-type-options': u'nosniff', u'content-encoding': u'gzip', u'x-slack-req-id': u'2ef72a597f01e52fa537f02cb4f370d1', u'access-control-expose-headers': u'x-slack-req-id, retry-after', u'vary': u'Accept-Encoding', u'x-via': u'haproxy-www-bd9a', u'expires': u'Mon, 26 Jul 1997 05:00:00 GMT', u'server': u'Apache', u'access-control-allow-origin': u'*', u'x-slack-backend': u'r', u'strict-transport-security': u'max-age=31536000; includeSubDomains; preload', u'pragma': u'no-cache', u'cache-control': u'private, no-cache, no-store, must-revalidate', u'date': u'Sun, 14 Jun 2020 22:56:27 GMT', u'x-oauth-scopes': u'app_mentions:read,channels:history,channels:read,chat:write,chat:write.customize,commands,emoji:read,files:read,files:write,groups:history,groups:read,im:history,im:read,incoming-webhook,links:read,links:write,mpim:history,mpim:write,pins:read,pins:write,reactions:read,reactions:write,team:read,users:read,usergroups:read,mpim:read,groups:write,users:write', u'referrer-policy': u'no-referrer', u'content-type': u'application/json; charset=utf-8', u'access-control-allow-headers': u'slack-route, x-slack-version-ts, x-b3-traceid, x-b3-spanid, x-b3-parentspanid, x-b3-sampled, x-b3-flags'}, u'ok': False, u'response_metadata': {u'messages': [u'[ERROR] This method is retired and can no longer be used. Please use conversations.list or users.conversations instead. Learn more: https://api.slack.com/changelog/2020-01-deprecating-antecedents-to-the-conversations-api.']}, u'error': u'method_deprecated'}

Could you help me with this?

bot_name not respected

for example ,even I specified releasebot, it still refere to bender

  • name: slack-trigger
    type: bender-resource
    source:
    slack_token : {{slack-bot-token}}
    bot_name: "releasebot"

fly -t xxx check-resource --resource yyy/slack-trigger
error: check failed with exit status '1':
Unable to find bot name 'bender'

ValueError: No JSON object could be decoded

Not sure if this repo is still being supported.

But im getting this after i tag the bot:

resource script '/opt/resource/check []' failed: exit status 1

stderr:
Traceback (most recent call last):
  File "/opt/resource/check_op.py", line 99, in <module>
    main()
  File "/opt/resource/check_op.py", line 91, in main
    slack_client = Check(**payload.args)
  File "/opt/resource/check_op.py", line 15, in __init__
    Base.__init__(self, **kwargs)
  File "/opt/resource/base.py", line 20, in __init__
    self.users = self._call_api("users.list", presence=0)
  File "/opt/resource/base.py", line 33, in _call_api
    api_response = self.slack_client.api_call(method, **kwargs)
  File "/usr/lib/python2.7/site-packages/slackclient/client.py", line 85, in api_call
    result = json.loads(self.server.api_call(method, timeout=timeout, **kwargs))
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

pipeline.yml

# Jobs
- name: trigger-release
  serial: true
  public: true
  plan:
    - get: bender
      version: every
      trigger: true
# Resource Types
- name: bender-resource
  type: docker-image
  source:
    repository: quay.io/ahelal/bender
    tag: latest
# Resource
  - name: bender
    type: bender-resource
    source:
      slack_token: <token>
      channel: "slack_test_channel"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.